Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
0e992e7
removing support for NetCDF 3 Issue #358
JessicaMeixner-NOAA May 17, 2021
097c9ef
reverting ww3_ounp as we are going to keep NCTYPE=3
JessicaMeixner-NOAA May 20, 2021
9ea2655
replace NC4 -> TRKNC switch in ww3_systrk and added
JessicaMeixner-NOAA May 20, 2021
b4e34cf
removing if HASNC4 as we no longer support NetCDFv3 build
JessicaMeixner-NOAA May 20, 2021
fe6691c
remove NC4 from ww3_ounf.ftn
JessicaMeixner-NOAA May 20, 2021
6dd515e
update makefile for no NC4 switch
JessicaMeixner-NOAA May 20, 2021
7a9fca9
remove NC4 from www3_ounp
JessicaMeixner-NOAA May 20, 2021
334b8e6
NC4 for ww3_trnc
JessicaMeixner-NOAA May 20, 2021
58dc566
remove nc4 from manual switch list
JessicaMeixner-NOAA May 20, 2021
2351dba
remove XX0 and XXX switches and corresponding w3sxxxxmd.ftn
JessicaMeixner-NOAA May 21, 2021
b454da3
update makefile
JessicaMeixner-NOAA May 21, 2021
1258d2f
update esmf/switch
JessicaMeixner-NOAA May 21, 2021
97f40f8
remove switch XX0/XXX from manual list of switches
JessicaMeixner-NOAA May 21, 2021
d36b12e
fix issues in comp/link.tmpl for netcdf
JessicaMeixner-NOAA May 27, 2021
6b5403f
Merge remote-tracking branch 'EMC/develop' into feature/removeNC4switch
JessicaMeixner-NOAA May 27, 2021
caabbd7
remove NC4 from esmf switch
JessicaMeixner-NOAA May 27, 2021
ec00915
Merge remote-tracking branch 'EMC/develop' into feature/removeXX0XXX
JessicaMeixner-NOAA May 27, 2021
ae2d6ac
remove logic from w3grid for XX0XXX switch checks
JessicaMeixner-NOAA May 27, 2021
64c03a2
Merge branch 'NOAA-EMC:develop' into feature/removeNC3support
JessicaMeixner-NOAA Jun 9, 2021
164882a
Merge remote-tracking branch 'origin/feature/removeNC3support' into f…
JessicaMeixner-NOAA Jun 9, 2021
c258e54
fix typo in link
JessicaMeixner-NOAA Jun 9, 2021
cfdb2e5
fix extra and
JessicaMeixner-NOAA Jun 9, 2021
1a3d7ae
Merge remote-tracking branch 'EMC/develop' into feature/removeXX0XXX
JessicaMeixner-NOAA Jun 10, 2021
bf59b92
update error in link
JessicaMeixner-NOAA Jun 10, 2021
29eecc4
Merge branch 'NOAA-EMC:develop' into feature/removeNC3support
JessicaMeixner-NOAA Jun 10, 2021
2179030
Merge branch 'NOAA-EMC:develop' into feature/removeNC3support
JessicaMeixner-NOAA Jun 11, 2021
a1dd38e
Merge remote-tracking branch 'origin/feature/removeNC3support' into f…
JessicaMeixner-NOAA Jun 11, 2021
b574d3f
Merge remote-tracking branch 'origin/feature/removeXX0XXX' into featu…
JessicaMeixner-NOAA Jun 14, 2021
c64f29e
remove TRX switch and related items
JessicaMeixner-NOAA Jun 14, 2021
79ed7ca
remove STX switch
JessicaMeixner-NOAA Jun 14, 2021
eb375b3
removing a few xx0/xxx that were remaining
JessicaMeixner-NOAA Jun 14, 2021
429bac8
Merge remote-tracking branch 'EMC/develop' into feature/removeXX0XXX
JessicaMeixner-NOAA Jun 14, 2021
c5c394f
remove BSX
JessicaMeixner-NOAA Jun 14, 2021
127442d
Merge remote-tracking branch 'origin/feature/removeXX0XXX' into featu…
JessicaMeixner-NOAA Jun 14, 2021
cc43994
remove DBX switch
JessicaMeixner-NOAA Jun 14, 2021
adc1477
remove BTX switch
JessicaMeixner-NOAA Jun 14, 2021
539789a
remove NLX switch
JessicaMeixner-NOAA Jun 14, 2021
27b699d
remove PRX
JessicaMeixner-NOAA Jun 14, 2021
3ed197c
remove FLXX switch
JessicaMeixner-NOAA Jun 14, 2021
43eed6b
removing two user/experimental routines
JessicaMeixner-NOAA Jun 14, 2021
94fa2f2
more missing files to delete from make/manual
JessicaMeixner-NOAA Jun 14, 2021
2d693d3
remove LNX switch
JessicaMeixner-NOAA Jun 14, 2021
a48ad7c
more clean up
JessicaMeixner-NOAA Jun 14, 2021
524af11
remove option for C compiler for aux scripts as its not needed
JessicaMeixner-NOAA Jun 16, 2021
e931a44
remove "printer" option in wwatch3.env which is not used anywhere
JessicaMeixner-NOAA Jun 16, 2021
6da7922
updates from printer
JessicaMeixner-NOAA Jun 16, 2021
935ea09
make a single readme file with info from all the pervious README
JessicaMeixner-NOAA Jun 16, 2021
dd3f9d0
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Jun 16, 2021
b0b2aa0
remove make_XXX as these have not been kept up to date and
JessicaMeixner-NOAA Jun 16, 2021
383760c
update manual to remove reverneces to WWATCH3_NETCDF
JessicaMeixner-NOAA Jun 16, 2021
ca214a0
start the removal of the WWATCH3_NETCDF required env variable
JessicaMeixner-NOAA Jun 16, 2021
45f173a
Merge remote-tracking branch 'EMC/develop' into feature/removeNC4switch
JessicaMeixner-NOAA Jun 16, 2021
ef51ac6
Merge remote-tracking branch 'origin/feature/removeNC4switch' into fe…
JessicaMeixner-NOAA Jun 16, 2021
0b82925
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Jun 17, 2021
0ce6617
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Jun 21, 2021
09ace17
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Jun 21, 2021
21e1802
update readme in bin directory
JessicaMeixner-NOAA Jun 24, 2021
aff88ff
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Jun 24, 2021
5272f51
reoranizing make_makefile.sh
JessicaMeixner-NOAA Jun 24, 2021
12dad7e
more updating and clean up of make_makefile
JessicaMeixner-NOAA Jun 24, 2021
932d6aa
continue to make build script more modular
JessicaMeixner-NOAA Jun 24, 2021
078374f
fix typo
JessicaMeixner-NOAA Jun 24, 2021
a07eae0
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Jun 28, 2021
683049e
update README in bin directory to be formatted
JessicaMeixner-NOAA Jun 29, 2021
0a40d44
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Jun 29, 2021
38f615d
add to bin/README
JessicaMeixner-NOAA Jun 29, 2021
ca482a3
update readme for formatting
JessicaMeixner-NOAA Jun 29, 2021
bb74a1e
check in tools for ftn2src
JessicaMeixner-NOAA Jun 29, 2021
b895120
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Jul 29, 2021
4e8383e
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Aug 2, 2021
c3a1012
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Aug 4, 2021
6a89c5d
Merge remote-tracking branch 'EMC/develop' into feature/expswitches
JessicaMeixner-NOAA Aug 6, 2021
ce92245
remove variables and update mod_def date for xxx removal
JessicaMeixner-NOAA Aug 6, 2021
4d9769a
update w3gridmd for smc-- line should not be there
JessicaMeixner-NOAA Aug 19, 2021
6c807c0
remove two FLXX calls
JessicaMeixner-NOAA Aug 20, 2021
7d400f8
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Aug 20, 2021
113ec02
Merge remote-tracking branch 'origin/feature/expswitches' into featur…
JessicaMeixner-NOAA Aug 20, 2021
d5b0118
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Aug 20, 2021
ad814d6
updates for build for recent commits
JessicaMeixner-NOAA Aug 20, 2021
402e287
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Aug 24, 2021
8d49d44
update build with latest updates from develop which needed to be manu…
JessicaMeixner-NOAA Aug 24, 2021
1e98e16
updating git ignore list
JessicaMeixner-NOAA Aug 24, 2021
26b2d79
fix for build for NL5 and updating gitignore
JessicaMeixner-NOAA Aug 25, 2021
98c6b62
Updated version number to 7.13
JessicaMeixner-NOAA Aug 26, 2021
34a9fe5
fix typo
JessicaMeixner-NOAA Aug 26, 2021
473134a
updates to sort_switch which allows w3_automake to work correctly
JessicaMeixner-NOAA Aug 26, 2021
47c77ae
updating reg and netcdf program list in w3_automake
JessicaMeixner-NOAA Aug 26, 2021
7a2ba5b
Merge remote-tracking branch 'origin/feature/cleanbuild' into version…
JessicaMeixner-NOAA Aug 26, 2021
6fa21d6
committing testing build updates
JessicaMeixner-NOAA Aug 26, 2021
b9be1d7
Merge remote-tracking branch 'EMC/develop' into feature/switch2cppWbu…
JessicaMeixner-NOAA Aug 26, 2021
7c4551d
Merge remote-tracking branch 'origin/version7.13' into feature/switch…
JessicaMeixner-NOAA Aug 26, 2021
704a963
update make_makefile to correct version
JessicaMeixner-NOAA Aug 26, 2021
a72f653
clean comments
JessicaMeixner-NOAA Aug 26, 2021
9486730
update readme based on feedback from Mickael
JessicaMeixner-NOAA Aug 27, 2021
6ed66da
Merge branch 'feature/cleanbuild' of github.com:JessicaMeixner-NOAA/W…
JessicaMeixner-NOAA Aug 27, 2021
95f9d88
Merge remote-tracking branch 'origin/feature/cleanbuild' into version…
JessicaMeixner-NOAA Aug 27, 2021
f7c105e
update about.tex to fill in previous v7 milestone descriptions
JessicaMeixner-NOAA Aug 27, 2021
9fa5ede
remove temporary lines
JessicaMeixner-NOAA Aug 27, 2021
5c19094
Merge remote-tracking branch 'origin/version7.13' into feature/switch…
JessicaMeixner-NOAA Aug 27, 2021
7e44382
updates for using src instead of ftn
JessicaMeixner-NOAA Aug 27, 2021
226e8a4
update to use WWATCH_F90 in the cpp preprocessing
JessicaMeixner-NOAA Aug 27, 2021
1471734
removing un-needed setup files
JessicaMeixner-NOAA Aug 27, 2021
4bf522b
update ftn2src.sh
JessicaMeixner-NOAA Aug 27, 2021
2fea273
update SCRIP makefile segments
JessicaMeixner-NOAA Sep 8, 2021
69cd5b5
update script for conversion
JessicaMeixner-NOAA Sep 8, 2021
c07cd05
Merge remote-tracking branch 'EMC/develop' into feature/switch2cppWbu…
JessicaMeixner-NOAA Sep 8, 2021
55ce2fb
fixing typos Chris found
JessicaMeixner-NOAA Sep 9, 2021
b88387d
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Sep 9, 2021
69b3e8e
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Sep 10, 2021
1ec1d94
Merge remote-tracking branch 'origin/feature/cleanbuild' into version…
JessicaMeixner-NOAA Sep 10, 2021
41f6238
Merge remote-tracking branch 'EMC/develop' into feature/cleanbuild
JessicaMeixner-NOAA Sep 14, 2021
0746906
Merge remote-tracking branch 'origin/feature/cleanbuild' into version…
JessicaMeixner-NOAA Sep 14, 2021
440ed02
Merge remote-tracking branch 'EMC/develop' into version7.13
JessicaMeixner-NOAA Sep 15, 2021
de1a1be
merge commit
JessicaMeixner-NOAA Sep 15, 2021
ac5d64c
Merge remote-tracking branch 'origin/version7.13' into feature/switch…
JessicaMeixner-NOAA Sep 15, 2021
82901ec
updating source
JessicaMeixner-NOAA Sep 15, 2021
0b7e7c7
Merge branch 'NOAA-EMC:develop' into feature/switch2cpp_build_nosrc
JessicaMeixner-NOAA Sep 16, 2021
6775d57
Merge branch 'NOAA-EMC:develop' into feature/switch2cpp_build_nosrc
JessicaMeixner-NOAA Sep 16, 2021
9a39932
update ad3 to add a compiler specific statement
JessicaMeixner-NOAA Sep 16, 2021
4833efb
Provide CPP method of setting switch list in w3initmd
ukmo-ccbunney Sep 21, 2021
5726511
Merge remote-tracking branch 'EMC/develop' into feature/switch2cpp_bu…
JessicaMeixner-NOAA Sep 21, 2021
285c44a
update src code with latest changes
JessicaMeixner-NOAA Sep 21, 2021
310119e
Merge branch 'feature/switch2cpp_0921code' into feature/switch2cpp_bu…
JessicaMeixner-NOAA Sep 21, 2021
5e2ff25
cleaning up more unused files and updating .gitignore
JessicaMeixner-NOAA Sep 22, 2021
41a6dd6
remove w3init switch part of ad3
JessicaMeixner-NOAA Sep 22, 2021
661b5d1
more ad3 clean-up
JessicaMeixner-NOAA Sep 22, 2021
29d7554
clean up w3list is no longer built
JessicaMeixner-NOAA Sep 22, 2021
176773d
update comp.tmpl since we dont have w3list file anymore
JessicaMeixner-NOAA Sep 22, 2021
da38956
Merge branch 'feature/switch2cpp_build_nosrc' of github.com:JessicaMe…
JessicaMeixner-NOAA Sep 22, 2021
8757889
Revert "update comp.tmpl since we dont have w3list file anymore"
JessicaMeixner-NOAA Sep 22, 2021
f74c89c
do not call w3list in comp.tmpl because we do not generate this exe a…
JessicaMeixner-NOAA Sep 22, 2021
5cf09c9
process src
JessicaMeixner-NOAA Sep 22, 2021
b314de0
Merge branch 'update0922' into feature/switch2cpp_build_src
JessicaMeixner-NOAA Sep 22, 2021
1178854
first pass at ad3.tmpl file to get compiler specific files
JessicaMeixner-NOAA Sep 22, 2021
2c47d48
updates to make ad3.tmpl work
JessicaMeixner-NOAA Sep 23, 2021
454ee83
missed section
JessicaMeixner-NOAA Sep 23, 2021
a0ce4d9
Merge remote-tracking branch 'EMC/develop' into feature/ad3template
JessicaMeixner-NOAA Sep 23, 2021
bec6625
Merge remote-tracking branch 'EMC/develop' into feature/ad3template
JessicaMeixner-NOAA Sep 27, 2021
f045974
Merge remote-tracking branch 'EMC/develop' into feature/ad3template
JessicaMeixner-NOAA Sep 27, 2021
0b32dbe
update ftn->src
JessicaMeixner-NOAA Sep 27, 2021
6927a70
Merge remote-tracking branch 'origin/feature/ad3templatewithsrc' into…
JessicaMeixner-NOAA Sep 28, 2021
fc4f362
update for pgi
JessicaMeixner-NOAA Sep 30, 2021
dd9b672
add tools that convert ftn files with WW3 switch pre-processing
JessicaMeixner-NOAA Oct 5, 2021
f640a51
update what is going to ad3 for UKMO cray
JessicaMeixner-NOAA Oct 5, 2021
d66455f
updates for UKMO for ad3
JessicaMeixner-NOAA Oct 5, 2021
704f508
add bin/bash and remove set-x
JessicaMeixner-NOAA Oct 5, 2021
1158e44
Merge branch 'NOAA-EMC:develop' into feature/tools_ftn2src
JessicaMeixner-NOAA Oct 6, 2021
73d49b2
add readme
JessicaMeixner-NOAA Oct 6, 2021
6812673
Merge branch 'NOAA-EMC:develop' into feature/switch2cpp_build_nosrc
JessicaMeixner-NOAA Oct 6, 2021
6020053
Merge remote-tracking branch 'origin/feature/tools_ftn2src' into feat…
JessicaMeixner-NOAA Oct 6, 2021
129cc15
with processed source code
JessicaMeixner-NOAA Oct 6, 2021
93cd659
Merge remote-tracking branch 'origin/temp/switch2cpp_build_nosrc' int…
JessicaMeixner-NOAA Oct 6, 2021
1dfe46b
Merge branch 'NOAA-EMC:develop' into feature/switch2cpp_build_src
JessicaMeixner-NOAA Oct 8, 2021
0747c64
Merge branch 'NOAA-EMC:develop' into feature/switch2cpp_build_src
JessicaMeixner-NOAA Oct 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ regtests/output
*~
model/bin/comp
model/bin/link
model/bin/ad3
model/bin/switch
model/bin/switch.old
model/bin/switch.old_DIST
Expand Down
4 changes: 2 additions & 2 deletions model/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ tmp_*
work*
nuopc*.mk
tools/makefile
ftn/makefile
ftn/makefile_*
src/makefile
src/makefile_*
83 changes: 15 additions & 68 deletions model/bin/ad3 → model/bin/ad3.tmpl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
# --------------------------------------------------------------------------- #
# ad3 : Run fortran preprocessor w3adc of WAVEWATCH III on for a single #
# ad3 : Run fortran CPP preprocessor on a single WAVEWATCH III #
# source code file. Switches are set in the file 'switch', which #
# has to be in the "bin" directory. After the preprocessing the code #
# is compiled using the script comp in the "bin" directory. #
# #
# use : ad3 basename [itest [icomp]] #
# basename: name of source code file without the '.ftn' extension. #
# basename: name of source code file without the '.F90' extension. #
# file with .f or .f90 extension is not preprocessed. #
# file with .c extension uses standard cc compiler. #
# itest : test output switch. #
Expand All @@ -23,7 +23,6 @@
# 5 : compiler error. #
# #
# programs used : #
# w3adc : executable of proprocessing program. #
# comp : compiler script. #
# #
# remarks : #
Expand All @@ -32,20 +31,14 @@
# - The main WAVEWATCH directory ($main_dir) is obtained from the setup #
# file $ww3_env, as is the scratch directory ($temp_dir). The following #
# directories are used : #
# $main_dir/ftn : Raw FORTRAN file ($basename.ftn). If extension is #
# not .ftn, w3adc will be skipped. if the extension is #
# .c, then the simple cc compiler is used. The latter #
# is now used for profiling code only. #
# $main_dir/src : Raw FORTRAN file ($basename.F90). #
# $main_dir/bin : File with preprocessor switches 'switch', and #
# compiler script 'comp'. #
# $main_dir/obj : Final object modules ($basename.o). #
# $main_dir/mod : Final modules (*.mod). #
# #
# The following temporary files (in $temp_dir) are used and are removed #
# only if the corresponding step of ad3 is ompleted successfully : #
# w3adc.inp : input file for w3adc. #
# w3adc.out : output file for w3adc. #
# w3adc.err : eror file for w3adc. #
# comp.out : input file for comp. #
# comp.err : eror file for comp. #
# comp.stat : status file of compiler, containing number of errors #
Expand Down Expand Up @@ -104,12 +97,11 @@
source=$WWATCH3_SOURCE
list=$WWATCH3_LIST


