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 7646 for trunk/NEMOGCM/SETTE/all_functions.sh – NEMO

Ignore:
Timestamp:
2017-02-06T10:25:03+01:00 (7 years ago)
Author:
timgraham
Message:

Merge of dev_merge_2016 into trunk. UPDATE TO ARCHFILES NEEDED for XIOS2.
LIM_SRC_s/limrhg.F90 to follow in next commit due to change of kind (I'm unable to do it in this commit).
Merged using the following steps:

1) svn merge --reintegrate svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk .
2) Resolve minor conflicts in sette.sh and namelist_cfg for ORCA2LIM3 (due to a change in trunk after branch was created)
3) svn commit
4) svn switch svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk
5) svn merge svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/2016/dev_merge_2016 .
6) At this stage I checked out a clean copy of the branch to compare against what is about to be committed to the trunk.
6) svn commit #Commit code to the trunk

In this commit I have also reverted a change to Fcheck_archfile.sh which was causing problems on the Paris machine.

File:
1 edited

Legend:

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

    r4316 r7646  
    1212###################################################### 
    1313#set -x 
    14 set -o posix 
     14#set -o posix 
    1515#set -u 
    1616#set -e 
     
    197197    cd ${CONFIG_DIR} 
    198198    cd ../ 
    199     REVISION_NB=`svn info | grep -i "Revision:" | sed -e "s/ //" | cut -d ":" -f 2` 
     199    REVISION_NB=`svn info | grep -i "Last Changed Rev:" | sed -e "s/ //g" | cut -d ":" -f 2` 
    200200    if [ ${#REVISION_NB} -eq 0 ] 
    201201    then 
     
    256256#   set_xio_using_server iodef.xml true 
    257257#   set_xio_buffer_size  iodef.xml 50000000 
     258#   set_xio_field_defs   iodef.xml 
    258259# 
    259260############################################################# 
     
    262263usage3=" Usage : set_xio_using_server input_iodef.xml true||false" 
    263264usage4=" Usage : set_xio_buffer_size input_iodef.xml int_buffer_size" 
     265usage5=" Usage : set_xio_field_defs input_iodef.xml" 
    264266 
    265267set_xio_file_type () { 
     
    333335        echo "################" >> ${SETTE_DIR}/output.sette 
    334336 
    335         VAR_NAME=$( grep "^.*<.*variable id.*=.*using_server.*=.*boolean" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" ) 
     337        VAR_NAME=$( grep "^.*<.*variable id.*=.*using_server.*=.*bool" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" ) 
    336338        if [ ${#VAR_NAME} -eq 0 ] 
    337339        then 
    338340                echo "doing \"set_xio_using_server $@\". " 
    339                 echo "xml_tag: "variable id=using_server" with variable: boolean is empty" 
     341                echo "xml_tag: "variable id=using_server" with variable: bool is empty" 
    340342                echo "confirm that an appropriate variable id is in \"${EXE_DIR}/$1\" " 
    341343                echo "exit" 
     
    394396} 
    395397 
     398set_xio_field_defs () { 
     399        minargcount=1 
     400        if [ ${#} -lt ${minargcount} ] 
     401        then 
     402                echo "not enough arguments for set_xio_field_defs" 
     403                echo "${usage5}" 
     404                exit 1 
     405        fi 
     406        unset minargcount 
     407        if [  ! -f ${SETTE_DIR}/output.sette ] ; then 
     408                touch ${SETTE_DIR}/output.sette 
     409        fi 
     410 
     411        echo "executing script : set_xio_field_defs $@" >> ${SETTE_DIR}/output.sette 
     412        echo "################" >> ${SETTE_DIR}/output.sette 
     413 
     414 
     415        [ -f ${EXE_DIR}/field_def_nemo-opa.xml ] || sed -i '/field_def_nemo-opa/d' $1 
     416        [ -f ${EXE_DIR}/field_def_nemo-lim.xml ] || sed -i '/field_def_nemo-lim/d' $1 
     417        [ -f ${EXE_DIR}/field_def_nemo-pisces.xml ] || sed -i '/field_def_nemo-pisces/d' $1 
     418 
     419        echo "finished script : set_xio_field_defs $@" >> ${SETTE_DIR}/output.sette 
     420        echo "++++++++++++++++" >> ${SETTE_DIR}/output.sette 
     421        echo "                " >> ${SETTE_DIR}/output.sette 
     422} 
Note: See TracChangeset for help on using the changeset viewer.