Changeset 4697


Ignore:
Timestamp:
09/12/19 15:33:49 (5 years ago)
Author:
acosce
Message:

update compilation script for lmdzorinca_v6.2 configuration

  • add full option in inca compilation
  • add clean_inca option
  • modify some lmdzor by lmdzorinca
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/compile_lmdzorinca.sh

    r4625 r4697  
    2020resol_atm_3d=96x95x39 
    2121optchimie=NMHC_AER_S 
     22#recompilation de inca seul ou de tous les modeles 
     23clean_inca="" 
     24full_flag="" 
    2225 
    2326# fcm_arch 
     
    2629parallel=mpi_omp 
    2730export fcm_arch parallel xios 
    28 full_flag="" 
     31 
    2932# Default netcdf_lib is used for XIOS but can be change by argument 
    3033netcdf_lib="" 
    3134 
    3235# Output text file for compilation of each component 
    33 outfile=$submitdir/out_compile_lmdzor 
     36outfile=$submitdir/out_compile_lmdzorinca 
    3437rm -f $outfile; echo > $outfile 
    35 echo; echo "Text output from compilation will be stored in file out_compile_lmdzor"; echo  
     38echo; echo "Text output from compilation will be stored in file out_compile_lmdzorinca"; echo  
    3639 
    3740#### Read arguments  
     
    5154 
    5255Example 1: Default compilation of LMDZ-ORCHIDEE with XIOS and IOIPSL 
    53 ./compile_lmdzor.sh 
     56./compile_lmdzorinca.sh 
    5457 
    5558Example 2: Compile in debug mode 
    56 ./compile_lmdzor.sh -debug 
     59./compile_lmdzorinca.sh -debug 
    5760 
    5861Example 3: Default compilation with full recompilation of all components 
    59 ./compile_lmdzor.sh -full 
     62./compile_lmdzorinca.sh -full 
    6063 
    6164Example 4: Compilation of LMDZ in regular lat-lon for other dimensions (default: 144x142x79)  
    6265The dimension can be changed to any other 3d dimension. 
    63 ./compile_lmdzor.sh -regular_latlon 96x95x79 
     66./compile_lmdzorinca.sh -regular_latlon 96x95x79 
    6467 
    6568fin 
     
    9396        "-full") 
    9497            full_flag="-full"; shift ;; 
     98 
     99        "-clean_inca") 
     100            clean_inca="-clean"; shift ;; 
    95101         
    96102        "-netcdf_lib_seq") 
     
    198204 
    199205 
    200 ## 2.4 Compile LMDZ for regular latlon configuration 
     206## 2.4 Compile LMDZ and INCA for regular latlon configuration 
    201207if [ $regular_latlon = yes ] ; then 
    202208 
     
    204210    #compile INCA regulat lat_lon chimie librairy  
    205211    echo; echo "NOW COMPILE INCA ${optchimie} on resolution = ${resol_atm_3d}" 
    206     echo ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -resol ${resol_atm_3d} -j 8 -arch ${fcm_arch}  >> $outfile  
    207     ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -resol ${resol_atm_3d} -j 8 -arch ${fcm_arch} -arch_path $arch_path  >> $outfile 2>&1 
     212    echo ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -resol ${resol_atm_3d} -j 8 -arch ${fcm_arch}  -arch_path $arch_path $full_flag $clean_inca >> $outfile  
     213    ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -resol ${resol_atm_3d} -j 8 -arch ${fcm_arch} -arch_path $arch_path  $full_flag $clean_inca >> $outfile 2>&1 
    208214 
    209215    # Test if compiling finished 
Note: See TracChangeset for help on using the changeset viewer.