# 1.d Set up paths etc. - - - - - - - - - - - - - - - - - - - - - - - - - - -

path_b="$main_dir/bin"
path_w="$( cd $temp_dir && pwd )"
path_i="$main_dir/ftn"
path_i="$main_dir/src"
path_o="$main_dir/obj"
path_m="$main_dir/mod"
path_e="$main_dir/exe"
Expand Down Expand Up @@ -141,7 +133,7 @@

# 1.e Test necessity of running w3adc - - - - - - - - - - - - - - - - - - - -

if [ -f $path_i/$name.ftn ]
if [ -f $path_i/$name.F90 ]
then
w3adc='yes'
idstr=
Expand Down Expand Up @@ -200,7 +192,6 @@
cd $path_w
rm -f $name.$fext
rm -f $name.l
ln -s $main_dir/bin/w3list . 2> /dev/null

# --------------------------------------------------------------------------- #
# 2. Run w3adc #
Expand All @@ -210,73 +201,31 @@
if [ "$w3adc" = 'yes' ]
then

echo "0 $compress" > w3adc.inp.$name
echo "'$path_i/$name.ftn' '$name.$fext'" >> w3adc.inp.$name
echo "'$sw_str'" >> w3adc.inp.$name

# 2.b Add NCEP/NCO docmentation - - - - - - - - - - - - - - - - - - - - - - -

