Changeset 4471 for CONFIG/UNIFORM


Ignore:
Timestamp:
06/21/19 11:02:31 (5 years ago)
Author:
jgipsl
Message:

Start version of compilation script.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh

    r4470 r4471  
    1313 
    1414#### Set default options  
     15# Atmospheric resolution, for LMDZ/ORCHIDEE in regular mode 
     16resol_atm=144x142x79 
     17# Oceanic resolution, for NEMO (ORCA2/ORCA1/ORCA025) 
     18resol_oce=ORCA1 
     19# Version of ice model lim2/lim3 
     20version_lim=lim3 
     21# Version ESM CO2: CO2 interactif ocean/atmosphere (y/n) 
     22esmco2=n 
     23 
    1524# Optimization mode 
    1625# optmode=prod/dev/debug 
    1726optmode=prod 
    18 # Resolution of LMDZ in regular mode 
    19 resol_atm=144x142x79 
    20  
    2127# fcm_arch 
    2228fcm_arch=default 
     
    2935 
    3036# Output text file for compilation of each component 
    31 outfile=$submitdir/out_compile_lmdzor 
     37outfile=$submitdir/out_compile_ipslcm6 
    3238rm -f $outfile; echo > $outfile 
    33 echo; echo "Text output from compilation will be stored in file out_compile_lmdzor"; echo  
     39echo; echo "Text output from compilation will be stored in file out_compile_ipslcm6"; echo  
    3440 
    3541#### Read arguments  
     
    4046 
    4147######################################################################## 
    42 # Usage of the script compile_lmdzor.sh 
     48# Usage of the script compile_ipslcm6.sh 
    4349# 
    4450######################################################################## 
    4551 
    46 ./compile_config [Options]  
    47  
    48 Options: -full, -resol_atm, -debug, -dev, -prod(default) 
    49  
    50 Example 1: Default compilation of LMDZ-ORCHIDEE with XIOS and IOIPSL 
    51 ./compile_lmdzor.sh 
    52  
    53 Example 2: Compile in debug mode 
    54 ./compile_lmdzor.sh -debug 
    55  
    56 Example 3: Default compilation with full recompilation of all components 
    57 ./compile_lmdzor.sh -full 
    58  
    59 Example 4: Compilation of LMDZ in regular lat-lon for other dimensions (default: 144x142x79)  
    60 The dimension can be changed to any other 3d dimension. 
    61 ./compile_lmdzor.sh -resol_atm 96x95x79 
     52./compile_ipslcm6.sh [Options]  
     53 
     54 
     55Options: [LR / VLR / MR025] Model resolution, choose only one. Default: LR. 
     56         [ESMCO2] Compile IPSLCM6 for CO2 interactif ocean/atmosphere. 
     57         [-full] Full recompilation of all components. This option can be added to all other options. 
     58         [-debug / -dev / -prod] Level of optimization. One of these can be added to all other compile options. Default: -prod. 
     59 
     60 
     61Example 1: Default compilation of IPSLCM6 for resoltion LR  
     62          (Resolution atmos: 144x142x79, ocean: ORCA1) 
     63./compile_ipslcm6.sh 
     64 
     65Example 2: Compilation of IPSLCM6 for resolution MR025 
     66           (atmos: 256x256x79, ocean: ORCA025, NOPISCES) 
     67./compile_ipslcm6.sh MR025 
     68 
     69Example 3: Compilation of IPSLCM6 for ESM CO2 
     70./compile_ipslcm6.sh ESMCO2 
     71 
     72Example 4: Default resoltuion (LR) compiled in debug mode 
     73./compile_ipslcm6.sh -debug 
     74 
     75Example 5: Default compilation with full recompilation of all components. No clean is needed. 
     76./compile_ipslcm6.sh -full 
     77 
     78Example 6: Full recompilation of resolution MR05 in debug mode 
     79./compile_ipslcm6.sh MR025 -debug -full 
    6280 
    6381fin 
    6482            exit;; 
     83 
     84        "VLR") 
     85            resol_atm=96x95x39; resol_oce=ORCA1 ; version_lim=lim2;  shift ;;  
     86 
     87        "LR") 
     88            resol_atm=144x142x79; resol_oce=ORCA1 ; version_lim=lim3; shift ;;  
     89 
     90        "MR025") 
     91            resol_atm=256x256x79; resol_oce=ORCA025 ; version_lim=lim3;  shift ;;  
     92 
     93        "ESMCO2") 
     94            esmco2=y;  shift ;;  
    6595 
    6696        "-parallel") 
     
    70100            fcm_arch="$2" ; shift ; shift ;; 
    71101         
    72         "-xios") 
    73             xios="$2" ; shift ; shift ;; 
    74          
    75102        "-debug") 
    76103            optmode=debug ; shift ;; 
     
    82109            optmode=prod ; shift ;; 
    83110 
    84         "-resol_atm") 
    85             resol_atm=$2 ; shift ; shift ;; 
    86          
    87111        "-full") 
    88112            full_flag="-full"; shift ;; 
     
    97121done 
    98122 
    99 echo "Following arguments are set in current compiling:" >> $outfile  
    100 echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag resol_atm=${resol_atm}" >> $outfile  
     123echo "Following options are set in current compiling:" >> $outfile  
     124echo "   resol_atm=${resol_atm}, resol_oce=${resol_oce}, $version_lim=${version_lim}" >> $outfile  
     125echo "   esmco2=${esmco2}" >> $outfile  
     126echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag" >> $outfile  
    101127echo >> $outfile 
    102128 
Note: See TracChangeset for help on using the changeset viewer.