Changeset 3764 for branches/2012/dev_MERGE_2012/NEMOGCM/CONFIG/makenemo
- Timestamp:
- 2013-01-23T15:33:04+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_MERGE_2012/NEMOGCM/CONFIG/makenemo
r3742 r3764 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 243 REF_CONF=ORCA2_LIM 244 244 elif [ ${#NEM_SUBDIR} -gt 0 ] && [ ${#REF_CONF} -eq 0 ]; then … … 248 248 elif [ ${#NEM_SUBDIR} -eq 0 ] && [ ${#REF_CONF} -gt 0 ]; then 249 249 echo "You are installing a new configuration based on ${REF_CONF}" 250 . ${COMPIL_DIR}/Fcopy_dir.sh ${REF_CONF} 250 . ${COMPIL_DIR}/Fcopy_dir.sh ${REF_CONF} 251 251 fi 252 252 NEW_CONF=${x_n} … … 272 272 #- We add or remove keys 273 273 if [ ${#list_add_key} -ne 0 ] ; then 274 . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key} 274 . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key} 275 275 fi 276 276
Note: See TracChangeset
for help on using the changeset viewer.