# Obsolete feature, removed
# 2.b Run CPP preprocessor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# 2.b Run w3adc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Generate list of CPP Flags based on switches:
CPPFLAGS=()
for sw in $sw_str
do
CPPFLAGS+=("-DW3_$sw")
done

if [ "$itst" != '0' ]
then
echo '-- input file w3adc.inp -------------------------------------------'
cat w3adc.inp.$name
echo '-- end of file ----------------------------------------------------'
fi
CPPFLAGS+=("-D__WW3_SWITCHES__='$sw_str'")

$path_b/w3adc < w3adc.inp.$name > w3adc.out.$name 2> w3adc.err.$name
<comp_seq> "${CPPFLAGS[@]}" <cppad3procflag> <cppad3flag2> $path_i/$name.F90 <cppad3flag3> $name.F90
<cppad3flag4> mv $name.i $name.F90

# 2.c Test the output of w3adc - - - - - - - - - - - - - - - - - - - - - - - -

ad3_tst="`grep ERROR w3adc.out.$name`"
if [ -n "$ad3_tst" ]
then
echo ' *** w3adc error ***'
echo " $ad3_tst" ; exit 4
fi

if [ ! -f $name.$fext ]
then
echo ' *** w3adc error ***'
echo " file $name.$fext not found (1)."
cat w3adc.out.$name ; cat w3adc.err.$name ; exit 4
fi

