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 2583 for trunk/NEMOGCM/SETTE – NEMO

Changeset 2583 for trunk/NEMOGCM/SETTE


Ignore:
Timestamp:
2011-02-10T09:32:29+01:00 (13 years ago)
Author:
flavoni
Message:

small modifications for SETTE, see ticket #796

Location:
trunk/NEMOGCM/SETTE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/SETTE/all_functions.sh

    r2562 r2583  
    9999       
    100100   VAR_NAME=$( supergrep $2 ${INPUT_DIR}/$1 ) 
    101       sed -e "s/${VAR_NAME}/$2=$3/"  ${INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp 
    102       mv ${INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1 
    103      
     101        sed -e "s/${VAR_NAME}.*/${VAR_NAME}/" ${INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp 
     102        mv ${INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1 
     103        sed -e "s/${VAR_NAME}/$2=$3/"  ${INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp 
     104        mv ${INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1 
     105 
    104106   if [  -f ${INPUT_DIR}/$1 ] ; then 
    105107         echo "namelist not empty: ok" 
  • trunk/NEMOGCM/SETTE/fcm_job.sh

    r2562 r2583  
    107107   echo "            " >> ${SETTE_DIR}/output.sette 
    108108   cp ${FORCING_DIR}/${tar_file} ${INPUT_DIR}/. 
    109    cd ${INPUT_DIR} ; tar xvf ${INPUT_DIR}/*.tar ; gunzip *gz 
     109   cd ${INPUT_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip *gz 
    110110fi  
    111111 
Note: See TracChangeset for help on using the changeset viewer.