Changeset 1540
- Timestamp:
- Apr 13, 2016, 9:57:46 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 2 deleted
- 12 edited
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/DOC/chantiers/commit_importants.log
r1530 r1540 1672 1672 Only partially done for Titan, because of many hard-coded commons; a 1673 1673 necessary first step will be to clean these up (using modules). 1674 1675 ********************** 1676 **** commit_v1540 **** 1677 ********************** 1678 Ehouarn: Further adaptations to keep up with changes in LMDZ5 concerning 1679 physics/dynamics separation: 1680 - changed directory "dynlonlat_phylonlat" to "dynphy_lonlat" and adapted 1681 makelmdz and makelmdz_fcm scripts accordingly. 1682 - added option "-libphy" to makelmdz_fcm to just build a physics library, 1683 without any main program (not operational yet; further cleanup in the 1684 physics required). 1685 - moved "iniprint.h" from dyn3d_common to misc (NB: it is used in both physics 1686 and dynamics; this should be cleaned up further...) -
trunk/LMDZ.COMMON/bld.cfg
r1521 r1540 42 42 43 43 44 bld::outfile_ext::exe %SUFF_NAME.e 45 bld::target liblmdz.a 46 bld::target %EXEC%SUFF_NAME.e 44 bld::outfile_ext::exe %SUFF_NAME 45 bld::target liblmdz.a %EXEC%SUFF_NAME 47 46 bld::exe_dep 48 47 49 48 50 49 dir::root %CONFIG_PATH 51 dir::lib %BASE_CONFIG_PATH50 #dir::lib %BASE_CONFIG_PATH 52 51 dir::bin %ROOT_PATH/bin 53 52 -
trunk/LMDZ.COMMON/makelmdz
r1530 r1540 572 572 src_dirs="$src_dirs $filtre dyn3d_common dyn3d${FLAG_PARA}" 573 573 if [[ $physique != "nophys" ]] ; then 574 src_dirs="$src_dirs dyn lonlat_phylonlat dynlonlat_phylonlat/phy${phys_root}"575 libdyn_phy="-ldyn lonlat_phylonlat"576 LIBDYN_PHYS='$(LIBO)/libdyn lonlat_phylonlat.a'577 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn lonlat_phylonlat'578 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn lonlat_phylonlat/'"${phys_root}"574 src_dirs="$src_dirs dynphy_lonlat dynphy_lonlat/phy${phys_root}" 575 libdyn_phy="-ldynphy_lonlat" 576 LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a' 577 INCLUDE="$INCLUDE "'-I$(LIBF)/dynphy_lonlat' 578 INCLUDE="$INCLUDE "'-I$(LIBF)/dynphy_lonlat/'"${phys_root}" 579 579 fi 580 580 cd $LIBFGCM/grid … … 743 743 dirmain=phy${physique} 744 744 else 745 if [[ -r $LMDGCM/libf/dyn lonlat_phylonlat/phy$phys_root/${code}.F ]]745 if [[ -r $LMDGCM/libf/dynphy_lonlat/phy$phys_root/${code}.F ]] 746 746 then 747 747 source_code=${code}.F 748 dirmain="dyn lonlat_phylonlat/phy${phys_root}"748 dirmain="dynphy_lonlat/phy${phys_root}" 749 749 else 750 750 if [[ -r $LMDGCM/libf/phy$physique/dyn1d/${code}.F ]] -
trunk/LMDZ.COMMON/makelmdz_fcm
r1530 r1540 36 36 job=1 37 37 full='' 38 libphy=false 38 39 39 40 LMDGCM=`/bin/pwd` … … 192 193 full="-full" ; shift ;; 193 194 195 "-libphy") 196 libphy="true" ; shift ;; 197 194 198 "-arch") 195 199 arch=$2 ; shift ; shift ;; … … 264 268 PHY_COMMON_PATH="${LIBFGCM}/phy_common" 265 269 # set the dyn/phys interface path 266 DYN_PHYS_PATH="${LIBFGCM}/dyn lonlat_phylonlat"267 DYN_PHYS_SUB_PATH="${LIBFGCM}/dyn lonlat_phylonlat/phy${phys_root}"270 DYN_PHYS_PATH="${LIBFGCM}/dynphy_lonlat" 271 DYN_PHYS_SUB_PATH="${LIBFGCM}/dynphy_lonlat/phy${phys_root}" 268 272 fi 269 273 … … 599 603 then 600 604 SUFF_NAME=${SUFF_NAME}_inca 605 fi 606 607 if [[ $libphy == "true" ]] 608 then 609 # special case where we compile only the physics 610 DYN=$LMDGCM/.void_dir 611 DYN_COMMON_PATH=$LMDGCM/.void_dir 612 FILTRE_PATH=$LMDGCM/.void_dir 613 DYN_PHYS_PATH=$LMDGCM/.void_dir 614 DYN_PHYS_SUB_PATH=$LMDGCM/.void_dir 615 #and there is no main program to generate 616 code="" 617 SUFF_NAME="" 618 else 619 SUFF_NAME=${SUFF_NAME}.e 601 620 fi 602 621 … … 652 671 rm -rf config 653 672 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config config 654 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/ tmptmp_src673 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/ppsrc tmp_src 655 674 656 675 -
trunk/LMDZ.GENERIC/README
r1538 r1540 1185 1185 mlayer(k)=lay1_soil*alpha_soil**(k-1/2), for k=0,nsoil-1 1186 1186 1187 1188 1187 == 13/04/2016 == EM 1188 - Some code reorganization: "dynlonlat_phylonlat" directory becomes 1189 "dynphy_lonlat". 1190 - "iniprint.h" moved from "dyn3d" to "misc". 1191 1192 -
trunk/LMDZ.GENERIC/makegcm_gfortran
r1521 r1540 8 8 set physique=std 9 9 set phys="PHYS=$physique" 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dyn lonlat_phylonlat'10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynphy_lonlat' 11 11 set ntrac = 1 12 12 set filtre=filtrez … … 498 498 if ( "$dyntype" == "olddyn" ) then 499 499 set include="$include "'-I$(LIBF)/olddyn3d ' 500 set src_dirs="$src_dirs olddyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"500 set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 501 501 else 502 502 set include="$include "'-I$(LIBF)/dyn3d ' 503 set src_dirs="$src_dirs dyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"503 set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 504 504 endif 505 set libdyn_phy="-ldyn lonlat_phylonlat"506 set LIBDYN_PHYS='$(LIBO)/libdyn lonlat_phylonlat.a'505 set libdyn_phy="-ldynphy_lonlat" 506 set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a' 507 507 set dimh=`echo $dim | awk ' { print $1 "." $2 } '` 508 508 endif … … 778 778 set source_code=${code}.F90 779 779 endif 780 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F ) then781 set dirmain=dyn lonlat_phylonlat/phy${physique}780 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then 781 set dirmain=dynphy_lonlat/phy${physique} 782 782 set source_code=${code}.F 783 783 endif 784 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F90 ) then785 set dirmain=dyn lonlat_phylonlat/phy${physique}784 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then 785 set dirmain=dynphy_lonlat/phy${physique} 786 786 set source_code=${code}.F90 787 787 endif -
trunk/LMDZ.GENERIC/makegcm_ifort
r1521 r1540 8 8 set physique=std 9 9 set phys="PHYS=$physique" 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dyn lonlat_phylonlat'10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynphy_lonlat' 11 11 set ntrac = 1 12 12 set filtre=filtrez … … 501 501 if ( "$dyntype" == "olddyn" ) then 502 502 set include="$include "'-I$(LIBF)/olddyn3d ' 503 set src_dirs="$src_dirs olddyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"503 set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 504 504 else 505 505 set include="$include "'-I$(LIBF)/dyn3d ' 506 set src_dirs="$src_dirs dyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"506 set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 507 507 endif 508 set libdyn_phy="-ldyn lonlat_phylonlat"509 set LIBDYN_PHYS='$(LIBO)/libdyn lonlat_phylonlat.a'508 set libdyn_phy="-ldynphy_lonlat" 509 set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a' 510 510 set dimh=`echo $dim | awk ' { print $1 "." $2 } '` 511 511 endif … … 775 775 set source_code=${code}.F90 776 776 endif 777 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F ) then778 set dirmain=dyn lonlat_phylonlat/phy${physique}777 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then 778 set dirmain=dynphy_lonlat/phy${physique} 779 779 set source_code=${code}.F 780 780 endif 781 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F90 ) then782 set dirmain=dyn lonlat_phylonlat/phy${physique}781 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then 782 set dirmain=dynphy_lonlat/phy${physique} 783 783 set source_code=${code}.F90 784 784 endif -
trunk/LMDZ.GENERIC/makegcm_pgf90
r1521 r1540 8 8 set physique=std 9 9 set phys="PHYS=$physique" 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dyn lonlat_phylonlat'10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynphy_lonlat' 11 11 set ntrac = 1 12 12 set filtre=filtrez … … 497 497 if ( "$dyntype" == "olddyn" ) then 498 498 set include="$include "'-I$(LIBF)/olddyn3d ' 499 set src_dirs="$src_dirs olddyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"499 set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 500 500 else 501 501 set include="$include "'-I$(LIBF)/dyn3d ' 502 set src_dirs="$src_dirs dyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"502 set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 503 503 endif 504 set libdyn_phy="-ldyn lonlat_phylonlat"505 set LIBDYN_PHYS='$(LIBO)/libdyn lonlat_phylonlat.a'504 set libdyn_phy="-ldynphy_lonlat" 505 set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a' 506 506 set dimh=`echo $dim | awk ' { print $1 "." $2 } '` 507 507 endif … … 773 773 set source_code=${code}.F90 774 774 endif 775 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F ) then776 set dirmain=dyn lonlat_phylonlat/phy${physique}775 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then 776 set dirmain=dynphy_lonlat/phy${physique} 777 777 set source_code=${code}.F 778 778 endif 779 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F90 ) then780 set dirmain=dyn lonlat_phylonlat/phy${physique}779 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then 780 set dirmain=dynphy_lonlat/phy${physique} 781 781 set source_code=${code}.F90 782 782 endif -
trunk/LMDZ.MARS/README
r1535 r1540 2251 2251 == 08/04/2016 == EM 2252 2252 - Fix for the 1D model initializations. 2253 2254 == 13/04/2016 == EM 2255 - Some code reorganization: "dynlonlat_phylonlat" directory becomes 2256 "dynphy_lonlat". 2257 - "iniprint.h" moved from "dyn3d" to "misc". -
trunk/LMDZ.MARS/makegcm_gfortran
r1521 r1540 8 8 set physique=mars 9 9 set phys="PHYS=$physique" 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dyn lonlat_phylonlat'10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynphy_lonlat' 11 11 set cpp_def='' 12 12 set ntrac = 1 … … 503 503 if ( "$dyntype" == "olddyn" ) then 504 504 set include="$include "'-I$(LIBF)/olddyn3d ' 505 set src_dirs="$src_dirs olddyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"505 set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 506 506 else 507 507 set include="$include "'-I$(LIBF)/dyn3d ' 508 set src_dirs="$src_dirs dyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"508 set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 509 509 endif 510 set libdyn_phy="-ldyn lonlat_phylonlat"511 set LIBDYN_PHYS='$(LIBO)/libdyn lonlat_phylonlat.a'510 set libdyn_phy="-ldynphy_lonlat" 511 set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a' 512 512 set dimh=`echo $dim | awk ' { print $1 "." $2 } '` 513 513 endif … … 763 763 cd $localdir 764 764 765 ## locate main program (could be in dyn3d or dyn lonlat_phylonlat/phy$physique765 ## locate main program (could be in dyn3d or dynphy_lonlat/phy$physique 766 766 ## or phy$physique/dyn1d and could be .F or .F90) 767 767 set source_code=${code}.F … … 778 778 set source_code=${code}.F90 779 779 endif 780 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F ) then781 set dirmain=dyn lonlat_phylonlat/phy${physique}780 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then 781 set dirmain=dynphy_lonlat/phy${physique} 782 782 set source_code=${code}.F 783 783 endif 784 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F90 ) then785 set dirmain=dyn lonlat_phylonlat/phy${physique}784 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then 785 set dirmain=dynphy_lonlat/phy${physique} 786 786 set source_code=${code}.F90 787 787 endif -
trunk/LMDZ.MARS/makegcm_ifort
r1521 r1540 8 8 set physique=mars 9 9 set phys="PHYS=$physique" 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dyn lonlat_phylonlat'10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynphy_lonlat' 11 11 set cpp_def='' 12 12 set ntrac = 1 … … 534 534 if ( "$dyntype" == "olddyn" ) then 535 535 set include="$include "'-I$(LIBF)/olddyn3d ' 536 set src_dirs="$src_dirs olddyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"536 set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 537 537 else 538 538 set include="$include "'-I$(LIBF)/dyn3d ' 539 set src_dirs="$src_dirs dyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"539 set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 540 540 endif 541 set libdyn_phy="-ldyn lonlat_phylonlat"542 set LIBDYN_PHYS='$(LIBO)/libdyn lonlat_phylonlat.a'541 set libdyn_phy="-ldynphy_lonlat" 542 set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a' 543 543 set dimh=`echo $dim | awk ' { print $1 "." $2 } '` 544 544 endif … … 793 793 cd $localdir 794 794 795 ## locate main program (could be in dyn3d or dyn lonlat_phylonlat/phy$physique795 ## locate main program (could be in dyn3d or dynphy_lonlat/phy$physique 796 796 ## or phy$physique/dyn1d and could be .F or .F90) 797 797 set source_code=${code}.F … … 808 808 set source_code=${code}.F90 809 809 endif 810 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F ) then811 set dirmain=dyn lonlat_phylonlat/phy${physique}810 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then 811 set dirmain=dynphy_lonlat/phy${physique} 812 812 set source_code=${code}.F 813 813 endif 814 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F90 ) then815 set dirmain=dyn lonlat_phylonlat/phy${physique}814 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then 815 set dirmain=dynphy_lonlat/phy${physique} 816 816 set source_code=${code}.F90 817 817 endif -
trunk/LMDZ.MARS/makegcm_pgf
r1521 r1540 8 8 set physique=mars 9 9 set phys="PHYS=$physique" 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dyn lonlat_phylonlat'10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynphy_lonlat' 11 11 set cpp_def='' 12 12 set ntrac = 1 … … 507 507 if ( "$dyntype" == "olddyn" ) then 508 508 set include="$include "'-I$(LIBF)/olddyn3d ' 509 set src_dirs="$src_dirs olddyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"509 set src_dirs="$src_dirs olddyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 510 510 else 511 511 set include="$include "'-I$(LIBF)/dyn3d ' 512 set src_dirs="$src_dirs dyn3d dyn lonlat_phylonlat dynlonlat_phylonlat/phy$physique"512 set src_dirs="$src_dirs dyn3d dynphy_lonlat dynphy_lonlat/phy$physique" 513 513 endif 514 set libdyn_phy="-ldyn lonlat_phylonlat"515 set LIBDYN_PHYS='$(LIBO)/libdyn lonlat_phylonlat.a'514 set libdyn_phy="-ldynphy_lonlat" 515 set LIBDYN_PHYS='$(LIBO)/libdynphy_lonlat.a' 516 516 set dimh=`echo $dim | awk ' { print $1 "." $2 } '` 517 517 endif … … 764 764 cd $localdir 765 765 766 ## locate main program (could be in dyn3d or dyn lonlat_phylonlat/phy$physique766 ## locate main program (could be in dyn3d or dynphy_lonlat/phy$physique 767 767 ## or phy$physique/dyn1d and could be .F or .F90) 768 768 set source_code=${code}.F … … 779 779 set source_code=${code}.F90 780 780 endif 781 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F ) then782 set dirmain=dyn lonlat_phylonlat/phy${physique}781 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F ) then 782 set dirmain=dynphy_lonlat/phy${physique} 783 783 set source_code=${code}.F 784 784 endif 785 if ( -f $LMDGCM/libf/dyn lonlat_phylonlat/phy${physique}/${code}.F90 ) then786 set dirmain=dyn lonlat_phylonlat/phy${physique}785 if ( -f $LMDGCM/libf/dynphy_lonlat/phy${physique}/${code}.F90 ) then 786 set dirmain=dynphy_lonlat/phy${physique} 787 787 set source_code=${code}.F90 788 788 endif
Note: See TracChangeset
for help on using the changeset viewer.