Changeset 4097


Ignore:
Timestamp:
10/25/18 17:59:40 (4 years ago)
Author:
omamce
Message:

O.M. : adding calving

Location:
TOOLS/MOSAIX
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CreateWeightsMask.bash

    r4091 r4097  
    8888 
    8989case ${arch} in 
    90     ( curie ) 
    91     set +vx 
    92     module purge 
    93     source /ccc/cont003/home/dsm/p86ipsl/.env_intel17.0.2_curie; 
    94     source /ccc/cont003/home/dsm/p86ipsl/.env_netcdf4.3.3.1_curie 
    95     module load datadir/igcmg 
    96     R_IN=$(ccc_home -u igcmg --cccwork)/IGCM 
    97     TMPDIR=${SCRATCHDIR}/TMP 
    98     SUBMIT_DIR=${BRIDGE_MSUB_PWD:-${SUBMIT_DIR}} 
    99     PROGRAM=${BRIDGE_MSUB_REQNAME} 
    100     MPIRUN=ccc_mprun 
    101     ;; 
    102     ( irene ) 
     90     ( irene ) 
    10391    set +vx 
    10492    module purge 
     
    731719done 
    732720ls -al ${OCE}_coordinates_mask.nc 
     721 
     722## 
     723## Creates and save auxiliary files for OASIS 
     724## =========================================================================== 
     725bash ${SUBMIT_DIR}/CreateOasisGrids.bash --oce ${OCE} --atm ${ATM} 
     726 
     727cp areas_${OCE}x${ATM}.nc ${SUBMIT_DIR} 
     728cp grids_${OCE}x${ATM}.nc ${SUBMIT_DIR} 
     729cp masks_${OCE}x${ATM}.nc ${SUBMIT_DIR} 
     730 
     731## 
     732## Calving 
     733## =========================================================================== 
     734case ${OCE} in 
     735    ( eORCA1.2 ) 
     736    cp ${R_IN}/OCE/NEMO/ORCA1_LIM3_PISCES/v3.6_stable/runoff-icb_DaiTrenberth_Depoorter_eORCA1_JD.nc . 
     737    for Type in nosouth iceberg iceshelf ; do 
     738        python CalvingWeights.py --oce=${OCE} --atm=${ATM} --type=${Type} --dir=. --isf_icb=runoff-icb_DaiTrenberth_Depoorter_eORCA1_JD.nc 
     739    done 
     740    ;; 
     741    ( * ) 
     742    python CalvingWeights.py --oce=${OCE} --atm=${ATM} --type=full --dir=. 
     743    ;; 
     744esac 
     745 
    733746## 
    734747## Save results 
     
    741754    cp ${File} ${SUBMIT_DIR}/${NewFile} 
    742755done 
    743  
    744 ## 
    745 ## Creates and save auxiliary files for OASIS 
    746 ## =========================================================================== 
    747 bash ${SUBMIT_DIR}/CreateOasisGrids.bash --oce ${OCE} --atm ${ATM} 
    748  
    749 cp areas_${OCE}x${ATM}.nc ${SUBMIT_DIR} 
    750 cp grids_${OCE}x${ATM}.nc ${SUBMIT_DIR} 
    751 cp masks_${OCE}x${ATM}.nc ${SUBMIT_DIR} 
    752756 
    753757## 
Note: See TracChangeset for help on using the changeset viewer.