[248] | 1 | #!/bin/bash |
---|
| 2 | install_dir=$PWD |
---|
[287] | 3 | compil_full="false" |
---|
| 4 | use_oasis="false" |
---|
[475] | 5 | oasis="oasis3_mct" |
---|
[1497] | 6 | build_path="./" |
---|
| 7 | build_dir="./" |
---|
| 8 | build_suffixed="false" |
---|
[1449] | 9 | use_extern_boost="false" |
---|
[1453] | 10 | use_extern_blitz="false" |
---|
[402] | 11 | use_memtrack="false" |
---|
[313] | 12 | job="1" |
---|
[381] | 13 | netcdf_lib="netcdf4_par" |
---|
| 14 | compil_mode="prod" |
---|
[1497] | 15 | arch_path=$PWD/"arch" |
---|
| 16 | arch_default_path=$PWD/"arch" |
---|
[1450] | 17 | arch_defined="FALSE" |
---|
| 18 | arch_path_defined="FALSE" |
---|
[2166] | 19 | fcm_version=new |
---|
[248] | 20 | |
---|
| 21 | # Traitement de la ligne de commande |
---|
| 22 | while (($# > 0)) |
---|
| 23 | do |
---|
| 24 | case $1 in |
---|
[383] | 25 | "-h"|"--help"|"-help") |
---|
[374] | 26 | echo "make_xios - installs XIOS on your architecture" |
---|
| 27 | echo "make_xios [options]" |
---|
| 28 | echo "options :" |
---|
[381] | 29 | echo " [--prod] : compilation in production mode (default)" |
---|
[374] | 30 | echo " [--dev] : compilation in development mode" |
---|
| 31 | echo " [--debug] : compilation in debug mode" |
---|
| 32 | echo " --arch arch : to choose target architecture" |
---|
| 33 | echo " [--avail] : to know available target architectures " |
---|
| 34 | echo " [--full] : to generate dependencies and recompile from scratch" |
---|
[1497] | 35 | echo " [--use_oasis 'oasis3' 'oasis3_mct' : default oasis3_mct] : to use Oasis coupler" |
---|
[2166] | 36 | echo " [--build_path : absolute path to the build directory" |
---|
| 37 | echo " [--build_dir : name of the build directory" |
---|
| 38 | echo " [--build_suffixed : generate automatically suffixed name of the build directory (e.g. config_X64_CURIE_prod)" |
---|
| 39 | echo " [--use_extern_boost : to use external boost library" |
---|
| 40 | echo " [--use_extern_blitz : to use external blitz library" |
---|
[374] | 41 | echo " [--doc] : to generate Doxygen documentation (not available yet)" |
---|
| 42 | echo " [--job ntasks] : to use parallel compilation with ntasks" |
---|
[410] | 43 | echo " [--netcdf_lib 'netcdf4_par'/'netcdf4_seq'/'netcdf4_internal' : default netcdf4_par] : choice of netcdf library" |
---|
[2213] | 44 | echo " [--memtrack full/light] : tracking memory leak - developper only" |
---|
[2166] | 45 | echo " [--fcm] : fcm version compatibility : 'new'/'old'" |
---|
[374] | 46 | echo "Example : ./make_xios --prod --arch PW6_VARGAS" |
---|
| 47 | echo "Example : ./make_xios --avail" |
---|
[248] | 48 | exit;; |
---|
| 49 | "--prod") compil_mode="prod" ; shift ;; |
---|
| 50 | "--dev") compil_mode="dev" ; shift ;; |
---|
| 51 | "--debug") compil_mode="debug" ; shift ;; |
---|
[1450] | 52 | "--arch") arch=$2 ; arch_defined="TRUE"; shift ; shift ;; |
---|
| 53 | "--arch_path") arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; |
---|
[383] | 54 | "--avail") ls arch/*.fcm | cut -d"-" -f2 | cut -d"." -f1 ; exit ;; |
---|
[313] | 55 | "--full") compil_full="true" ; shift ;; |
---|
[475] | 56 | "--use_oasis") use_oasis="true" oasis=$2 ; shift ; shift ;; |
---|
[1497] | 57 | "--build_path") build_path=$2 ; shift ; shift ;; |
---|
| 58 | "--build_dir") build_dir=$2 ; shift ; shift ;; |
---|
| 59 | "--build_suffixed") build_suffixed="true" ; shift ;; |
---|
[1449] | 60 | "--use_extern_boost") use_extern_boost="true" ; shift ;; |
---|
[1453] | 61 | "--use_extern_blitz") use_extern_blitz="true" ; shift ;; |
---|
[248] | 62 | "--doc") doc="true" ; shift ;; |
---|
[313] | 63 | "--job") job=$2 ; shift ; shift ;; |
---|
[381] | 64 | "--netcdf_lib") netcdf_lib=$2 ; shift ; shift ;; |
---|
[1450] | 65 | "--memtrack") use_memtrack="true" memtrack=$2 ; shift ; shift ;; |
---|
[2166] | 66 | "--fcm") fcm_version=$2 ; shift ; shift ;; |
---|
[248] | 67 | *) code="$1" ; shift ;; |
---|
| 68 | esac |
---|
| 69 | done |
---|
| 70 | |
---|
[374] | 71 | # Installation des sources |
---|
[377] | 72 | nb_files_gz=`ls $install_dir/tools/archive | grep tar.gz | wc -l` |
---|
| 73 | if [ ${nb_files_gz} -ne 0 ] |
---|
[376] | 74 | then |
---|
[377] | 75 | echo -e "- uncompress archives ..." |
---|
[376] | 76 | for tarname in `ls $install_dir/tools/archive/*.tar.gz` ; do |
---|
[1458] | 77 | if ( [[ ${tarname} == "${install_dir}/tools/archive/boost.tar.gz" ]] && [[ "$use_extern_boost" == "true" ]] ) || ( [[ ${tarname} == "${install_dir}/tools/archive/blitz.tar.gz" ]] && [[ "$use_extern_blitz" == "true" ]] ) |
---|
| 78 | then |
---|
| 79 | continue |
---|
| 80 | fi |
---|
[376] | 81 | gunzip -f "$tarname" |
---|
| 82 | tar -xf ${tarname%.gz} |
---|
| 83 | done |
---|
| 84 | fi |
---|
[374] | 85 | |
---|
[1498] | 86 | # Definition of the root directory of the build |
---|
| 87 | |
---|
| 88 | if [[ "$build_path" == "./" ]]; then |
---|
| 89 | install_dir=$PWD |
---|
| 90 | else |
---|
| 91 | install_dir=${build_path} |
---|
| 92 | fi |
---|
| 93 | |
---|
[1497] | 94 | if [[ "$build_suffixed" == "true" ]]; then |
---|
[1498] | 95 | install_dir="${install_dir}/config_${arch}_${compil_mode}" |
---|
[1497] | 96 | else |
---|
[1498] | 97 | install_dir="${install_dir}/${build_dir}" |
---|
[1497] | 98 | fi |
---|
[1498] | 99 | |
---|
[1497] | 100 | mkdir -p $install_dir |
---|
| 101 | |
---|
| 102 | rm -f ${PWD}/bld_dir.cfg |
---|
| 103 | echo "inc ${install_dir}/arch.fcm" >> ${PWD}/bld_dir.cfg |
---|
| 104 | echo "inc ${install_dir}/config.fcm" >> ${PWD}/bld_dir.cfg |
---|
| 105 | echo "dir::root ${install_dir}" >> ${PWD}/bld_dir.cfg |
---|
| 106 | |
---|
[248] | 107 | # Vérification de la présence d'un identifiant d'architecture. |
---|
| 108 | |
---|
[281] | 109 | ############################################################### |
---|
[374] | 110 | # lecture des chemins propres a l'architecture de la machine # |
---|
[281] | 111 | # et configuration de l'environnement # |
---|
| 112 | ############################################################### |
---|
| 113 | |
---|
| 114 | rm -f .void_file |
---|
| 115 | echo > .void_file |
---|
| 116 | rm -rf .void_dir |
---|
| 117 | mkdir .void_dir |
---|
| 118 | |
---|
[1450] | 119 | if [[ "$arch_defined" == "TRUE" ]] |
---|
| 120 | then |
---|
[1497] | 121 | rm -f ${install_dir}/arch.path |
---|
| 122 | rm -f ${install_dir}/arch.fcm |
---|
| 123 | rm -f ${install_dir}/arch.env |
---|
[281] | 124 | |
---|
[1450] | 125 | if test -f $arch_path/arch-${arch}.path |
---|
| 126 | then |
---|
[1497] | 127 | ln -s $arch_path/arch-${arch}.path ${install_dir}/arch.path |
---|
[1450] | 128 | elif test -f $arch_default_path/arch-${arch}.path |
---|
| 129 | then |
---|
[1497] | 130 | ln -s $arch_default_path/arch-${arch}.path ${install_dir}/arch.path |
---|
[1450] | 131 | fi |
---|
| 132 | |
---|
| 133 | if test -f $arch_path/arch-${arch}.fcm |
---|
| 134 | then |
---|
[1497] | 135 | ln -s $arch_path/arch-${arch}.fcm ${install_dir}/arch.fcm |
---|
[1450] | 136 | elif test -f $arch_default_path/arch-${arch}.fcm |
---|
| 137 | then |
---|
[1497] | 138 | ln -s $arch_default_path/arch-${arch}.fcm ${install_dir}/arch.fcm |
---|
[1450] | 139 | fi |
---|
[281] | 140 | |
---|
[1450] | 141 | if test -f $arch_path/arch-${arch}.env |
---|
| 142 | then |
---|
[1497] | 143 | ln -s $arch_path/arch-${arch}.env ${install_dir}/arch.env |
---|
[1450] | 144 | elif test -f $arch_default_path/arch-${arch}.env |
---|
| 145 | then |
---|
[1497] | 146 | ln -s $arch_default_path/arch-${arch}.env ${install_dir}/arch.env |
---|
[281] | 147 | else |
---|
[1497] | 148 | ln -s .void_file ${install_dir}/arch.env |
---|
[1450] | 149 | fi |
---|
[1497] | 150 | source ${install_dir}/arch.env |
---|
| 151 | source ${install_dir}/arch.path |
---|
[1450] | 152 | else |
---|
[381] | 153 | echo "Please choose a target achitecture --> list all available architecture using make_xios --avail!" |
---|
[248] | 154 | exit 1 |
---|
| 155 | fi |
---|
| 156 | |
---|
| 157 | # Vérification de la présence d'un mode de compilation. |
---|
| 158 | |
---|
| 159 | if [[ "$compil_mode" == "prod" ]] |
---|
| 160 | then |
---|
| 161 | COMPIL_CFLAGS="%PROD_CFLAGS" |
---|
| 162 | COMPIL_FFLAGS="%PROD_FFLAGS" |
---|
| 163 | elif [[ "$compil_mode" == "dev" ]] |
---|
| 164 | then |
---|
| 165 | COMPIL_CFLAGS="%DEV_CFLAGS" |
---|
| 166 | COMPIL_FFLAGS="%DEV_FFLAGS" |
---|
| 167 | elif [[ "$compil_mode" == "debug" ]] |
---|
| 168 | then |
---|
| 169 | COMPIL_CFLAGS="%DEBUG_CFLAGS" |
---|
| 170 | COMPIL_FFLAGS="%DEBUG_FFLAGS" |
---|
| 171 | fi |
---|
| 172 | |
---|
[410] | 173 | rm -r $PWD/extern/netcdf4 |
---|
| 174 | |
---|
[381] | 175 | if [[ "$netcdf_lib" == "netcdf4_par" ]] |
---|
| 176 | then |
---|
[410] | 177 | ln -s $PWD/.void_dir $PWD/extern/netcdf4 |
---|
[591] | 178 | XIOS_CPPKEY="$XIOS_CPPKEY USING_NETCDF_PAR" |
---|
[381] | 179 | elif [[ "$netcdf_lib" == "netcdf4_seq" ]] |
---|
| 180 | then |
---|
[410] | 181 | ln -s $PWD/.void_dir $PWD/extern/netcdf4 |
---|
| 182 | elif [[ "$netcdf_lib" == "netcdf4_internal" ]] |
---|
| 183 | then |
---|
| 184 | ln -s $PWD/extern/src_netcdf4 $PWD/extern/netcdf4 |
---|
[591] | 185 | XIOS_CPPKEY="$XIOS_CPPKEY USING_NETCDF_PAR USING_NETCDF_INTERNAL" |
---|
[410] | 186 | export NETCDF_INCDIR="-I${PWD}/extern/netcdf4" |
---|
| 187 | export NETCDF_LIBDIR="" |
---|
| 188 | export NETCDF_LIB="" |
---|
[381] | 189 | else |
---|
[410] | 190 | echo "Bad choice for --netcdf_lib argument : choose between 'netcdf4_par','netcdf4_seq' or 'netcdf4_internal'" |
---|
[381] | 191 | exit |
---|
| 192 | fi |
---|
| 193 | |
---|
[287] | 194 | if [[ "$use_oasis" == "true" ]] |
---|
| 195 | then |
---|
[475] | 196 | if [[ "$oasis" == "oasis3_mct" ]] |
---|
| 197 | then |
---|
[591] | 198 | XIOS_CPPKEY="$XIOS_CPPKEY USE_OMCT" |
---|
[475] | 199 | elif [[ "$oasis" == "oasis3" ]] |
---|
| 200 | then |
---|
[591] | 201 | XIOS_CPPKEY="$XIOS_CPPKEY USE_OASIS" |
---|
[475] | 202 | OASIS_INCDIR="-I$PWD/../../prism/X64/build/lib/psmile.MPI1" |
---|
| 203 | OASIS_LIBDIR="-L$PWD/../../prism/X64/lib" |
---|
| 204 | OASIS_LIB="-lpsmile.MPI1 -lmpp_io" |
---|
| 205 | else |
---|
| 206 | echo "Bad choice for --use_oasis argument : choose between 'oasis3','oasis3_mct'" |
---|
| 207 | exit |
---|
| 208 | fi |
---|
| 209 | NETCDF_LIB="-lnetcdff -lnetcdf" |
---|
[591] | 210 | XIOS_FINCDIR="$OASIS_INCDIR $XIOS_FINCDIR" |
---|
| 211 | XIOS_LIB="$OASIS_LIBDIR $OASIS_LIB $XIOS_LIB" |
---|
[1450] | 212 | fi |
---|
[362] | 213 | |
---|
[2529] | 214 | |
---|
| 215 | # Detecting if parallel compression is available : |
---|
| 216 | # - NetCDF is HDF5 based and >= 4.7.4 ? |
---|
| 217 | # - HDF5 is parallel and >= 1.10.3 ? |
---|
| 218 | USE_HDF5=0 |
---|
| 219 | if [[ ! -z $NETCDF_INCDIR ]] |
---|
| 220 | then |
---|
| 221 | NETCDF_LOOKUP=`echo ${NETCDF_INCDIR} | sed 's/\-I/\ /g'` |
---|
| 222 | netcdf_meta_file=`find $NETCDF_LOOKUP -name netcdf_meta.h 2> /dev/null` |
---|
| 223 | else |
---|
| 224 | for dir in `echo $CPATH | sed 's/\:/\ /g'` ; do |
---|
| 225 | if [ -f "$dir/netcdf_meta.h" ] |
---|
| 226 | then |
---|
| 227 | netcdf_meta_file=$dir/netcdf_meta.h |
---|
| 228 | break |
---|
| 229 | fi |
---|
| 230 | done |
---|
| 231 | fi |
---|
| 232 | if [[ ! -z $netcdf_meta_file ]] |
---|
| 233 | then |
---|
| 234 | NC_MAJOR=`grep "NC_VERSION_MAJOR" $netcdf_meta_file | awk '{ print $3 }'` |
---|
| 235 | NC_MINOR=`grep "NC_VERSION_MINOR" $netcdf_meta_file | awk '{ print $3 }'` |
---|
| 236 | NC_PATCH=`grep "NC_VERSION_PATCH" $netcdf_meta_file | awk '{ print $3 }'` |
---|
| 237 | if ( [[ "$NC_MAJOR" -ge 5 || ( "$NC_MAJOR" -eq 4 && "$NC_MINOR" -ge 8 )|| ( "$NC_MAJOR" -eq 4 && "$NC_MINOR" -eq 7 && "$NC_PATCH" -ge 4 ) ]] ) |
---|
| 238 | then |
---|
| 239 | USE_HDF5=`grep NC_HAS_HDF5 $netcdf_meta_file | awk '{ print $3 }'` |
---|
| 240 | fi |
---|
| 241 | fi |
---|
| 242 | |
---|
| 243 | if [ "$USE_HDF5" == "1" ] |
---|
| 244 | then |
---|
| 245 | # https://forum.hdfgroup.org/t/parallel-compression-support-detection/5398 |
---|
| 246 | if [[ ! -z $HDF5_LIBDIR ]] |
---|
| 247 | then |
---|
| 248 | HDF5_LOOKUP=`echo ${HDF5_LIBDIR} | sed 's/\-L/\ /g'` |
---|
| 249 | hdf5_settings_file=`find $HDF5_LOOKUP -name libhdf5.settings 2> /dev/null` |
---|
| 250 | else |
---|
| 251 | for dir in `echo $LD_LIBRARY_PATH | sed 's/\:/\ /g'` ; do |
---|
| 252 | if [ -f "$dir/libhdf5.settings" ] |
---|
| 253 | then |
---|
| 254 | hdf5_settings_file=$dir/libhdf5.settings |
---|
| 255 | break |
---|
| 256 | fi |
---|
| 257 | done |
---|
| 258 | fi |
---|
| 259 | HDF5_VERSION=`grep "HDF5 Version" $hdf5_settings_file | awk -F ':' '{ print $2 }'` |
---|
| 260 | HDF5_MAJOR_VERSION=`echo $HDF5_VERSION | awk -F '.' '{ print $2 }'` |
---|
| 261 | HDF5_MINOR_VERSION=`echo $HDF5_VERSION | awk -F '.' '{ print $3 }'` |
---|
| 262 | HDF5_PARALLEL=`grep "Parallel HDF5" $hdf5_settings_file | awk -F ':' '{ print $2 }'` |
---|
| 263 | HDF5_DEFLATE=`grep "I/O filters (external)" $hdf5_settings_file | awk -F ':' '{ print $2 }'` |
---|
| 264 | if ( [[ "$HDF5_MAJOR_VERSION" -ge 11 || ( "$HDF5_MAJOR_VERSION" -eq 10 && "$HDF5_MINOR_VERSION" -ge 3 ) ]] ) |
---|
| 265 | then |
---|
| 266 | if [[ "$HDF5_PARALLEL" =~ "yes" && "$HDF5_DEFLATE" =~ "zlib" ]] |
---|
| 267 | then |
---|
| 268 | XIOS_CPPKEY="$XIOS_CPPKEY PARALLEL_COMPRESSION" |
---|
| 269 | fi |
---|
| 270 | fi |
---|
| 271 | fi |
---|
| 272 | if [[ "$XIOS_CPPKEY" =~ "PARALLEL_COMPRESSION" ]] |
---|
| 273 | then |
---|
| 274 | echo "->Parallel compression is available" |
---|
| 275 | else |
---|
| 276 | echo "->Parallel compression is NOT available" |
---|
| 277 | fi |
---|
| 278 | # End "Detecting if parallel compression is available" |
---|
| 279 | |
---|
| 280 | |
---|
[1449] | 281 | # Setting path for boost |
---|
| 282 | if [[ "$use_extern_boost" == "true" ]] |
---|
| 283 | then |
---|
[1458] | 284 | rm -r $PWD/extern/boost |
---|
[1449] | 285 | ln -s $PWD/.void_dir $PWD/extern/boost |
---|
| 286 | else |
---|
| 287 | export BOOST_INCDIR="-I${PWD}/extern/boost" |
---|
| 288 | export BOOST_LIBDIR="" |
---|
| 289 | export BOOST_LIB="" |
---|
| 290 | fi |
---|
| 291 | |
---|
[1453] | 292 | # Setting path for blitz |
---|
| 293 | if [[ "$use_extern_blitz" == "true" ]] |
---|
| 294 | then |
---|
[1458] | 295 | rm -r $PWD/extern/blitz |
---|
[1453] | 296 | ln -s $PWD/.void_dir $PWD/extern/blitz |
---|
| 297 | else |
---|
[1510] | 298 | echo "src::blitz $PWD/extern/blitz/src" >> ${PWD}/bld_dir.cfg |
---|
[1453] | 299 | export BLITZ_INCDIR="-I${PWD}/extern/blitz" |
---|
| 300 | export BLITZ_LIBDIR="" |
---|
| 301 | export BLITZ_LIB="" |
---|
| 302 | fi |
---|
| 303 | |
---|
| 304 | |
---|
[402] | 305 | if [[ "$use_memtrack" == "true" ]] |
---|
| 306 | then |
---|
[591] | 307 | XIOS_CPPKEY="$XIOS_CPPKEY XIOS_MEMTRACK" |
---|
[1450] | 308 | |
---|
| 309 | if [[ "$memtrack" == "light" ]] |
---|
| 310 | then |
---|
| 311 | XIOS_CPPKEY="$XIOS_CPPKEY XIOS_MEMTRACK_LIGHT" |
---|
[2213] | 312 | elif [[ "$memtrack" == "full" ]] |
---|
[1450] | 313 | then |
---|
| 314 | XIOS_CPPKEY="$XIOS_CPPKEY XIOS_MEMTRACK_FULL" |
---|
| 315 | else |
---|
| 316 | echo "Bad choice for --memtrack argument : choose between 'light','full'" |
---|
| 317 | exit |
---|
| 318 | fi |
---|
[402] | 319 | fi |
---|
| 320 | |
---|
[1453] | 321 | XIOS_CINCDIR="$NETCDF_INCDIR $HDF5_INCDIR $MPI_INCDIR $BOOST_INCDIR $BLITZ_INCDIR" |
---|
| 322 | XIOS_FINCDIR="$NETCDF_INCDIR $XIOS_FINCDIR $MPI_INCDIR $BOOST_INCDIR $BLITZ_INCDIR" |
---|
[248] | 323 | |
---|
[591] | 324 | XIOS_LIB="$XIOS_LIB $NETCDF_LIBDIR $HDF5_LIBDIR $MPI_LIBDIR $NETCDF_LIB $HDF5_LIB $MPI_LIB" |
---|
[248] | 325 | |
---|
[1497] | 326 | rm -f ${install_dir}/config.fcm |
---|
| 327 | echo "%COMPIL_CFLAGS $COMPIL_CFLAGS" >> ${install_dir}/config.fcm |
---|
| 328 | echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> ${install_dir}/config.fcm |
---|
| 329 | echo "%CPP_KEY $XIOS_CPPKEY" >> ${install_dir}/config.fcm |
---|
[248] | 330 | |
---|
[1497] | 331 | echo "%CBASE_INC $XIOS_CINCDIR" >> ${install_dir}/config.fcm |
---|
| 332 | echo "%FBASE_INC $XIOS_FINCDIR" >> ${install_dir}/config.fcm |
---|
| 333 | echo "%ARCH_LD $XIOS_LIB" >> ${install_dir}/config.fcm |
---|
[248] | 334 | |
---|
[381] | 335 | echo "=> Using "$compil_mode" mode for compiling under architecture \""$arch"\" !" |
---|
[248] | 336 | |
---|
| 337 | # Création de la documentation doxygen. |
---|
| 338 | if [[ !(-z $doc) ]] |
---|
| 339 | then |
---|
[381] | 340 | echo -e "- Create Doxygen documentation (disabled)..." |
---|
[248] | 341 | #doxygen -s |
---|
| 342 | fi |
---|
| 343 | |
---|
| 344 | make_dir=$PWD |
---|
| 345 | |
---|
[2166] | 346 | if [[ "$fcm_version" == "new" ]] |
---|
| 347 | then |
---|
| 348 | export PATH=$PWD/tools/FCM_NEW/bin:$PATH |
---|
| 349 | elif [[ "$fcm_version" == "old" ]] |
---|
| 350 | then |
---|
| 351 | export PATH=$PWD/tools/FCM_OLD/bin:$PATH |
---|
| 352 | else |
---|
| 353 | echo "=> Bad option for --fcm flag : "$fcm_version" , only 'new' or 'old' permitted" |
---|
| 354 | fi |
---|
| 355 | |
---|
[287] | 356 | if [[ "$compil_full" == "true" ]] |
---|
| 357 | then |
---|
[395] | 358 | fcm build --clean --ignore-lock |
---|
| 359 | fcm build -f --ignore-lock -j $job |
---|
[287] | 360 | else |
---|
[395] | 361 | fcm build --ignore-lock -j $job |
---|
[287] | 362 | fi |
---|
[248] | 363 | |
---|
[601] | 364 | build_exit_status=$? |
---|
[287] | 365 | |
---|
[601] | 366 | if [[ $build_exit_status == 0 ]] |
---|
[287] | 367 | then |
---|
[366] | 368 | set nothing |
---|
[591] | 369 | # cd $WORKDIR/XIOS_NEMO_COUPLE/modeles/NEMO/WORK |
---|
| 370 | # cd $WORKDIR/XIOS_NEMO/modeles/NEMO/WORK |
---|
[301] | 371 | # make |
---|
[287] | 372 | fi |
---|
[601] | 373 | |
---|
| 374 | exit $build_exit_status |
---|