Changeset 2166 for XIOS


Ignore:
Timestamp:
06/25/21 18:03:14 (3 years ago)
Author:
ymipsl
Message:

adapt makefile to new fcm version
--fcm new --> default flage
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/make_xios

    r1875 r2166  
    1111use_extern_blitz="false" 
    1212use_memtrack="false" 
    13 use_tv="false" 
    1413job="1" 
    1514netcdf_lib="netcdf4_par" 
     
    1918arch_defined="FALSE" 
    2019arch_path_defined="FALSE" 
     20fcm_version=new 
    2121 
    2222# Traitement de la ligne de commande 
     
    3535            echo "       [--full] : to generate dependencies and recompile from scratch" 
    3636            echo "       [--use_oasis 'oasis3' 'oasis3_mct' : default oasis3_mct] : to use Oasis coupler" 
    37         echo "       [--build_path] : absolute path to the build directory" 
    38         echo "       [--build_dir ]: name of the build directory" 
    39         echo "       [--build_suffixed ]: generate automatically suffixed name of the build directory (e.g. config_X64_CURIE_prod)" 
    40         echo "       [--use_extern_boost] : to use external boost library" 
    41         echo "       [--use_extern_blitz] : to use external blitz library" 
    42         echo "       [--use_tv] : to use totalview data type display" 
     37        echo "       [--build_path : absolute path to the build directory" 
     38        echo "       [--build_dir : name of the build directory" 
     39        echo "       [--build_suffixed : generate automatically suffixed name of the build directory (e.g. config_X64_CURIE_prod)" 
     40        echo "       [--use_extern_boost : to use external boost library" 
     41        echo "       [--use_extern_blitz : to use external blitz library" 
    4342            echo "       [--doc] : to generate Doxygen documentation (not available yet)" 
    4443            echo "       [--job ntasks] : to use parallel compilation with ntasks" 
    4544            echo "       [--netcdf_lib 'netcdf4_par'/'netcdf4_seq'/'netcdf4_internal' : default netcdf4_par] : choice of netcdf library" 
    4645            echo "       [--memtrack] : tracking memory leak - developper only" 
     46            echo "       [--fcm] : fcm version compatibility : 'new'/'old'" 
    4747            echo "Example : ./make_xios --prod --arch PW6_VARGAS" 
    4848            echo "Example : ./make_xios --avail" 
     
    6161         "--use_extern_boost")  use_extern_boost="true" ; shift  ;; 
    6262         "--use_extern_blitz")  use_extern_blitz="true" ; shift  ;; 
    63          "--use_tv")  use_tv="true" ; shift  ;; 
    6463         "--doc")   doc="true"          ; shift ;; 
    6564         "--job")   job=$2              ; shift ; shift ;; 
    6665         "--netcdf_lib")   netcdf_lib=$2 ; shift ; shift ;; 
    6766         "--memtrack")  use_memtrack="true" memtrack=$2  ; shift ; shift ;; 
     67         "--fcm")       fcm_version=$2  ; shift ; shift ;; 
    6868         *)         code="$1"           ; shift ;; 
    6969      esac 
     
    236236fi 
    237237 
    238 if [[ "$use_tv" == "true" ]] 
    239 then 
    240    echo "src::tv_data_display $PWD/extern/tv_data_display" >> ${PWD}/bld_dir.cfg 
    241 fi 
    242  
    243238 
    244239if [[ "$use_memtrack" == "true" ]] 
     
    284279make_dir=$PWD 
    285280 
    286 export PATH=$PWD/tools/FCM/bin:$PATH 
    287  
     281if [[ "$fcm_version" == "new" ]] 
     282then 
     283  export PATH=$PWD/tools/FCM_NEW/bin:$PATH 
     284elif [[ "$fcm_version" == "old" ]] 
     285then 
     286  export PATH=$PWD/tools/FCM_OLD/bin:$PATH 
     287else 
     288  echo "=> Bad option for --fcm flag : "$fcm_version" , only 'new' or 'old' permitted" 
     289fi 
     290   
    288291if [[ "$compil_full" == "true" ]] 
    289292   then 
Note: See TracChangeset for help on using the changeset viewer.