MCNP on Linux

Home > Help Files > Software Applications > MCNP > Linux

MCNP with PVM

  1. Setting up the environment. (You only need to do this once)
    • Follow the instructions on setting up keys on all DECF linux clusters.
  2. Start PVM
    • Follow the instructions on starting PVM. This will allow you to log into all linux cluster by entering in your passwords just once.
    • Add all the hosts you want to use. Before adding a host, make sure you have logged into it at least once, or else PVM add will fail.
    • Here is a list of PVM Commands
  3. Running MCNP
    • %mcnp n=inp tasks 2x1
      where inp is the input filename and 2 is the number of processes you are running in parallel. You can use "i=" instead of "n=". You can also use other MCNP options such as "r=" for specifying runtpe and "C" for continuous run in the command line.
    • Check out Takpui's how-to for tips in running MCNP
    • How to run MCNP in the background with lower priority

MCNP with MPI

  1. Setting up the environment. (You only need to do this once)
    • Follow the instructions on setting up keys on all DECF linux clusters.
  2. Running MCNP with MPI
    • %/usr/local/pgi/bin/mpirun -np 2 -machinefile machines	/usr/local/bin/mcnp5.mpi n=inp.1 eol
      where inp is the input filename and 2 is the number of processes you are running in parallel.

 


Comments to consult@newton.berkeley.edu
© 1998-2009 UC Regents