Changeset 6045


Ignore:
Timestamp:
01/13/22 14:51:11 (2 years ago)
Author:
omamce
Message:

O.M. : CreateWeights?.bash irene environment

updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CreateWeightsMask.bash

    r6042 r6045  
    44#MSUB -e Out_WeightsMask    # Error output 
    55#MSUB -n 4                  # Number of processors 
    6 ##MSUB -T 7200               # Time limit (seconds) 
    7 #MSUB -T 1800 
    8 #MSUB -Q test 
     6#MSUB -T 7200              # Time limit (seconds) 
     7#MSUB -Q normal 
    98#MSUB -q skylake 
    10 #MSUB -p gen2212 
    11 #MSUB -m work,store 
     9#MSUB -p devcmip6 
     10#MSUB -m work,store,scratch 
    1211 
    1312### =========================================================================== 
     
    7978 
    8079#Version="v0" ; Comment="Fully tested in IPSLCM6 eORCA1.2 x LMD 144x142" 
    81 Version="v1" ; Comment="Fully tested in IPSLCM6 eORCA1.2 x LMD 144x142" 
     80#Version="v1" ; Comment="Fully tested in IPSLCM6 eORCA1.2 x LMD 144x142" 
     81Version="NoSearchRadius" ; Comment="For testing new routing" 
    8282 
    8383# If available, get model name from job name 
     
    105105# More specific cases 
    106106[[ ${CplModel} = eORCA1.2xLMD144142 ]] && { atmCoastWidth=2 ; oceCoastWidth=2 ; searchRadius=550.0 ; Version="v1" ; Comment="Fully tested in IPSLCM6 eORCA1.2 x LMD 144x142" ; } 
     107 
     108if [[ ${CplModel} = eORCA1.2xLMD144142 && Version = "NoSearchRadius" ]] ; then 
     109    atmCoastWidth=2 ; oceCoastWidth=2 ; searchRadius=0.0 
     110fi 
    107111 
    108112# Default values, used to create ocean fraction on atmospheric grid  
     
    243247 
    244248# 
    245 #Defines computer 
     249# Defines computer 
    246250# ================ 
    247251if [[ $(hostname) = irene*    ]] ; then arch=irene ; center=tgcc ; fi 
     
    257261    MpiRun="time ccc_mprun" 
    258262    PyRun="time ccc_mprun -n 1" # Needed to force python to run on one process only 
    259     #module purge 
    260     source $(ccc_home -u igcmg)/MachineEnvironment/irene/env_irene 
     263    module purge 
    261264    source ${SUBMIT_DIR}/arch.env 
    262     #module load nco 
     265    module load nco/4.9.2 
    263266    module load python3  
    264267    module load datadir/igcmg 
     
    279282 
    280283mkdir -p ${TMPDIR}/${CplModel} || exit 1 
    281 cd       ${TMPDIR}/${CplModel} || exit 1 
     284cd       ${TMPDIR}/${CplModel} || exit 2 
    282285rm -fr * 
    283286 
     
    688691    cp add_varoce.nco add_varoce_$(basename ${rmpFile} .nc)_o_to_a.nco 
    689692    [[ ${o_to_a} = true ]] && ncap2 --history --append --script-file add_varoce_$(basename ${rmpFile} .nc)_o_to_a.nco ${OCE}_coordinates_mask.nc ${rmpFile} 
    690     sed -i "" -e "s/src_/dst_/g" add_varoce.nco 
     693    sed -i~ -e "s/src_/dst_/g" add_varoce.nco 
    691694    cp add_varoce.nco add_varoce_$(basename ${rmpFile} .nc)_a_to_o.nco 
    692695    [[ ${a_to_o} = true ]] && ncap2 --history --append --script-file add_varoce_$(basename ${rmpFile} .nc)_a_to_o.nco ${OCE}_coordinates_mask.nc ${rmpFile} 
     
    725728        fi 
    726729                     
    727         sed -i "" -e "s/dst_/src_/g" add_varatm.nco 
     730        sed -i~ -e "s/dst_/src_/g" add_varatm.nco 
    728731        cp add_varatm.nco add_varatm_$(basename ${rmpFile} .nc)_a_to_o.nco 
    729732        if [[ ${a_to_o} = true ]] ; then 
     
    769772        fi 
    770773         
    771         sed -i "" -e "s/dst/src/g" add_varatm.nco 
     774        sed -i~ -e "s/dst/src/g" add_varatm.nco 
    772775        cp add_varatm.nco add_varatm_$(basename ${rmpFile} .nc)_a_to_o.nco 
    773776        if [[ ${a_to_o} = true ]] ; then 
Note: See TracChangeset for help on using the changeset viewer.