Skip to content

Commit 6e6c7de

Browse files
committed
small fix
1 parent 34b37de commit 6e6c7de

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/source/lammps.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ Create a bash (``.sh``) file with the following content:
6464
#OAR --stderr log.err
6565
#OAR --project tamtam
6666
67-
mpirun -np 4 /PATH-TO-LAMMPS/lmp_mpi -in input.lmp
67+
# Path to the LAMMPS executable
68+
lmp=/path/lmp_mpi
69+
70+
mpirun -np 4 ${lmp} -in input.lmp
6871
6972
where ``input.lmp`` is your LAMMPS input file, and there the project was assumed
7073
to be `tamtam` (to adapt to your case). Here, 4 CPU cores are requested,
@@ -81,18 +84,19 @@ _______________________________
8184

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

8690
.. code:: bash
8791
8892
#!/bin/bash
8993
#OAR -n lmp-myvariable-0
90-
#OAR -l /nodes=1/cpu=1/core=4,walltime=48:00:00
91-
#OAR --stdout log-water.out
92-
#OAR --stderr log-water.err
94+
#OAR -l /nodes=1/cpu=1/core=4,walltime=12:00:00
95+
#OAR --stdout log.out
96+
#OAR --stderr log.err
9397
#OAR --project tamtam
9498
95-
# Path to the LAMMPS MPI executable
99+
# Path to the LAMMPS executable
96100
lmp=/path/lmp_mpi
97101
98102
myvariable=0

0 commit comments

Comments
 (0)