Running simulations in the background on Linux

background
nohup
ssh

#1

When running simulations on a Linux machine, it may be helpful to run the simulation in the background, or even allow the simulation to continue running after the terminal window is closed.

The following examples assume the following:

  • FDTD Solutions is installed in the default location
  • The simulation files are located in the current working directory of the terminal window
  • The simulation is run with the MPICH2nem version of the simulation engine.

Background the simulation:
/opt/lumerical/fdtd/mpich2/nemesis/bin/mpiexec -n 4 /opt/lumerical/fdtd/bin/fdtd-engine-mpich2nem ./example.fsp &

Background the simulation and allow it to run after the terminal window is closed:
nohup /opt/lumerical/fdtd/mpich2/nemesis/bin/mpiexec -n 4 /opt/lumerical/fdtd/bin/fdtd-engine-mpich2nem ./example.fsp &> output.txt </dev/null &

Run multiple simulations in the background and allow them to run after the terminal window is closed:
nohup sh /opt/lumerical/fdtd/bin/fdtd-run-local.sh -n 4 *.fsp &> output.txt </dev/null &

For additional information on the simulation command line syntax, see the Knowledge Base.


Run FDTD-Solutions on the Linux