New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 15528 – NEMO

Changeset 15528


Ignore:
Timestamp:
2021-11-22T17:58:33+01:00 (9 months ago)
Author:
lovato
Message:

Update CMCC X64_ZEUS batch script (fix detached mode)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette/BATCH_TEMPLATE/batch-X64_ZEUS

    r14561 r15528  
    7272  startTime=$(date +%s) 
    7373  if [ MPI_FLAG == "yes" ]; then 
    74      if [ $USING_MPMD == "yes" ] && [ $XIOS_NUMPROCS -gt 0 ]; then 
     74     if [ ${USING_MPMD} == "yes" ] && [ ${XIOS_NUMPROCS} -gt 0 ]; then 
    7575        # XIOS detached mode 
    76         export MP_PGMMODEL=mpmd 
    77         export MP_CMDFILE=xioscmdfile 
    78         rm xioscmdfile &> /dev/null 
    79         touch xioscmdfile 
    80         k=0 
    81         while (( k < $OCEANCORES )) ; do 
    82            echo ./nemo >> xioscmdfile 
    83            k=`expr $k + 1` 
    84         done 
    85         k=0 
    86         while (( k < $XIOS_NUMPROCS )) ; do 
    87            echo $XIOS_SERVER_PATHNAME >> xioscmdfile 
    88            k=`expr $k + 1` 
    89         done 
     76        xioscmdfile="xioscmdfile" 
     77        # FIX for IMPI and XIOS execution 
     78        export I_MPI_LIBRARY_KIND="release_mt" 
     79        source ${I_MPI_ROOT}/intel64/bin/mpivars.sh ${I_MPI_LIBRARY_KIND} 
     80        # 
     81        echo "# Configuration file for mpiexec.hydra" > $xioscmdfile 
     82        echo "-n ${OCEANCORES} ./nemo" >> $xioscmdfile 
     83        echo "-n ${XIOS_NUMPROCS} ${XIOS_SERVER_PATHNAME}" >> $xioscmdfile 
    9084 
    91         time ${MPIRUN} 
     85        time ${MPIRUN} -configfile $xioscmdfile 
     86 
    9287     else 
    9388        # XIOS attached mode 
Note: See TracChangeset for help on using the changeset viewer.