Changeset 3471
- Timestamp:
- Oct 24, 2024, 1:10:45 PM (4 weeks ago)
- Location:
- trunk/LMDZ.COMMON
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/bld.cfg
r2779 r3471 16 16 inc config.fcm 17 17 18 %CONFIG_NAME %{ARCH}% SUFF_NAME18 %CONFIG_NAME %{ARCH}%{SUFF_NAME}%{SUFF_DEBUG} 19 19 %BASE_CONFIG_PATH %LIBO/%CONFIG_NAME 20 20 %CONFIG_PATH %BASE_CONFIG_PATH/.config … … 53 53 bld::outfile_ext::exe %SUFF_NAME 54 54 bld::target liblmdz.a %EXEC%SUFF_NAME 55 bld::exe_dep 55 bld::exe_dep 56 56 57 57 … … 64 64 bld::tool::fpp %FPP 65 65 bld::tool::cpp %CPP 66 bld::tool::fc %COMPILER 66 bld::tool::fc %COMPILER 67 67 bld::tool::cc %C_COMPILER 68 68 bld::tool::ld %LINK … … 71 71 bld::tool::fflags %FFLAGS %INCDIR 72 72 bld::tool::cflags %C_OPTIM %INCDIR 73 bld::tool::ldflags %LD_FLAGS %LIB 73 bld::tool::ldflags %LD_FLAGS %LIB 74 74 75 75 bld::tool::cppflags %CPP_FLAGS %INCDIR -
trunk/LMDZ.COMMON/makelmdz_fcm
r3427 r3471 65 65 ######################################################################## 66 66 67 CPP_KEY="" 67 CPP_KEY="" 68 68 INCLUDE_DIR="" 69 69 LIB="" … … 117 117 [-ext_src path] : path to an additional set of routines to compile with the model 118 118 [-arch_path path] : path to architecture files (default: $arch_default_path) 119 -arch arch : target architecture 119 -arch arch : target architecture 120 120 exec : executable to build 121 121 fin … … 124 124 "-d") 125 125 dim=$2 ; shift ; shift ;; 126 126 127 127 "-p") 128 128 physique="$2" ; shift ; shift ;; … … 172 172 "-parallel") 173 173 parallel="$2" ; shift ; shift ;; 174 174 175 175 "-include") 176 176 INCLUDE_DIR="$INCLUDE_DIR -I$2" ; shift ; shift ;; … … 223 223 224 224 ############################################################### 225 # path to fcm 225 # path to fcm 226 226 ############################################################### 227 227 # handle case when provided path to fcm was given as a relative … … 258 258 ln -s $arch_default_path/arch-${arch}.path arch.path 259 259 fi 260 260 261 261 if test -f $arch_path/arch-${arch}.env 262 262 then … … 397 397 echo "Option -v $veget does not exist" 398 398 echo "Use ./makelmdz_fcm -h for more information" 399 exit 399 exit 400 400 fi 401 401 … … 517 517 518 518 dim_full=$dim 519 dim=`echo $dim | sed -e 's/[^0-9]/ /g'` 519 dim=`echo $dim | sed -e 's/[^0-9]/ /g'` 520 520 set $dim 521 521 dimc=$# … … 653 653 # \rm -f $libf/phy$physique/raddim.h 654 654 # cp -p $libf/phy$physique/raddim.$dimh.h $libf/phy$physique/raddim.h 655 # echo $libf/phy$physique/raddim.$dimh.h 655 # echo $libf/phy$physique/raddim.$dimh.h 656 656 # cat $libf/phy$physique/raddim.h 657 657 # else … … 697 697 if (( $dimension == 1 )) 698 698 then 699 # dynamics-related routines in"dyn1d" subdirectory of phy${physique} 699 # dynamics-related routines in"dyn1d" subdirectory of phy${physique} 700 700 DYN=phy${physique}/dyn1d 701 701 else … … 710 710 if (( $dimension == 1 )) 711 711 then 712 # dynamics-related routines in"dyn1d" subdirectory of phy${physique} 712 # dynamics-related routines in"dyn1d" subdirectory of phy${physique} 713 713 DYN=phy${physique}/dyn1d 714 714 else … … 730 730 then 731 731 SUFF_NAME=${SUFF_NAME}_inca 732 fi 733 SUFF_DEBUG= 734 if [[ "$compil_mod" == "debug" ]] 735 then 736 SUFF_DEBUG=_debug 732 737 fi 733 738 … … 753 758 754 759 echo "%ARCH $arch" >> $config_fcm 755 echo "%INCDIR $INCLUDE_DIR" >> $config_fcm 760 echo "%INCDIR $INCLUDE_DIR" >> $config_fcm 756 761 echo "%LIB $LIB" >> $config_fcm 757 762 echo "%ROOT_PATH $PWD" >> $config_fcm … … 778 783 echo "%EXEC $code" >> $config_fcm 779 784 echo "%SUFF_NAME $SUFF_NAME" >> $config_fcm 785 echo "%SUFF_DEBUG $SUFF_DEBUG" >> $config_fcm 780 786 echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> $config_fcm 781 787 echo "%PARA_FFLAGS $PARA_FFLAGS" >> $config_fcm
Note: See TracChangeset
for help on using the changeset viewer.