- Timestamp:
- 2012-12-06T17:05:00+01:00 (12 years ago)
- Location:
- trunk/NEMOGCM
- Files:
-
- 2 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/CONFIG/cfg.txt
r3549 r3722 1 ORCA2_TAM OPA_SRC OPATAM_SRC 1 2 GYRE OPA_SRC 2 3 GYRE_LOBSTER OPA_SRC TOP_SRC -
trunk/NEMOGCM/CONFIG/makenemo
r3294 r3722 2 2 #set -x 3 3 set -o posix 4 #set -u 4 #set -u 5 5 #set -e 6 6 #+ … … 29 29 # 30 30 # - to choose MYCONFIG 31 # - to choose compiler options 31 # - to choose compiler options 32 32 # - to create the CONFIG/MYCONFIG/WORK directory 33 33 # - to compile this configuration … … 38 38 # 39 39 # - NEW_CONF : configuration to be created 40 # - REF_CONF : reference configuration to build the new one 41 # - CMP_NAM : compiler name 42 # - NBR_PRC : number of processes used to compile 40 # - REF_CONF : reference configuration to build the new one 41 # - CMP_NAM : compiler name 42 # - NBR_PRC : number of processes used to compile 43 43 # - NEM_SUBDIR : NEMO subdirectory used (specified) 44 44 # 45 45 # Locally defined : 46 46 # 47 # - TAB : NEMO subdirectory used (read) 47 # - TAB : NEMO subdirectory used (read) 48 48 # - MAIN_DIR : self explaining 49 # - CONFIG_DIR : " " " 50 # - MODELES_DIR : " " " 51 # - TOOLS_DIR : " " " 49 # - CONFIG_DIR : " " " 50 # - MODELES_DIR : " " " 51 # - TOOLS_DIR : " " " 52 52 # - NEMO_DIR : " " " 53 53 # … … 134 134 echo "makenemo -n MY_CONFIG -d \"OPA_SRC LIM_SRC_2\""; 135 135 echo ""; 136 echo "Available configurations :"; cat ${CONFIG_DIR}/cfg.txt; 136 echo "Available configurations :"; cat ${CONFIG_DIR}/cfg.txt; 137 137 echo ""; 138 138 echo "Example to remove bad configuration "; … … 190 190 ;; 191 191 *) 192 echo " \"$1\" BAD OPTION" 192 echo " \"$1\" BAD OPTION" 193 193 exit 194 194 ;; 195 195 196 196 esac 197 197 shift … … 216 216 #- Check if the tool or the compiler exist or list it 217 217 if [ "${NEW_CONF}" == help ] ; then 218 echo "Available configurations :" 218 echo "Available configurations :" 219 219 cat ${CONFIG_DIR}/cfg.txt 220 220 exit … … 228 228 #- Choose a default configuration if needed --- 229 229 #- ORCA2_LIM or last one used --- 230 . ${COMPIL_DIR}/Fcheck_config.sh cfg.txt ${NEW_CONF} || exit 230 . ${COMPIL_DIR}/Fcheck_config.sh cfg.txt ${NEW_CONF} || exit 231 231 232 232 … … 235 235 echo "You are installing a new configuration" 236 236 ind=0 237 . ${COMPIL_DIR}/Fread_dir.sh OPA_SRC YES 238 . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_2 YES 239 . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_3 NO 240 . ${COMPIL_DIR}/Fread_dir.sh TOP_SRC NO 241 . ${COMPIL_DIR}/Fread_dir.sh NST_SRC YES 242 . ${COMPIL_DIR}/Fread_dir.sh OFF_SRC NO 237 . ${COMPIL_DIR}/Fread_dir.sh OPA_SRC YES 238 . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_2 YES 239 . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_3 NO 240 . ${COMPIL_DIR}/Fread_dir.sh TOP_SRC NO 241 . ${COMPIL_DIR}/Fread_dir.sh NST_SRC YES 242 . ${COMPIL_DIR}/Fread_dir.sh OFF_SRC NO 243 . ${COMPIL_DIR}/Fread_dir.sh OPATAM_SRC NO 243 244 REF_CONF=ORCA2_LIM 244 245 elif [ ${#NEM_SUBDIR} -gt 0 ] && [ ${#REF_CONF} -eq 0 ]; then … … 248 249 elif [ ${#NEM_SUBDIR} -eq 0 ] && [ ${#REF_CONF} -gt 0 ]; then 249 250 echo "You are installing a new configuration based on ${REF_CONF}" 250 . ${COMPIL_DIR}/Fcopy_dir.sh ${REF_CONF} 251 . ${COMPIL_DIR}/Fcopy_dir.sh ${REF_CONF} 251 252 fi 252 253 NEW_CONF=${x_n} … … 272 273 #- We add or remove keys 273 274 if [ ${#list_add_key} -ne 0 ] ; then 274 . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key} 275 . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key} 275 276 fi 276 277 … … 289 290 #- and test whether we need to build the ioserver 290 291 grep key_iomput ${COMPIL_DIR}/cpp.fcm && export USEBLD=${USEBLD/xio/} 292 grep key_tam ${COMPIL_DIR}/cpp.fcm && export USEBLD=${USEBLD/xioxag/tam} 291 293 292 294 #-
Note: See TracChangeset
for help on using the changeset viewer.