- Timestamp:
- 2011-11-22T19:45:40+01:00 (12 years ago)
- Location:
- branches/2011/dev_LOCEAN_2011/NEMOGCM
- Files:
-
- 2 added
- 2 edited
- 13 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_LOCEAN_2011/NEMOGCM/CONFIG/makenemo
r2731 r3173 100 100 #- Choice of the options --- 101 101 x_d=""; 102 x_h=""; 102 103 x_n=""; 103 104 x_r=""; … … 109 110 do 110 111 case $V in 111 (h) echo "Usage : "${b_n} \ 112 (h) x_h=${OPTARG}; 113 echo "Usage : "${b_n} \ 112 114 " [-h] [-n name] [-m arch] [-d "dir1 dir2"] [-r conf] [-j No]"; 113 echo " -h : help"; 114 echo " -n name : config name, [-n help] to list existing configurations"; 115 echo " -m arch : choose compiler, [-m help] to list existing compilers"; 116 echo " -d dir : choose NEMO sub-directories"; 117 echo " -r conf : choose reference configuration"; 118 echo " -j No : number of processes used to compile (0=nocompilation)"; 119 echo " -t dir : temporary directory for compilation" 115 echo " -h : help"; 116 echo " -h institute : specific help for consortium members"; 117 echo " -n name : config name, [-n help] to list existing configurations"; 118 echo " -m arch : choose compiler, [-m help] to list existing compilers"; 119 echo " -d dir : choose NEMO sub-directories"; 120 echo " -r conf : choose reference configuration"; 121 echo " -j No : number of processes used to compile (0=nocompilation)"; 122 echo " -t dir : temporary directory for compilation" 120 123 echo ""; 121 124 echo "Example to install a new configuration MY_CONFIG"; … … 137 140 echo "./makenemo -n MY_CONFIG -j0 add_key \"key_iomput key_mpp_mpi\" del_key \"key_agrif\" "; 138 141 echo ""; 139 . ${COMPIL_DIR}/Flist_archfile.sh ;142 . ${COMPIL_DIR}/Flist_archfile.sh ${x_h} ; 140 143 echo ""; 141 144 echo "Default : previous configuration and compiler"; … … 205 208 exit 206 209 fi 207 [ "${CMP_NAM}" == help ] && . ${COMPIL_DIR}/Flist_archfile.sh && exit210 [ "${CMP_NAM}" == help ] && . ${COMPIL_DIR}/Flist_archfile.sh all && exit 208 211 209 212 #- When used for the first time, choose a compiler --- -
branches/2011/dev_LOCEAN_2011/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh
r3165 r3173 19 19 # :: 20 20 # 21 # $ Flist_archfile.sh 21 # $ Flist_archfile.sh Institute 22 22 # 23 23 # … … 37 37 # $ ./Flist_archfile.sh 38 38 # 39 # $ ./Flist_archfile.sh CNRS 39 40 # 40 41 # TODO … … 54 55 # 55 56 #- 57 58 if [ -n "$2" ]; then 59 shift 60 fi 61 56 62 echo "Available compilers for -m option :" 57 for file in $(ls ${MAIN_DIR}/ARCH ${MAIN_DIR}/ARCH/LOCAL| grep fcm )63 for file in $(ls ${MAIN_DIR}/ARCH | grep fcm ) 58 64 do 59 65 zvar1=${file#arch-} 60 if [ -f ${MAIN_DIR}/ARCH/$file ]; then61 66 zvar2=$(head -1 ${MAIN_DIR}/ARCH/$file) 62 else63 zvar2=$(head -1 ${MAIN_DIR}/ARCH/LOCAL/$file)64 fi65 67 #echo "${zvar1%.fcm} : ${zvar2#\#}" 66 68 printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" 67 69 done 70 71 72 if [ "$1" == "all" ]; then 73 for dir in $(ls ${MAIN_DIR}/ARCH | grep -v fcm ) 74 do 75 echo "Available compilers at ${dir} :" 76 for file in $(ls ${MAIN_DIR}/ARCH/${dir} | grep fcm ) 77 do 78 zvar1=${file#arch-} 79 zvar2=$(head -1 ${MAIN_DIR}/ARCH/${dir}/$file) 80 #echo "${zvar1%.fcm} : ${zvar2#\#}" 81 printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" 82 done 83 done 84 else 85 if [ -d ${MAIN_DIR}/ARCH/${1} ]; then 86 echo "Available compilers at $1 :" 87 for file in $(ls ${MAIN_DIR}/ARCH/$1 | grep fcm ) 88 do 89 zvar1=${file#arch-} 90 zvar2=$(head -1 ${MAIN_DIR}/ARCH/${1}/$file) 91 #echo "${zvar1%.fcm} : ${zvar2#\#}" 92 printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" 93 done 94 fi 95 fi
Note: See TracChangeset
for help on using the changeset viewer.