From 24a741877958af6f4fbd617f55aa3e42cd729c92 Mon Sep 17 00:00:00 2001
From: Anthony <anthony.schrapffer@polytechnique.fr>
Date: Thu, 27 Feb 2020 18:26:07 +0100
Subject: [PATCH] Test Iberia n48 on a regular grid

---
 tests/Iberia_n48_regular/BuildHTUs_IP.pbs | 35 +++++++++++++++++++++++
 tests/Iberia_n48_regular/run.def          | 28 ++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 tests/Iberia_n48_regular/BuildHTUs_IP.pbs
 create mode 100644 tests/Iberia_n48_regular/run.def

diff --git a/tests/Iberia_n48_regular/BuildHTUs_IP.pbs b/tests/Iberia_n48_regular/BuildHTUs_IP.pbs
new file mode 100644
index 0000000..5b84498
--- /dev/null
+++ b/tests/Iberia_n48_regular/BuildHTUs_IP.pbs
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+#PBS -N BuildHTUs_IP
+#
+#PBS -j oe
+#PBS -l nodes=1:ppn=48
+#PBS -l walltime=12:00:00
+#PBS -l mem=160gb
+#PBS -l vmem=160gb
+#
+cd ${PBS_O_WORKDIR}
+export NSLOTS=$(($PBS_NUM_NODES*$PBS_NUM_PPN))
+#
+# Set the right Python 3 Anaconda environment
+#
+source ../../Environment
+#
+# Clean-up. Weights are kept for future runs.
+#
+/bin/rm -f DocumentationInterface *.nc *.txt
+#
+# Run the Python code to generate the HTUs and write them into a netCDF file.
+#
+mpirun -n ${NSLOTS} python ../../RoutingPreProc.py
+if [ $? -gt 0 ] ; then
+    echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
+    echo "X    Run on Iberian Peninsula failed    X"
+    echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
+else
+    echo "======================================="
+    echo "= Run on Iberian Peninsula successful ="
+    echo "======================================="
+fi
+#
+ls -l
diff --git a/tests/Iberia_n48_regular/run.def b/tests/Iberia_n48_regular/run.def
new file mode 100644
index 0000000..7011ae3
--- /dev/null
+++ b/tests/Iberia_n48_regular/run.def
@@ -0,0 +1,28 @@
+[OverAll]
+#
+#
+#
+EarthRadius = 6370000.
+#
+ModelGridFile = /bdd/MEDI/workspaces/polcher/NewRouting/EM_WFDEI_CRU_2000.nc 
+WEST_EAST = -9.75, 5.25
+SOUTH_NORTH = 35.5, 43.5
+HydroFile = /bdd/MEDI/workspaces/polcher/NewRouting/routing_MED.nc
+#
+# FORTRAN interface parameters
+#
+Documentation = true
+#
+# Configuration for the graph to be generated
+#
+nbasmax = 50
+#
+# Output
+#
+GraphFile = EM_WFDEI_Spain_test_graph.nc
+#
+# Diagnostics
+# You need to provide an interval in longitude and Latitude.
+#
+DiagLon = 3.9, 3.9
+DiagLat = 40.0, 40.0
-- 
GitLab