你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Added downloadable example HPC scripts.
这个提交包含在:
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#####################################################################################
|
||||||
|
### Specify bash shell:
|
||||||
|
#$ -S /bin/bash
|
||||||
|
|
||||||
|
### Change to current working directory:
|
||||||
|
#$ -cwd
|
||||||
|
|
||||||
|
### Specify runtime (hh:mm:ss):
|
||||||
|
#$ -l h_rt=01:00:00
|
||||||
|
|
||||||
|
### Email options:
|
||||||
|
#$ -m ea -M joe.bloggs@email.com
|
||||||
|
|
||||||
|
### Parallel environment ($NSLOTS):
|
||||||
|
#$ -pe OpenMP 8
|
||||||
|
|
||||||
|
### Job script name:
|
||||||
|
#$ -N test_openmp.sh
|
||||||
|
#####################################################################################
|
||||||
|
|
||||||
|
### Initialise environment module
|
||||||
|
. /etc/profile.d/modules.sh
|
||||||
|
|
||||||
|
### Load Anaconda environment for gprMax, i.e. Python 3 and required packages
|
||||||
|
module load anaconda
|
||||||
|
source activate gprMax
|
||||||
|
|
||||||
|
### Set number of OpenMP threads
|
||||||
|
export OMP_NUM_THREADS=$NSLOTS
|
||||||
|
|
||||||
|
### Run gprMax with input file
|
||||||
|
cd $HOME/gprMax
|
||||||
|
python -m gprMax mymodel.in -n 100
|
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#####################################################################################
|
||||||
|
### Specify bash shell:
|
||||||
|
#$ -S /bin/bash
|
||||||
|
|
||||||
|
### Change to current working directory:
|
||||||
|
#$ -cwd
|
||||||
|
|
||||||
|
### Specify runtime (hh:mm:ss):
|
||||||
|
#$ -l h_rt=01:00:00
|
||||||
|
|
||||||
|
### Email options:
|
||||||
|
#$ -m ea -M joe.bloggs@email.com
|
||||||
|
|
||||||
|
### Parallel environment ($NSLOTS):
|
||||||
|
#$ -pe openmpi_fillup_mark2 800
|
||||||
|
|
||||||
|
### Job script name:
|
||||||
|
#$ -N test_mpi.sh
|
||||||
|
#####################################################################################
|
||||||
|
|
||||||
|
### Initialise environment module
|
||||||
|
. /etc/profile.d/modules.sh
|
||||||
|
|
||||||
|
### Load Anaconda environment for gprMax, i.e. Python 3 and required packages
|
||||||
|
module load anaconda
|
||||||
|
source activate gprMax
|
||||||
|
|
||||||
|
### Load OpenMPI
|
||||||
|
module load openmpi-gcc
|
||||||
|
|
||||||
|
### Set number of OpenMP threads
|
||||||
|
export OMP_NUM_THREADS=8
|
||||||
|
|
||||||
|
### Run gprMax with input file
|
||||||
|
cd $HOME/gprMax
|
||||||
|
mpirun -np $NSLOTS python -m gprMax mymodel.in -n 100 -mpi
|
在新工单中引用
屏蔽一个用户