Changeset 2160 for LMDZ5/branches/testing/makelmdz
- Timestamp:
- Nov 28, 2014, 4:36:29 PM (10 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2072,2075-2115,2117-2126,2128-2158
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/makelmdz
r2056 r2160 27 27 sisvat=false 28 28 rrtm=false 29 full="" 29 30 30 31 # guess a default 'arch' … … 107 108 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 108 109 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) 109 [-io IO] : Input/Output library (default: ioipsl)110 [-io ioipsl/mix/xios] : Input/Output library (default: ioipsl) 110 111 [-include INCLUDES] : extra include path to add 111 112 [-cpp CPP_KEY] : additional preprocessing definitions … … 113 114 [-mem] : reduced memory dynamics (if in parallel mode) 114 115 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 116 [-full] : Full (re)compilation (from scratch) 115 117 [-link LINKS] : additional links with other libraries 116 118 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) … … 174 176 filtre=$2 ; shift ; shift ;; 175 177 178 "-full") 179 full="full" ; shift ;; 180 176 181 "-link") 177 182 LIB="$LIB $2" ; shift ; shift ;; … … 192 197 193 198 ############################################################### 194 # lecture des chemins propres àl'architecture de la machine #199 # lecture des chemins propres \`a l'architecture de la machine # 195 200 ############################################################### 196 201 rm -f .void_file … … 384 389 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}" 385 390 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl" 386 elif [[ $io == xios]]391 elif [[ $io == mix ]] 387 392 then 388 393 # For now, xios implies also using ioipsl 389 394 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 395 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}" 396 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios" 397 elif [[ $io == xios ]] 398 then 399 # For now, xios implies also using ioipsl 400 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 390 401 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}" 391 402 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios" … … 428 439 echo dim $dim 429 440 echo dimc $dimc 430 431 441 432 442 ######################################################################## … … 458 468 fi 459 469 460 461 470 cd $LIBFGCM/grid/dimension 462 471 ./makdim $dim 463 472 cat $LIBFGCM/grid/dimensions.h 464 473 cd $LMDGCM 465 466 474 467 475 ######################################################################## … … 486 494 fi 487 495 488 489 496 cd $LMDGCM 490 497 498 ######################################################################## 499 # library directory name: 500 ######################################################################## 501 502 nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'` 503 echo "Path to library: "$nomlib 504 505 ######################################################################## 506 # Cleanup for a full recompilation, if requested 507 ######################################################################## 508 509 if [[ $full == "full" ]] 510 then 511 # remove makefile and librairies 512 echo "-full option: recompiling from scratch" 513 \rm -f makefile 514 \rm -rf "${LIBOGCM}/${nomlib}" 515 fi 491 516 492 517 ######################################################################## … … 532 557 source_code=${code}.F90 533 558 fi 534 535 # library directory name:536 nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`537 echo $nomlib538 559 539 560 if [[ ! -d "${LIBOGCM}/${nomlib}" ]]
Note: See TracChangeset
for help on using the changeset viewer.