You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/lammps.rst
+68Lines changed: 68 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,3 +75,71 @@ chmod and launch it using:
75
75
76
76
chmod +x ./myfile.sh
77
77
oarsub -S ./myfile.sh
78
+
79
+
Launch multiple jobs using bash
80
+
_______________________________
81
+
82
+
Assuming that one has the job submission script named *sub.sh* with name *lmp-myvariable-0*,
83
+
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:
85
+
86
+
.. code:: bash
87
+
88
+
#!/bin/bash
89
+
#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
93
+
#OAR --project tamtam
94
+
95
+
# Path to the LAMMPS MPI executable
96
+
lmp=/path/lmp_mpi
97
+
98
+
myvariable=0
99
+
100
+
# Run LAMMPS using MPI, with 4 processes, using the input from 'input.lmp'
Copy file name to clipboardExpand all lines: docs/source/oar.rst
+6-62Lines changed: 6 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -45,70 +45,14 @@ Launch Multiple Jobs
45
45
46
46
Here, tips to efficiently launch multiple jobs are provided.
47
47
48
-
Batch Job Submission
49
-
____________________
50
-
51
-
Assuming that one has the job submission script named *sub.sh* with name *lmp-myvariable-0*,
52
-
that launch a lammps input script named *input.lmp* by passing a variable
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:
48
+
.. SG: this will be completed when Romain send me an example.
54
49
55
50
.. code:: bash
56
51
57
52
#!/bin/bash
58
-
#OAR -n lmp-myvariable-0
59
-
#OAR -l /nodes=1/cpu=1/core=4,walltime=48:00:00
60
-
#OAR --stdout log-water.out
61
-
#OAR --stderr log-water.err
62
-
#OAR --project tamtam
63
-
64
-
# Path to the LAMMPS MPI executable
65
-
lmp=/path/lmp_mpi
66
-
67
-
myvariable=0
68
-
69
-
# Run LAMMPS using MPI, with 4 processes, using the input from 'input.lmp'
0 commit comments