Juan 5/12/2014: add CALMIP eos BULLX
authorJuan Escobar <juan.escobar@aero.obs-mip.fr>
Fri, 5 Dec 2014 10:21:56 +0000 (10:21 +0000)
committerPhilippe WAUTELET <philippe.wautelet@aero.obs-mip.fr>
Thu, 19 May 2016 14:44:49 +0000 (16:44 +0200)
conf/post/confdollar_eos_default [new file with mode: 0755]
src/configure

diff --git a/conf/post/confdollar_eos_default b/conf/post/confdollar_eos_default
new file mode 100755 (executable)
index 0000000..abf14c5
--- /dev/null
@@ -0,0 +1,181 @@
+#!/bin/sh
+#MNH_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
+#MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
+#MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt  
+#MNH_LIC for details. version 1.
+##
+## Run Parameter
+##
+
+export NBP=${NBP-"1"}
+export TIME=${TIME-"3600"}
+export MNH_EXP=${MNH_EXP-"MNH_EXP"}
+
+export MPIRUN=${MPIRUN-"Mpirun -np ${NBP} "}
+export MONORUN=${MONORUN-"Mpirun -np 1 "}
+export CAT=${CAT-"cat"}
+
+##
+## exection directory
+##
+
+export SUBDIR=${SUBDIR-"${PWD}/${CONFEXP}"}
+export EXECDIR=${EXECDIR-"/tmpdir/${USER}/${CONFEXP}"}
+
+##
+## transfert protocole
+##
+
+export LINKFILES=${LINKFILES-"ln -sf "}
+
+export INDIR=${INDIR-"INDIR"}
+export OUTDIR=${OUTDIR-"${INDIR}"}
+
+case "${INHOST}" in 
+
+    "" ) # default local transfert
+    export GETFILES=${GETFILES-"ln -s "}
+    export RMINDIR=${RMINDIR-"${INDIR}"}
+    ;;
+    
+    *'@'*) # ssh transfert
+    export GETFILES=${GETFILES-"scp"}
+    export RMINDIR=${RMINDIR-"${INHOST}:${INDIR}"}
+    ;;
+
+    workdir) # get file form  $workdir
+    export GETFILES=${GETFILES-"ln -s "}
+    export INDIR="${WORKDIR}/${INDIR}"
+    export RMINDIR="${INDIR}"
+    ;;
+
+
+esac
+
+export OUTHOST=${OUTHOST-"${INHOST}"}
+
+case "${OUTHOST}" in 
+    
+    "" ) # local transfert
+    export PUTFILES=${PUTFILES-"mv "}  
+    export RMMKDIR=${RMMKDIR-"mkdir -p "}
+    export RMOUTDIR=${RMOUTDIR-"${OUTDIR}"}
+    ;;
+    
+    *'@'*) # ssh transfert
+    export PUTFILES=${PUTFILES-"scp"} 
+    export RMMKDIR=${RMMKDIR-"ssh ${OUTHOST} mkdir -p "}
+    export RMOUTDIR=${RMOUTDIR-"${OUTHOST}:${OUTDIR}"}
+    ;;
+
+    workdir) # put files in $workdir
+    export PUTFILES=${PUTFILES-"cp "}
+    export RMMKDIR=${RMMKDIR-"mkdir -p "}
+    export OUTDIR="${WORKDIR}/${OUTDIR}"
+    export RMOUTDIR="${OUTDIR}"
+    ;;
+
+esac
+
+#export RMSHELL=${RMSHELL-"exec sh -c "}
+export RMSHELL=${RMSHELL-"ssh -n eos "}
+export QSUB=${QSUB-"/usr/bin/sbatch"}
+
+##
+## Job Header
+##
+
+export CORE=${CORE-20}
+export NCPUS=${CORE} MPIPROCS=${CORE}
+export NBNODES=$( echo " scale=0 ; 1 + ( ${NBP} - 1 ) / ${NCPUS} " | bc -l )
+
+export JOBOUT=${JOBOUT-"Sortie_${NBP}P_${CORE}C_${NBNODES}N_${VER_MPI}.%j"}
+export JOBNAME=${JOBNAME-"job_${CONFEXP}"}
+
+export JOBMULTI="\
+#!/bin/bash
+#SBATCH -J  R`basename  $PWD | cut -c -14 `
+#SBATCH -e ${JOBOUT} -o  ${JOBOUT}
+# concatene la sortie standard avec l erreur standard
+#PBS -j oe 
+# réservation de ${NBP} processeurs 
+#SBATCH -N ${NBNODES} -n ${NBP} 
+#SBATCH -t ${TIME}
+"
+
+export JOBMONO="\
+#!/bin/bash
+#SBATCH -J  R`basename  $PWD | cut -c -14 `
+#SBATCH -eo ${JOBOUT} 
+# concatene la sortie standard avec l erreur standard
+#PBS -j oe 
+# réservation de ${NBP} processeurs 
+#SBATCH -N ${NBNODES} -n ${NBP} 
+#PBS -t ${TIME}
+"
+
+export JOBSTAT=${JOBSTAT-"squeue \${SLURM_JOBID} "}
+
+##
+## Default Name of input/output files parameters ...
+##
+
+## PrepPgd
+
+export PREP_PGD_FILES=${PREP_PGD_FILES-"${HOME}/PREP_PGD_FILES_WWW"}
+
+export OUT_CPGDFILE=${OUT_CPGDFILE-"OUT_CPGDFILE"}
+export INP_CPGDFILE_FATHER=${INP_CPGDFILE_FATHER-"INP_CPGDFILE_FATHER"}
+
+## PrepNest
+
+export INP_YPGD1=${INP_YPGD1-"INP_YPGD1"}
+export INP_YPGD2=${INP_YPGD2-"INP_YPGD2"}
+export INP_YPGD3=${INP_YPGD3-"INP_YPGD3"}
+export INP_YPGD4=${INP_YPGD4-"INP_YPGD4"}
+export LISTGET=${LISTGET-"LISTGET"}
+export CRT_YNEST=${CRT_YNEST-"CRT_YNEST"}
+export OUT_YPGD1_NEST=${OUT_YPGD1_NEST-"OUT_YPGD1_NEST"}
+export OUT_YPGD2_NEST=${OUT_YPGD2_NEST-"OUT_YPGD2_NEST"}
+export LISTE_PUT=${LISTE_PUT-"LISTE_PUT"}
+
+## PrepReal
+
+export INDIR_HATMFILE=${INDIR_HATMFILE-"${RMINDIR}"}
+export INP_HATMFILE=${INP_HATMFILE-"INP_HATMFILE"}
+export SUF=${SUF-"SUF"}
+export INP_HPGDFILE=${INP_HPGDFILE-"INP_HPGDFILE"}
+export INP_CFILE=${INP_CFILE-"INP_CFILE"}
+export OUT_CINIFILE=${OUT_CINIFILE-"OUT_CINIFILE"}
+
+## Spawning
+
+export INP_YDOMAIN=${INP_YDOMAIN-"INP_YDOMAIN"}
+export INP_CINIFILE=${INP_CINIFILE-"INP_CINIFILE"}
+export OUT_CINIFILE_SPA=${OUT_CINIFILE_SPA-"OUT_CINIFILE_SPA"}
+
+## Mesonh
+
+export INP_CINIFILE1=${INP_CINIFILE1-"INP_CINIFILE1"}
+export INP_CINIFILE2=${INP_CINIFILE2-"INP_CINIFILE2"}
+export CRT_CEXP=${CRT_CEXP-"CRT_CEXP"}
+export CRT_CSEG=${CRT_CSEG-"CRT_CSEG"}
+export OUT_XFMOUT=${OUT_XFMOUT-"OUT_XFMOUT"}
+
+## Diag
+
+export INP_YINIFILE=${INP_YINIFILE-"INP_YINIFILE"}
+export CRT_YSUFFIX=${CRT_YSUFFIX-"CRT_YSUFFIX"}
+export OUT_DIAG=${OUT_DIAG-"OUT_DIAG"}
+
+## Conv2dia
+
+export CRT_CVYSUFFIX=${CRT_CVYSUFFIX-"CRT_CVYSUFFIX"}
+export OUT_CVFILE=${OUT_CVFILE-"OUT_CVFILE"}
+
+## Diaprog
+
+export INP_FILE1=${INP_FILE1-"INP_FILE1"}
+export NOVISU==${NOVISU=-"!"}
+export OUT_GMFILE=${OUT_GMFILE-"OUT_GMFILE"}
+
index 1029e30..52c33be 100755 (executable)
@@ -249,6 +249,15 @@ export LD_LIBRARY_PATH=\$MPI_ROOT/lib64:\$LD_LIBRARY_PATH
 export MANPATH=\$MPI_ROOT/share/man:\$MANPATH
 "}
               ;;
+'Linux eos'*)
+                export     ARCH=${ARCH:-LXifort}
+                export  VER_MPI=${VER_MPI:-MPIINTEL}
+                export OPTLEVEL=${OPTLEVEL:-O2}
+               export VER_CDF=${VER_CDF:-CDFAUTO}
+                export   MNHENV=${MNHENV:-"
+"}
+              ;;
+
 Linux*)
                 export     ARCH=${ARCH:-LXgfortran}
                 export  VER_MPI=${VER_MPI:-MPIVIDE}
@@ -314,6 +323,10 @@ case "$(hostname)" in
         export POSTCONF=confdollar_titane_default
         ;;
 
+  eos*)
+        export POSTCONF=confdollar_eos_default
+        ;;
+
   *)
         export POSTCONF=confdollar_aeropc_default
         ;;
@@ -347,7 +360,7 @@ cp profile_mesonh profile_mesonh-${XYZ}
 #
 #  Do some post-install stuff
 #
-if [ ${MVWORK} == "YES" ] ; then
+if [ "x${MVWORK}" == "xYES" ] ; then
    if [ "x${WORKDIR}" == "x" ] ; then
      echo "ATTENTION :: configure !!!!!"
      echo