Changeset 4049


Ignore:
Timestamp:
2013-10-03T11:07:09+02:00 (7 years ago)
Author:
clevy
Message:

Configuration setting/bugfixes for SETTE see ticket:#1074

Location:
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/SETTE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-X64_CURIE

    r3680 r4049  
    2222# Local settings for machine BULL (TITANE at CCRT France) 
    2323# 
    24 export MPIRUN="ccc_mprun -np $OCEANCORES" 
     24export MPIRUN="mpirun -np $OCEANCORES" 
    2525 
    2626# 
     
    3131 
    3232# modules to load 
    33 module load netcdf 
     33module unload netcdf 
     34module unload hdf5 
     35module load netcdf/4.2_hdf5_parallel 
     36module load hdf5/1.8.9_parallel 
    3437 
    3538# Don't remove neither change the following line 
  • branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/SETTE/all_functions.sh

    r4044 r4049  
    131131                echo " variable $VAR_NAME will be added in $NAMGRP namelist-group of namelist file ${EXE_DIR}/$1 " >> ${SETTE_DIR}/output.sette 
    132132# Add $VARNAME in namelist file ${EXE_DIR}/$1 in namelist group $NAMGRP 
    133  
    134                 sed "/${NAMGRP} /a\  
    135 ${VAR_NAME}  
    136  " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     133# on mac osx, replace sed --posix by gsed (available with mac port) 
     134set -vx  
     135                sed --posix "/${NAMGRP} /a\ ${VAR_NAME} " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp || gsed --posix "/${NAMGRP} /a\ ${VAR_NAME} " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     136set +vx 
    137137# if file not empty replace ${EXE_DIR}/$1 
    138138                if [ -s ${EXE_DIR}/$1.tmp ] ; then 
  • branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/SETTE/prepare_job.sh

    r4044 r4049  
    119119   echo "NB of tarfiles ${NBTAR} " >> ${SETTE_DIR}/output.sette 
    120120# loop on tarfiles 
    121    for nbtar_file in ${NBTAR} ; do 
    122 # read file name and directory in FORCING dir 
    123       read tar_file dir_conf_forc < ${SETTE_DIR}/$INPUTARFILE 
     121# read file name and directory 
     122while read tar_file dir_conf_forc  
     123do 
    124124      echo looking for tarfile ${tar_file} and directory ${FORCING_DIR}/${dir_conf_forc} ; echo looking for tarfile ${tar_file} and directory ${FORCING_DIR}/${dir_conf_forc} >> ${SETTE_DIR}/output.sette 
    125125      if [ -f ${FORCING_DIR}/${tar_file} ] && [ -d ${FORCING_DIR}/${dir_conf_forc} ] ; then 
     
    144144           [ -f ${EXE_DIR}/${fida} ] || ln -s ${FORCING_DIR}/${dir_conf_forc}/${fida} ${EXE_DIR}/${fida} 
    145145         done 
    146     done 
     146    done < ${SETTE_DIR}/$INPUTARFILE 
    147147 
    148148else 
Note: See TracChangeset for help on using the changeset viewer.