File tree 4 files changed +24
-5
lines changed
4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 212
212
213
213
CPPFLAGS+=(" -D__WW3_SWITCHES__='$sw_str '" )
214
214
215
+ # Also set endianness:
216
+ CPPFLAGS+=(" -DENDIANNESS='<endian>'" )
217
+
215
218
< comp_seq> " ${CPPFLAGS[@]} " < cppad3procflag> < cppad3flag2> $path_i /$name .F90 < cppad3flag3> $name .F90
216
219
< cppad3flag4> mv $name .i $name .F90
217
220
Original file line number Diff line number Diff line change 36
36
err_pattern=' [[:space:]]error[[:space:]]'
37
37
warn_pattern=' warn'
38
38
39
+ # Binary I/O defaults to native endian:
40
+ endian=' native'
41
+
39
42
# disable listing done by the compiler
40
43
list=' no'
41
44
@@ -63,9 +66,11 @@ if [ "$cmplr" == "mpt" ] || [ "$cmplr" == "mpt_debug" ] || [ "$cmplr" == "mpt_pr
63
66
# OPTIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
64
67
65
68
# common options
66
- optc=' -c -module $path_m -no-fma -ip -g -i4 -real-size 32 -fp-model precise -assume byterecl -convert big_endian - fno-alias -fno-fnalias'
69
+ optc=' -c -module $path_m -no-fma -ip -g -i4 -real-size 32 -fp-model precise -assume byterecl -fno-alias -fno-fnalias'
67
70
optl=' -o $prog -g'
68
71
72
+ endian=' big_endian'
73
+
69
74
# list options
70
75
if [ " $list " == ' yes' ] ; then optc=" $optc -list" ; fi
71
76
@@ -145,9 +150,11 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
145
150
# OPTIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
146
151
147
152
# common options
148
- optc=' -c -module $path_m -no-fma -ip -g -traceback -i4 -real-size 32 -fp-model precise -assume byterecl -convert big_endian - fno-alias -fno-fnalias -sox'
153
+ optc=' -c -module $path_m -no-fma -ip -g -traceback -i4 -real-size 32 -fp-model precise -assume byterecl -fno-alias -fno-fnalias -sox'
149
154
optl=' -o $prog -g'
150
155
156
+ endian=' big_endian'
157
+
151
158
# list options
152
159
if [ " $list " == ' yes' ] ; then optc=" $optc -list" ; fi
153
160
@@ -252,9 +259,11 @@ if [ "$cmplr" == "gnu" ] || [ "$cmplr" == "gnu_debug" ] || [ "$cmplr" == "gnu_pr
252
259
# OPTIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
253
260
254
261
# common options
255
- optc=' -c -J$path_m -g -fno-second-underscore -ffree-line-length-none -fconvert=big-endian '
262
+ optc=' -c -J$path_m -g -fno-second-underscore -ffree-line-length-none'
256
263
optl=' -o $prog -g'
257
264
265
+ endian=' big_endian'
266
+
258
267
# omp options
259
268
optomp=' -fopenmp'
260
269
Original file line number Diff line number Diff line change 394
394
[ " $cmplr " == " ukmo_cray_gnu" ] || [ " $cmplr " == " ukmo_cray_gnu_debug" ] || \
395
395
[ " $cmplr " == " ukmo_cray_intel" ] || [ " $cmplr " == " ukmo_cray_intel_debug" ]; then
396
396
source $path_b /cmplr.env
397
- sed -e " s/<comp_seq>/$comp_seq /" -e " s/<cppad3procflag>/$cppad3procflag /" -e " s/<cppad3flag2>/$cppad3flag2 /" -e " s/<cppad3flag3>/$cppad3flag3 /" -e " s/<cppad3flag4>/$cppad3flag4 /" $path_b /ad3.tmpl > $path_b /ad3
397
+ sed -e " s/<comp_seq>/$comp_seq /" -e " s/<cppad3procflag>/$cppad3procflag /" -e " s/<cppad3flag2>/$cppad3flag2 /" -e " s/<cppad3flag3>/$cppad3flag3 /" -e " s/<cppad3flag4>/$cppad3flag4 /" -e " s/<endian>/ ${endian} / " $path_b /ad3.tmpl > $path_b /ad3
398
398
echo " sed $path_b /ad3.tmpl => $path_b /ad3"
399
399
else
400
400
errmsg " $path_b /ad3.$cmplr not found"
Original file line number Diff line number Diff line change @@ -1259,7 +1259,14 @@ then
1259
1259
else
1260
1260
inputs=" ` ls $path_i /$prog * .inp 2> /dev/null` "
1261
1261
fi
1262
- inputs_tmp=` ( ls ${path_i} /${prog}${gu} * )`
1262
+
1263
+ if [ $nml_input ] && [ ! -z " ` ls ${path_i} /${prog} * .nml 2> /dev/null` " ]
1264
+ then
1265
+ inputs_tmp=` ( ls ${path_i} /${prog}${gu} * nml)`
1266
+ else
1267
+ inputs_tmp=` ( ls ${path_i} /${prog}${gu} * inp)`
1268
+ fi
1269
+
1263
1270
if [ ! -z " $inputs_tmp " ]; then
1264
1271
inputs=$inputs_tmp
1265
1272
fi
You can’t perform that action at this time.
0 commit comments