Skip to content

Commit e878fbf

Browse files
authored
Update oar.rst
1 parent 1d10896 commit e878fbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/oar.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ____________________
5050

5151
Assuming that one has the job submission script named *sub.sh* with name *lmp-myvariable-0*,
5252
that launch a lammps input script named *input.lmp* by passing a variable
53-
named *myvariable* into it:
53+
named *myvariable* into it. Additionally, here the job ID is used as an input for the random seed, allowing for example different initial configurations:
5454

5555
.. code:: bash
5656
@@ -67,7 +67,7 @@ named *myvariable* into it:
6767
myvariable=0
6868
6969
# Run LAMMPS using MPI, with 4 processes, using the input from 'input.lmp'
70-
mpirun -np 4 ${lmp} -in input.lmp -var nb2 ${myvariable}
70+
mpirun -np 4 ${lmp} -in input.lmp -var nb2 ${myvariable} -var seedin $OAR_JOBID
7171
7272
If one wants to launch the current job, one simply have to type:
7373

@@ -111,4 +111,4 @@ Then, simply run *multi-sub.sh* by typing:
111111

112112
.. code:: bash
113113
114-
bash multi-sub.sh
114+
bash multi-sub.sh

0 commit comments

Comments
 (0)