Changeset 2250 for LMDZ5/trunk/makelmdz
- Timestamp:
- Mar 26, 2015, 4:28:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/makelmdz
r2242 r2250 284 284 for inc in $archfileline ; do INCLUDE="$INCLUDE `echo $inc | grep '\-I'`" ; done 285 285 286 phys_root=$physique 287 if [[ "${physique:0:3}" == "lmd" ]] ; then phys_root=lmd ; fi 288 if [[ "${physique:0:4}" == "mars" ]] ; then phys_root=mars ; fi 289 if [[ "${physique:0:3}" == "std" ]] ; then phys_root=std ; fi 290 if [[ "${physique:0:5}" == "venus" ]] ; then phys_root=venus ; fi 291 if [[ "${physique:0:5}" == "titan" ]] ; then phys_root=titan ; fi 292 if [[ "${physique:0:3}" == "mar" ]] ; then phys_root=mar ; fi 293 if [[ "${physique:0:3}" == "dev" ]] ; then phys_root=dev ; fi 294 286 295 if [[ "$physique" != "nophys" ]] 287 296 then … … 291 300 lib_phy='-lphy'"$physique" 292 301 CPP_KEY="$CPP_KEY CPP_PHYS" 293 if [[ "${physique:0:3}"== "lmd" ]]294 then295 #For lmd physics, default planet type is Earth296 CPP_KEY="$CPP_KEY CPP_EARTH"302 if [[ $phys_root == "lmd" ]] 303 then 304 #For lmd physics, default planet type is Earth 305 CPP_KEY="$CPP_KEY CPP_EARTH" 297 306 fi 298 307 fi … … 501 510 src_dirs="$src_dirs $filtre dyn3d_common dyn3d${FLAG_PARA}" 502 511 if [[ $physique != "nophys" ]] ; then 503 src_dirs="$src_dirs dynlonlat_phylonlat dynlonlat_phylonlat/phy${phys ique}"512 src_dirs="$src_dirs dynlonlat_phylonlat dynlonlat_phylonlat/phy${phys_root}" 504 513 libdyn_phy="-ldynlonlat_phylonlat" 505 514 LIBDYN_PHYS='$(LIBO)/libdynlonlat_phylonlat.a' 506 515 INCLUDE="$INCLUDE "'-I$(LIBF)/dynlonlat_phylonlat' 507 INCLUDE="$INCLUDE "'-I$(LIBF)/dynlonlat_phylonlat _'"${physique}"516 INCLUDE="$INCLUDE "'-I$(LIBF)/dynlonlat_phylonlat/'"phy${phys_root}" 508 517 fi 509 518 cd $LIBFGCM/grid … … 561 570 cd $LMDGCM 562 571 563 find libf -name '*.[Fh]' -print | sort > tmp77564 #find libf -name '*.[Fh]' -exec egrep -i " *use *ioipsl" {} \; -print > tmp90565 find libf -name '*.F90' -print | sort > tmp90566 572 567 573 if [[ -r .makelmdz ]] … … 579 585 fi 580 586 581 if [[ $configuration_change == "true" || ! ( -r makefile ) || ! ( -r liste_des_sources_f90 ) || ! ( -r liste_des_sources_f77 ) || ` diff tmp77 liste_des_sources_f77 | wc -w ` -ne 0 || ` diff tmp90 liste_des_sources_f90 | wc -w ` -ne 0 ]] 587 mkdir -p make_dir 588 suf_make=`echo $src_dirs | sed -e 's/\//_/g' -e 's/ /_/g'` 589 echo suf_make $suf_make 590 591 \rm tmp77 tmp90 592 for dir in $src_dirs ; do 593 find libf/$dir -name '*.[Fh]' -print | sort >> tmp77 594 find libf/$dir -name '*.F90' -print | sort >> tmp90 595 done 596 597 liste77=make_dir/liste_des_sources_f77_$suf_make 598 liste90=make_dir/liste_des_sources_f90_$suf_make 599 makefile=make_dir/makefile_$suf_make 600 601 if [[ $configuration_change == "true" || ! ( -r $makefile ) || ! ( -r $liste_90 ) || ! ( -r $liste_77 ) || ` diff tmp77 $liste_77 | wc -w ` -ne 0 || ` diff tmp90 $liste_90 | wc -w ` -ne 0 ]] 582 602 then 583 603 echo "les fichiers suivants ont ete crees ou detruits" 584 604 echo "ou les fichiers suivants sont passes ou ne sont plus en Fortran 90" 585 diff liste_des_sources_f77 tmp77586 diff liste_des_sources_f90 tmp90587 \cp -f tmp77 liste_des_sources_f77588 \cp -f tmp90 liste_des_sources_f90605 diff $liste77 tmp77 606 diff $liste90 tmp90 607 \cp -f tmp77 $liste77 608 \cp -f tmp90 $liste90 589 609 echo "Recreating the makefile" 590 610 echo "src_dirs: $src_dirs" 591 611 ./create_make_gcm $src_dirs > tmp 592 \mv -f tmp makefile612 \mv -f tmp $makefile 593 613 echo "New makefile created" 594 614 fi 615 616 ln -sf $makefile makefile 595 617 596 618 #Create a .makelmdz file containing main compilation option for later comparisons … … 609 631 dirmain=phy$physique 610 632 source_code=${code}.F90 611 elif [[ -r $LMDGCM/libf/dynlonlat_phylonlat/phy$phys ique/${code}.F90 ]] ; then612 dirmain="dynlonlat_phylonlat/phy${phys ique}"633 elif [[ -r $LMDGCM/libf/dynlonlat_phylonlat/phy$phys_root/${code}.F90 ]] ; then 634 dirmain="dynlonlat_phylonlat/phy${phys_root}" 613 635 source_code=${code}.F90 614 636 elif [[ -r $LMDGCM/libf/phy$physique/dyn1d/${code}.F90 ]] ; then
Note: See TracChangeset
for help on using the changeset viewer.