2011-05-21 07:21:12 +08:00
|
|
|
<HTML>
|
|
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
|
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
|
2011-06-01 07:08:32 +08:00
|
|
|
<H3>suffix command
|
2011-05-21 07:21:12 +08:00
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
2011-06-01 07:08:32 +08:00
|
|
|
<PRE>suffix style
|
2011-05-21 07:21:12 +08:00
|
|
|
</PRE>
|
2011-10-07 01:32:51 +08:00
|
|
|
<UL><LI>style = <I>off</I> or <I>on</I> or <I>opt</I> or <I>omp</I> or <I>gpu</I> or <I>cuda</I>
|
2011-05-21 07:21:12 +08:00
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
2011-06-01 07:08:32 +08:00
|
|
|
<PRE>suffix off
|
|
|
|
suffix on
|
|
|
|
suffix gpu
|
2011-05-21 07:21:12 +08:00
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
2011-06-01 07:17:17 +08:00
|
|
|
<P>This command allows you to use variants of various styles if they
|
2012-01-28 07:39:14 +08:00
|
|
|
exist. In that respect it operates the same as the <A HREF = "Section_start.html#start_7">-suffix
|
2011-08-26 00:46:23 +08:00
|
|
|
command-line switch</A>. It also has options
|
|
|
|
to turn off/on any suffix setting made via the command line.
|
2011-06-01 07:08:32 +08:00
|
|
|
</P>
|
2011-10-07 01:32:51 +08:00
|
|
|
<P>The specified style can be <I>opt</I>, <I>omp</I>, <I>gpu</I>, or <I>cuda</I>. These refer to
|
2011-08-26 00:46:23 +08:00
|
|
|
optional packages that LAMMPS can be built with, as described in <A HREF = "Section_start.html#start_3">this
|
2011-06-01 07:17:17 +08:00
|
|
|
section of the manual</A>. The "opt" style
|
2011-10-07 01:32:51 +08:00
|
|
|
corrsponds to the OPT package, the "omp" style to the USER-OMP package,
|
|
|
|
the "gpu" style to the GPU package, and the "cuda" style to the
|
|
|
|
USER-CUDA package.
|
2011-06-01 07:08:32 +08:00
|
|
|
</P>
|
2011-06-01 07:20:31 +08:00
|
|
|
<P>These are the variants these packages provide:
|
2011-05-21 07:21:12 +08:00
|
|
|
</P>
|
2011-12-01 23:35:32 +08:00
|
|
|
<UL><LI>OPT = a handful of pair styles, cache-optimized for faster CPU
|
|
|
|
performance
|
|
|
|
|
|
|
|
<LI>USER-OMP = a collection of pair, bond, angle, dihedral, improper,
|
|
|
|
kspace, compute, and fix styles with support for OpenMP
|
|
|
|
multi-threading
|
|
|
|
|
|
|
|
<LI>GPU = a handful of pair styles and the PPPM kspace_style, optimized to
|
|
|
|
run on one or more GPUs or multicore CPU/GPU nodes
|
|
|
|
|
|
|
|
<LI>USER-CUDA = a collection of atom, pair, fix, compute, and intergrate
|
|
|
|
styles, optimized to run on one or more NVIDIA GPUs
|
2011-05-21 07:21:12 +08:00
|
|
|
</UL>
|
2011-06-01 07:17:17 +08:00
|
|
|
<P>As an example, all of the packages provide a <A HREF = "pair_lj.html">pair_style
|
2011-10-07 01:32:51 +08:00
|
|
|
lj/cut</A> variant, with style names lj/cut/opt, lj/cut/omp,
|
|
|
|
lj/cut/gpu, or lj/cut/cuda. A variant styles can be specified
|
2011-06-01 07:17:17 +08:00
|
|
|
explicitly in your input script, e.g. pair_style lj/cut/gpu. If the
|
|
|
|
suffix command is used with the appropriate style, you do not need to
|
2011-10-07 01:32:51 +08:00
|
|
|
modify your input script. The specified suffix (opt,omp,gpu,cuda) is
|
2011-06-01 07:20:31 +08:00
|
|
|
automatically appended whenever your input script command creates a
|
2011-12-01 23:35:32 +08:00
|
|
|
new <A HREF = "atom_style.html">atom</A>, <A HREF = "pair_style.html">pair</A>,
|
|
|
|
<A HREF = "bond_style.html">bond</A>, <A HREF = "angle_style.html">angle</A>,
|
|
|
|
<A HREF = "dihedral_style.html">dihedral</A>, <A HREF = "improper_style.html">improper</A>,
|
|
|
|
<A HREF = "kspace_style.html">kspace</A>, <A HREF = "fix.html">fix</A>, <A HREF = "compute.html">compute</A>, or
|
|
|
|
<A HREF = "run_style.html">run</A> style. If the variant version does not exist,
|
|
|
|
the standard version is created.
|
2011-06-01 07:17:17 +08:00
|
|
|
</P>
|
|
|
|
<P>If the specified style is <I>off</I>, then any previously specified suffix
|
|
|
|
is temporarily disabled, whether it was specified by a command-line
|
|
|
|
switch or a previous suffix command. If the specified style is <I>on</I>,
|
2011-06-01 07:20:31 +08:00
|
|
|
a disabled suffix is turned back on. The use of these 2 commands lets
|
|
|
|
your input script use a standard LAMMPS style (i.e. a non-accelerated
|
|
|
|
variant), which can be useful for testing or benchmarking purposes.
|
|
|
|
Of course this is also possible by not using any suffix commands, and
|
|
|
|
explictly appending or not appending the suffix to the relevant
|
|
|
|
commands in your input script.
|
2011-05-21 07:21:12 +08:00
|
|
|
</P>
|
2011-06-01 07:08:32 +08:00
|
|
|
<P><B>Restrictions:</B> none
|
2011-05-21 07:21:12 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B>
|
|
|
|
</P>
|
2012-01-28 07:39:14 +08:00
|
|
|
<P><A HREF = "Section_start.html#start_7">Command-line switch -suffix</A>
|
2011-05-21 07:21:12 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
</HTML>
|