Difference between revisions of "Processors Command"

From OSUPDOCS
Jump to navigation Jump to search
Line 9: Line 9:
  <!--processors #-->
  <!--processors #-->


where # is replaced by the number of processors. But note that this <tt>XML</tt> comment option only works when launching calculations in [[NairnFEAMPM]] or [[NairnFEAMPMViz]]. When using command line to launch calculations, pick the number of processors with each code engine's <tt>-np</tt> option instead.
where # is replaced by the number of processors. But note that this <tt>XML</tt> comment option only works when launching calculations in [[NairnFEAMPM]] or [[NairnFEAMPMViz]]. When using a [[Options for Running Calculations#Command-Line Executation|command line]] to launch calculations, pick the number of processors with each code engine's <tt>-np</tt> option instead.


== Notes ==
== Notes ==

Revision as of 13:27, 13 September 2013

The Processors command selects the number of processors to use when running parallel versions of NairnMPM, and NairnFEA. The format is

Processors (number)

where number is the number of processors.

To select number of processors when using XML input files, enter the following comment anywhere in the file:

<!--processors #-->

where # is replaced by the number of processors. But note that this XML comment option only works when launching calculations in NairnFEAMPM or NairnFEAMPMViz. When using a command line to launch calculations, pick the number of processors with each code engine's -np option instead.

Notes

  • Setting number of processors greater than 1 implies you are running parallel versions of code engines. If not, an error will result and no calculations will run.
  • If the requested number is greater than the available number of processors, it will be reduced to the available number of processors.