Skip to content

Running your simulation

Command line

An exaDEM simulation is described by an input file in YAML format (.msp), see the Beginner Guide and the example folder of the repository. From the build directory:

1
2
3
4
5
source bin/setup-env.sh
export N_OMP=1
export N_MPI=1
export OMP_NUM_THREADS=$N_OMP
mpirun -n $N_MPI ./exaDEM test-case.msp

Command-line options

Options are given after the input file:

1
2
3
4
5
./exaDEM my_deck.msp --omp_num_threads 4                                # number of OpenMP threads
./exaDEM my_deck.msp --set-global-simulation_end_iteration 100          # override a value of the global block
./exaDEM --help command-line                                            # all the command-line options
./exaDEM --help plugins                                                 # plugins and their operators
./exaDEM --help set_radius                                              # description and slots of an operator

--set-global-<key> <value> overrides a value of the global block of the deck, which is convenient to run a few steps of an example.

With Spack:

spack load exadem
exaDEM your_input_file.msp

Alias

To call exaDEM from anywhere, add an alias to your ~/.bashrc (replace YOURDIR by your build directory):

alias exaDEM='~/YOURDIR/build/exaDEM'

or, for the current shell only, from the build directory:

alias exaDEM=$PWD/exaDEM

Tests

A set of minimal test cases (non-regression tests) is run from the build directory with:

ctest --test-dir example

See Contributing.

Supercomputers

exaDEM is built on exaNBody: the instructions to run exaNBody applications on supercomputers (for example Adastra) are given in the exaNBody documentation.