git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10893 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -86,9 +86,9 @@ as described in the next section.
|
||||
|
||||
<P>Building LAMMPS can be non-trivial. You may need to edit a makefile,
|
||||
there are compiler options to consider, additional libraries can be
|
||||
used (MPI, FFT, JPEG), LAMMPS packages may be included or excluded,
|
||||
some of these packages use auxiliary libraries which need to be
|
||||
pre-built, etc.
|
||||
used (MPI, FFT, JPEG, PNG), LAMMPS packages may be included or
|
||||
excluded, some of these packages use auxiliary libraries which need to
|
||||
be pre-built, etc.
|
||||
</P>
|
||||
<P>Please read this section carefully. If you are not comfortable with
|
||||
makefiles, or building codes on a Unix platform, or running an MPI job
|
||||
@ -188,6 +188,7 @@ within the LAMMPS code. The options that are currently recogized are:
|
||||
</P>
|
||||
<UL><LI>-DLAMMPS_GZIP
|
||||
<LI>-DLAMMPS_JPEG
|
||||
<LI>-DLAMMPS_PNG
|
||||
<LI>-DLAMMPS_MEMALIGN
|
||||
<LI>-DLAMMPS_XDR
|
||||
<LI>-DLAMMPS_SMALLBIG
|
||||
@ -203,9 +204,13 @@ compile with -DLAMMPS_GZIP. It requires that your Unix support the
|
||||
"popen" command.
|
||||
</P>
|
||||
<P>If you use -DLAMMPS_JPEG, the <A HREF = "dump.html">dump image</A> command will be
|
||||
able to write out JPEG image files. If not, it will only be able to
|
||||
write out text-based PPM image files. For JPEG files, you must also
|
||||
link LAMMPS with a JPEG library, as described below.
|
||||
able to write out JPEG image files. For JPEG files, you must also link
|
||||
LAMMPS with a JPEG library, as described below. If you use
|
||||
-DLAMMPS_PNG, the <A HREF = "dump.html">dump image</A> command will be able to write
|
||||
out PNG image files. For PNG files, you must also link LAMMPS with a
|
||||
PNG library, as described below. If neither of those two defines are
|
||||
used, LAMMPS will only be able to write out text-based PPM image
|
||||
files.
|
||||
</P>
|
||||
<P>Using -DLAMMPS_MEMALIGN=<bytes> enables the use of the
|
||||
posix_memalign() call instead of malloc() when large chunks or memory
|
||||
@ -349,16 +354,23 @@ been tested with the FFTW3, FFTW2, MKL, and KISS FFT options.
|
||||
</P>
|
||||
<P><B>Step 7</B>
|
||||
</P>
|
||||
<P>The 3 JPG variables allow you to specify a JPEG library which LAMMPS
|
||||
uses when writing out JPEG files via the <A HREF = "dump_image.html">dump image</A>
|
||||
command. These can be left blank if you do not use the -DLAMMPS_JPEG
|
||||
switch discussed above in Step 4, since in that case JPEG output will
|
||||
be disabled.
|
||||
<P>The 3 JPG variables allow you to specify a JPEG and/or PNG library
|
||||
which LAMMPS uses when writing out JPEG or PNG files via the <A HREF = "dump_image.html">dump
|
||||
image</A> command. These can be left blank if you do not
|
||||
use the -DLAMMPS_JPEG or -DLAMMPS_PNG switches discussed above in Step
|
||||
4, since in that case JPEG/PNG output will be disabled.
|
||||
</P>
|
||||
<P>A standard JPEG library usually goes by the name libjpeg.a and has an
|
||||
associated header file jpeglib.h. Whichever JPEG library you have on
|
||||
your platform, you'll need to set the appropriate JPG_INC, JPG_PATH,
|
||||
and JPG_LIB variables, so that the compiler and linker can find it.
|
||||
<P>A standard JPEG library usually goes by the name libjpeg.a or
|
||||
libjpeg.so and has an associated header file jpeglib.h. Whichever
|
||||
JPEG library you have on your platform, you'll need to set the
|
||||
appropriate JPG_INC, JPG_PATH, and JPG_LIB variables, so that the
|
||||
compiler and linker can find it.
|
||||
</P>
|
||||
<P>A standard PNG library usually goes by the name libpng.a or libpng.so
|
||||
and has an associated header file png.h. Whichever PNG library you
|
||||
have on your platform, you'll need to set the appropriate JPG_INC,
|
||||
JPG_PATH, and JPG_LIB variables, so that the compiler and linker can
|
||||
find it.
|
||||
</P>
|
||||
<P>As before, if these header and library files are in the usual place on
|
||||
your machine, you may not need to set these variables.
|
||||
@ -1252,8 +1264,8 @@ defining index and other kinds of variables and <A HREF = "Section_commands.html
|
||||
section</A> for more info on using variables
|
||||
in input scripts.
|
||||
</P>
|
||||
<P>IMPORTANT NOTE: Currently, the command-line parser looks for arguments
|
||||
that start with "-" to indicate new switches. Thus you cannot specify
|
||||
<P>NOTE: Currently, the command-line parser looks for arguments that
|
||||
start with "-" to indicate new switches. Thus you cannot specify
|
||||
multiple variable values if any of they start with a "-", e.g. a
|
||||
negative numeric value. It is OK if the first value1 starts with a
|
||||
"-", since it is automatically skipped.
|
||||
|
||||
Reference in New Issue
Block a user