Version 1 vs 3
Version 1 vs 3
Edits
Edits
- Edit by • ctrujillo, Version 3
- May 26 2017 5:25 PM
- Edit by • ctrujillo, Version 1
- May 26 2017 5:17 PM
Edit Older Version 1... | Edit Current Version 3... |
Content Changes
Content Changes
LAMMPS on CFAM
To run LAMMPS on CFAM create your LAMMPS input file and the Submit Script shown below. Add both to a directory in your user folder.
Submit Script
#!/bin/bash
#SBATCH -n 10
#cd /home/username/currentdirectory
module load mvapich2-2.1/intel
mpirun -np 10 /opt/lammps/bin/lmp_icc_cfam_basic < mylammpsfile.txt > mylammpsoutput.out
Use the cd command to enter the directory of your submit script and run the following command:
sbatch LAMMPS_Submit_Script.sh
This will run your job and put your output file in the "currentdirectory".
==LAMMPS on CFAM
To run LAMMPS on CFAM create your LAMMPS input file and the Submit Script shown below. Add both to a directory in your user folder.
===Submit Script
```
#!/bin/bash
#SBATCH -n 10
cd /home/username/currentdirectory
module load mvapich2-2.1/intel
mpirun -np 10 /opt/lammps/bin/lmp_icc_cfam_basic < mylammpsfile.txt > mylammpsoutput.out
```
===Running Your Job
From the terminal window, use the `cd` command to enter the directory of your submit script and run the following command:
`sbatch LAMMPS_Submit_Script.sh`
This will run your job and put your output file in the `currentdirectory`.
==LAMMPS on CFAM
To run LAMMPS on CFAM create your LAMMPS input file and the Submit Script shown below. Add both to a directory in your user folder.
===Submit Script
```
#!/bin/bash
#SBATCH -n 10
#cd /home/username/currentdirectory
module load mvapich2-2.1/intel
mpirun -np 10 /opt/lammps/bin/lmp_icc_cfam_basic < mylammpsfile.txt > mylammpsoutput.out
```
===Running Your Job
UFrom the terminal window, use the cd`cd` command to enter the directory of your submit script and run the following command:
`sbatch LAMMPS_Submit_Script.sh`
This will run your job and put your output file in the "`currentdirectory"`.