Skip to content
Snippets Groups Projects
Commit 49ab2e1b authored by POLCHER Jan's avatar POLCHER Jan :bicyclist_tone4:
Browse files

MedCORDEX grid generation using the geogrid which comes after real.exe

and is used by WRF.
parent 44081bc8
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
#SBATCH --job-name=BuildHTUs_MedCORDEX2std # Job Name
#SBATCH --output=BuildHTUs_MedCORDEX2std.out # standard output
#SBATCH --error=BuildHTUs_MedCORDEX2std.out # error output
#SBATCH --ntasks=32 # Number of MPI tasks
#SBATCH --hint=nomultithread # 1 processus MPI par par physical core (no hyperthreading)
#SBATCH --time=280 # time in minutes
#
cd ${SLURM_SUBMIT_DIR}
echo "Available : ${SLURM_NTASKS}, ${SLURM_NPROCS}"
#
# Set the right Python 3 Anaconda environment
#
source ../../Environment
#
# Clean-up. Weights are kept for future runs.
#
/bin/rm -f DocumentationInterface Out_RoutingReg_*.txt Weight_proc_*.txt check.out
#
# Run the Python code to generate the HTUs and write them into a netCDF file.
#
ulimit -s unlimited
mpiexec -n ${SLURM_NTASKS} python ../../RoutingPreProc.py run_MedCORDEX2std.def
if [ $? -gt 0 ] ; then
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZZ"
echo "X MEDCORDEX Run on MedCORDEXstd failed on 32 proc XZZ"
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZZ"
else
echo "====================================================ZZ"
echo "= MEDCORDEX Run on MedCORDEXstd successful on 32 proc ZZ"
echo "====================================================ZZ"
fi
#
# Build station file
#
cat Stations_MedCORDEX2std.def
python ../../StationDiag.py Stations_MedCORDEX2std.def
echo "Check status of ${SLURM_JOB_ID} job:"
sacct -j ${SLURM_JOB_ID} --format=JobID,MaxVMSize,AllocCPUs,UserCPU,Elapsed
exit
[OverAll]
#
#
#
ModelGridFile = /bdd/ORCHIDEE_Forcing/Routing/TestGrids/geo_MedCORDEX_AfterRealExe.nc
EarthRadius = 6370000.
#
HydroFile = MERIT
#
# FORTRAN interface parameters
#
WeightFile = Weights_MedCORDEX2std.nc
#
# Configuration for the graph to be generated
#
nbasmax = 25
#
# Number of operation of simplification performed together
#
numop = 200
#
# Output
#
GraphFile = MedCORDEX2_graph_25HTU.nc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment