-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgcc_cmaq_mnt.csh
executable file
·46 lines (39 loc) · 1.6 KB
/
gcc_cmaq_mnt.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/csh -f
# -----------------------
# Download and build CMAQ
# -----------------------
# Set installation directory
setenv DIR /mnt/build
# Set local directory for cyclecloud-cmaq
setenv CLOUD /mnt/cyclecloud-cmaq
setenv IOAPI_DIR $DIR/ioapi-3.2/Linux2_x86_64gfort
setenv NETCDF_DIR $DIR/netcdf/lib
setenv NETCDFF_DIR $DIR/netcdf/lib
cd $DIR
#git clone -b 5.3.2_singularity https://github.com/lizadams/CMAQ.git CMAQ_REPO
git clone -b main https://github.com/USEPA/CMAQ.git CMAQ_REPO_v533
echo "downloaded CMAQ"
cd CMAQ_REPO_v533
cp $CLOUD/bldit_project_v533_mnt.csh $DIR/CMAQ_REPO_v533
./bldit_project_v533_mnt.csh
#module load openmpi
cd $DIR/openmpi_gcc/CMAQ_v533/CCTM/scripts/
cp $CLOUD/config_cmaq_mnt.csh ../../config_cmaq.csh
./bldit_cctm.csh gcc |& tee ./bldit_cctm.log
cp ./run_scripts/run* $DIR/openmpi_gcc/CMAQ_v533/CCTM/scripts/
cd $DIR/openmpi_gcc/CMAQ_v533/CCTM/scripts/
# submit job to the queue using
# sbatch run_cctm_2016_12US2.256pe.csh
# if you get the following error it means the compute nodes are not running
#sbatch: error: Batch job submission failed: Required partition not available (inactive or drain)
# if you get this error
# sbatch run_cctm_2016_12US2.256pe.csh
#sbatch: error: Batch job submission failed: More processors requested than permitted
# Check the number of processors on the machine, and whether you have hyperthreading turned off
#!/bin/csh -f
#SBATCH --nodes=16
#SBATCH --ntasks-per-node=16
#Model vCPU Memory (GiB) Instance Storage (GiB)
# c5.4xlarge 16 32 EBS-Only
# created a run script to use only 8 cpu per node for 128 pe job
#sbatch run_cctm_2016_12US2.128pe.csh