if [ "`wc -l $name.$fext | awk '{ print $1}'`" -lt '2' ]
then
echo ' *** w3adc error ***'
echo " file $name.$fext not found (2)."
cat w3adc.out.$name ; cat w3adc.err.$name ; exit 4
fi

if [ "$itst" != '0' ]
then
cat w3adc.out.$name
fi

# 2.d Clean up - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

rm -f w3adc.*.$name

# 2.e Add switches in w3initmd - - - - - - - - - - - - - - - - - - - - - -

if [ "$name" = "w3initmd" ]
then
sw_1=''
cp $path_w/w3initmd.$fext $path_w/w3initmd.ft1
for line in 1 2 3
do
sw_1=`echo $sw_str | fold -w100 | sed -n "${line}p"`
sw_old="PUT_SW$line"
# echo $line $sw_1 $sw_old
sed -e "s/$sw_old/$sw_1/" $path_w/w3initmd.ft1 > $path_w/w3initmd.ft2
mv $path_w/w3initmd.ft2 $path_w/w3initmd.ft1
done
mv $path_w/w3initmd.ft1 $path_w/w3initmd.$fext
echo "'$path_w/$name.fts' '$name.$fext'" >> w3adc.inp
fi

else
Expand All @@ -298,7 +247,6 @@

if [ "$icmp" != '0' ]
then
rm -f w3list
exit 0
fi

Expand Down Expand Up @@ -420,7 +368,6 @@ then
# 3.e process output files - - - - - - - - - - - - - - - - - - - - - - - - - -

rm -f $name.o
rm -f w3list

if [ "$source" != 'yes' ]
then
Expand Down
145 changes: 0 additions & 145 deletions model/bin/ad3_test

This file was deleted.

4 changes: 2 additions & 2 deletions model/bin/all_switches
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# --------------------------------------------------------------------------- #
# all_switches : Make a list of all switches hat are found in the program #
# (.ftn) files of WAVEWATCH III. #
# (.F90) files of WAVEWATCH III. #
# #
# use : all_switches #
# #
Expand Down Expand Up @@ -38,7 +38,7 @@
# 2. Strip all switches from sources #
# --------------------------------------------------------------------------- #

cd $main_dir/ftn
cd $main_dir/src

all=`sed -n '/^!\/[[:alpha:]]/'p *.ftn | awk '{print $1}' | \
awk -F'!/' 'BEGIN{OFS="\n"}{$1=$1; print $0}' | \
Expand Down
Loading