Changeset 738 for codes/icosagcm/devel/make_icosa
- Timestamp:
- 09/21/18 00:59:11 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/make_icosa
r730 r738 96 96 mkdir .void_dir 97 97 98 function link_if_exists() 99 { 100 suffix=$1 101 if test -f $arch_path/arch-${arch}.${suffix} 102 then 103 ln -s $arch_path/arch-${arch}.${suffix} arch.${suffix} 104 elif test -f $arch_default_path/arch-${arch}.${suffix} 105 then 106 ln -s $arch_default_path/arch-${arch}.${suffix} arch.${suffix} 107 fi 108 109 } 110 98 111 if [[ "$arch_defined" == "TRUE" ]] 99 112 then … … 101 114 rm -f arch.fcm 102 115 rm -f arch.env 103 104 if test -f $arch_path/arch-${arch}.path 105 then 106 ln -s $arch_path/arch-${arch}.path arch.path 107 elif test -f $arch_default_path/arch-${arch}.path 108 then 109 ln -s $arch_default_path/arch-${arch}.path arch.path 110 fi 111 112 if test -f $arch_path/arch-${arch}.fcm 113 then 114 ln -s $arch_path/arch-${arch}.fcm arch.fcm 115 elif test -f $arch_default_path/arch-${arch}.fcm 116 then 117 ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 118 fi 119 120 if test -f $arch_path/arch-${arch}.env 121 then 122 ln -s $arch_path/arch-${arch}.env arch.env 123 elif test -f $arch_default_path/arch-${arch}.env 124 then 125 ln -s $arch_default_path/arch-${arch}.env arch.env 126 else 127 ln -s .void_file arch.env 128 fi 116 117 for suffix in env path fcm opt ; do link_if_exists $suffix ; done 118 129 119 source arch.env 130 120 source arch.path 121 131 122 else 132 123 echo "Veuillez definir une architecture cible" … … 135 126 136 127 LD_FLAGS="%BASE_LD" 137 138 if [[ "$compil_mode" == "prod" ]] 139 then 140 COMPIL_FFLAGS="%PROD_FFLAGS" 141 elif [[ "$compil_mode" == "dev" ]] 142 then 143 COMPIL_FFLAGS="%DEV_FFLAGS" 144 elif [[ "$compil_mode" == "debug" ]] 145 then 146 COMPIL_FFLAGS="%DEBUG_FFLAGS" 147 fi 128 COMPIL_FFLAGS="" 148 129 149 130 if [[ "$parallel" == "mpi" ]] … … 210 191 fi 211 192 193 if [[ "$compil_mode" == "prod" ]] 194 then 195 HOPT_FFLAGS="%FAST_FFLAGS $COMPIL_FFLAGS" 196 COMPIL_FFLAGS="%PROD_FFLAGS $COMPIL_FFLAGS" 197 elif [[ "$compil_mode" == "dev" ]] 198 then 199 COMPIL_FFLAGS="%DEV_FFLAGS $COMPIL_FFLAGS" 200 HOPT_FFLAGS=$COMPIL_FFLAGS 201 elif [[ "$compil_mode" == "debug" ]] 202 then 203 COMPIL_FFLAGS="%DEBUG_FFLAGS $COMPIL_FFLAGS" 204 HOPT_FFLAGS=$COMPIL_FFLAGS 205 fi 206 212 207 rm -f config.fcm 213 208 214 209 echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> config.fcm 210 echo "%HOPT_FFLAGS $HOPT_FFLAGS" >> config.fcm 215 211 echo "%LD_FLAGS $LD_FLAGS" >> config.fcm 216 212 echo "%CPP_KEY $CPP_KEY" >> config.fcm
Note: See TracChangeset
for help on using the changeset viewer.