LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands

suffix command

Syntax:

suffix style 

Examples:

suffix off
suffix on
suffix gpu 

Description:

This command allows you to set a suffix which will be added

Use variants of various styles if they exist. The specified style can be opt or gpu or cuda. These refer to optional packages that LAMMPS can be built with, as described above in Section 2.3. The "opt" style corrsponds to the OPT package, the "gpu" style to the GPU package, and the "cuda" style to the USER-CUDA package.

As an example, all of the packages provide a pair_style lj/cut variant, with style names lj/cut/opt or lj/cut/gpu or lj/cut/cuda. Any variant styles can be specified explicitly in your input script, e.g. pair_style lj/cut/gpu. If the -suffix switch is used, you do not need to modify your input script. The specified suffix (opt,gpu,cuda) is automatically appended whenever an input script command creates a new atom, pair, fix, compute, or integrate style. If the variant version does not exist, the standard version is created.

The suffix command can also set the suffix. It can also turn off/on the suffix associated with this command-line switch.

Alter settings for use of accelerated versions of various styles. LAMMPS can be built with optional packages which provide accelerated versions of specific atom, pair, fix, compute, and integrate styles.

These are the relevant packages:

See this section of the manual for instructions on how to build LAMMPS with any of these packages.

These styles can be specified explicitly in your input script, e.g. pair_style lj/cut/gpu. If the -accelerator command-line switch is used, you do not need to modify your input script, as discussed in this section of the manual. The command-line suffix (opt,gpu,cuda) is automatically appended when the style is created for atom, pair, fix, compute, and integrate styles. If an accelerated version does not exist, the standard version is created.

If the -accelerator command-line switch is used, you may wish to disable it for one or more input script commands, so that the standard version of the style is used instead of the accelerated one. This can be useful for performance testing or debugging.

The off style allows you to do this. The effect of the -accelerator command-line switch is effectively turned off until another accelerator command is used with the on style.

Restrictions: none

Related commands:

Command-line switch -suffix

Default: none