Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/updatewm #8

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
68ac3d7
Added a default ENDIANNESS to the constants.F90 file (#747)
ukmo-ccbunney Aug 3, 2022
9576fc4
Use the hash of the spack.yaml as part of the Github Action cache key…
kgerheiser Aug 8, 2022
67d7715
Doxygen marked source - PR3 (#748)
MatthewMasarik-NOAA Aug 9, 2022
8c0c08b
Correct typo in ww3_ounf.nml for tp2.16
benoitp-cmc Aug 12, 2022
1e18420
Merge pull request #758 from eccc-waves/tp2p16_ounf_typo
aliabdolali Aug 18, 2022
e878827
Implement the removal of some redundant indices (#753)
UKMO-lsampson Sep 2, 2022
710b8bb
Several corrections to the cohernecy checks (#759)
MathieuDutSik Sep 6, 2022
ff0b256
WW3 doxygen reference: update templates with examples (#783)
MatthewMasarik-NOAA Sep 15, 2022
ba332b3
Doxygen marked files. Forth subset. (#781)
MatthewMasarik-NOAA Sep 15, 2022
63e91ce
W3NMIN bottleneck fix (#784)
MatthewMasarik-NOAA Sep 16, 2022
8ae6a85
update version numbers in manual for ww3_uprstr issue #38
JessicaMeixner-NOAA Sep 16, 2022
be9c79d
Merge pull request #787 from JessicaMeixner-NOAA/doc/issue38
MatthewMasarik-NOAA Sep 16, 2022
b6aa64a
Reduction in the number of print statements. (#791)
thesser1 Sep 20, 2022
cae97a9
remove NOPA, LRB4 and MOPART which are obsolete switches (#793)
JessicaMeixner-NOAA Sep 21, 2022
c6408fa
Clean up w3profsmd pdlib (#792)
MathieuDutSik Sep 22, 2022
6b630ed
Fixes to allow auto-formatting (#804)
DeniseWorthen Sep 26, 2022
2b630a2
Reduce memory usage of PDLIB_exchange in wminiomd.F90 (#805)
MathieuDutSik Sep 27, 2022
b1afd3c
Remove FP1 and THP1 variables (unused). Cleanup INIT_GET_ISEA in w3io…
benoitp-cmc Sep 27, 2022
900d21d
Fix peak frequency calculation in extreme cases. (#741)
benoitp-cmc Oct 3, 2022
e90487d
Fix for inconsistent time in air density input (#812)
ukmo-juan-castillo Oct 3, 2022
4408da0
Doxygen documentation: marked source files added, 5th subset (#813)
MatthewMasarik-NOAA Oct 5, 2022
31a7164
Corrections switches.json file. (#814)
MathieuDutSik Oct 5, 2022
9ddee9c
Cleanup of commented out code (#815)
MathieuDutSik Oct 5, 2022
c06ebdd
Apply auto-formatting to all files using 2-space indenting. Remove tr…
DeniseWorthen Oct 6, 2022
0b35c88
autoformat wm branch
DeniseWorthen Oct 14, 2022
49c5af9
verified ok
DeniseWorthen Oct 14, 2022
26d5aa0
Merge remote-tracking branch 'origin/develop' into feature/updatewm
DeniseWorthen Oct 14, 2022
92b0ec1
verified against dev/uwm branch
DeniseWorthen Oct 14, 2022
bfeb572
remove extra files
DeniseWorthen Oct 14, 2022
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
2 changes: 1 addition & 1 deletion cmake/FindMETIS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ find_package_handle_standard_args(
${CMAKE_FIND_PACKAGE_NAME}
REQUIRED_VARS metis_lib
metis_inc)

message(STATUS "Found METIS: ${metis_lib}")
760 changes: 718 additions & 42 deletions docs/ww3_doxy_tmpl.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions manual/run/ww3_uprstr.tex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ \subsubsection{The Restart File Processor} \label{sec:ww3uprstr}
\begin{enumerate}
\item \textbf{Download the source code} \newline
The \textbf{ww3\_uprstr} source code is included to the official WAVEWATCH III
release, starting with the version x.xx.
release, starting with the version 6.07.
\item \textbf{Compile the code} \newline
The \textbf{ww3\_uprstr} is compiled the same way as all the auxiliary programs
of WAVEWATCH III, see the appropriate section of the manual. For debugging outputs,
Expand Down Expand Up @@ -124,12 +124,12 @@ \subsubsection{The Restart File Processor} \label{sec:ww3uprstr}

The following UPD options are available:
\begin{enumerate}
\item UPD0C:: \textbf{ELIMINATED from version x.xx} Option 0C All the spectra are
\item UPD0C:: \textbf{ELIMINATED from version 5.16} Option 0C All the spectra are
updated with a constant: \newline
\(fac=(SWH\_Bckg-SWH\_Anl)/SWH\_Anl \).
\item UPD0F:: Option 0F All the spectra are updated with a constant: \newline
\(fac=SWH\_Anl/SWH\_Bckg \).
\item UPD1 :: \textbf{ELIMINATED from version x.xx} Option 1 The fac(x,y,frq,theta),
\item UPD1 :: \textbf{ELIMINATED from version 5.16} Option 1 The fac(x,y,frq,theta),
is weighted according to the \% of energy at each spectral bin; fac the same as UPDOF.
\item UPD2 :: Option 2 The fac(x,y,frq,theta), is calculated at each grid point
according to SWH\_Bckg and SWH\_Anl
Expand Down
22 changes: 11 additions & 11 deletions model/bin/ad3.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
compress=0 # source code compression par in w3adc
# if not 0, documentaion removed from .f90 file

# 1.d Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -
# 1.d Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -

source $(dirname $0)/w3_setenv
main_dir=$WWATCH3_DIR
Expand Down Expand Up @@ -201,14 +201,14 @@
if [ "$w3adc" = 'yes' ]
then

# 2.b Run CPP preprocessor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 2.b Run CPP preprocessor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

CPPFLAGS+=("-D__WW3_SWITCHES__='$sw_str'")

Expand Down Expand Up @@ -259,14 +259,14 @@
# rm -f *.mod ## too indiscriminate

## Using find -iname most succinct, but maybe not all version of find have
## the -iname option?
## the -iname option?
# find . -iname "${name}.mod" -delete # not all versions of find have -iname?

# Fall back on grep -i
# Fall back on grep -i
mods=`ls *.mod 2> /dev/null | grep -i "${name}.mod"`
if [ -n ${mods} ]; then
rm -f ${mods}
fi
fi

# --------------------------------------------------------------------------- #
# 3. Compile source code f / f90 #
Expand Down Expand Up @@ -346,13 +346,13 @@ then
## ChrisB: Don't move all module files...could break parallel make.
## Just target specific module file (could be mixed case filename
## depending on compiler - use case insensitive find):
# mods=`ls *.mod 2> /dev/null`
# mods=`ls *.mod 2> /dev/null`

## Using find -iname most succinct, but maybe not all version of find have
## the -iname option?
## the -iname option?
# mods=`find . -iname "${name}.mod"` # not all versions of find have -iname?

# Fall back on grep -i
# Fall back on grep -i
mods=`ls *.mod 2> /dev/null | grep -i "${name}.mod"`
if [ -n "$mods" ]
then
Expand Down
2 changes: 1 addition & 1 deletion model/bin/all_switches
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
echo 'Find all switches in WAVEWATCH III'
echo '----------------------------------'

# 1.b Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -
# 1.b Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -

source $(dirname $0)/w3_setenv
main_dir=$WWATCH3_DIR
Expand Down
20 changes: 10 additions & 10 deletions model/bin/cmplr.env
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# remarks : #
# #
# - template files comp.tmpl and link.tmpl will be used to create the #
# comp and link file based on the following environment variables : #
# comp and link file based on the following environment variables : #
# $optc, $optl, $comp_seq, $comp_mpi, $optomp, $err_pattern, $warn_pattern #
# #
# #
Expand Down Expand Up @@ -61,8 +61,8 @@ if [ "$cmplr" == "mpt" ] || [ "$cmplr" == "mpt_debug" ] || [ "$cmplr" == "mpt_pr
comp_seq='ftn'
comp_mpi='ftn'
fi


# OPTIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# common options
Expand Down Expand Up @@ -104,7 +104,7 @@ if [ "$cmplr" == "mpt" ] || [ "$cmplr" == "mpt_debug" ] || [ "$cmplr" == "mpt_pr
optl="$optl -xhost"
fi

#Flags for CPP:
#Flags for CPP:
cppad3procflag='-E'
cppad3flag2=' '
cppad3flag3='-o'
Expand Down Expand Up @@ -140,7 +140,7 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
comp_seq='ftn'
comp_mpi='ftn'
fi

if [ ! -z "$(echo $cmplr | grep cheyenne)" ] ; then
comp_seq='ifort'
comp_mpi='mpif90'
Expand All @@ -162,7 +162,7 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
if [ ! -z "$(echo $cmplr | grep datarmor)" ] || [ "$cmplr" == "hera.intel" ] || [ "$cmplr" == "orion.intel" ] || \
[ "$cmplr" == "wcoss_cray" ] || [ "$cmplr" == "wcoss_dell_p3" ] || [ "$cmplr" == "cheyenne.intel" ] || \
[ "$cmplr" == "gaea.intel" ] || [ "$cmplr" == "jet.intel" ] || [ "$cmplr" == "wcoss2" ] || \
[ "$cmplr" == "stampede.intel" ] || [ "$cmplr" == "s4.intel" ] || [ "$cmplr" == "expanse.intel" ] ; then
[ "$cmplr" == "stampede.intel" ] || [ "$cmplr" == "s4.intel" ] || [ "$cmplr" == "expanse.intel" ] ; then
optomp="-qopenmp"
else
optomp="-openmp"
Expand Down Expand Up @@ -219,7 +219,7 @@ if [ "$cmplr" == "intel" ] || [ "$cmplr" == "intel_debug" ] || [ "$c
fi


#Flags for CPP:
#Flags for CPP:
cppad3procflag='-E'
cppad3flag2=' '
cppad3flag3='>'
Expand Down Expand Up @@ -301,7 +301,7 @@ if [ "$cmplr" == "gnu" ] || [ "$cmplr" == "gnu_debug" ] || [ "$cmplr" == "gnu_pr
optc="$optc -fPIC"
fi

#Flags for CPP:
#Flags for CPP:
cppad3procflag='-E'
cppad3flag2=' '
cppad3flag3='-o'
Expand Down Expand Up @@ -361,7 +361,7 @@ if [ "$cmplr" == "pgi" ] || [ "$cmplr" == "pgi_debug" ] || [ "$cmplr" == "pgi_pr
optl="$optl"
fi

#Flags for CPP:
#Flags for CPP:
cppad3procflag='-E'
cppad3flag2=' '
cppad3flag3='>'
Expand Down Expand Up @@ -419,7 +419,7 @@ if [ "$cmplr" == "ukmo_cray" ] || [ "$cmplr" == "ukmo_cray_debug" ] || \

# system-dependant options
# N/A
#Flags for CPP:
#Flags for CPP:
cppad3procflag='-eP'
cppad3flag2=' '
cppad3flag3='#'
Expand Down
8 changes: 4 additions & 4 deletions model/bin/comp.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
name="$1"
echo " Compiling $name"

# 1.b Initial clean-up - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 1.b Initial clean-up - - - - - - - - - - - - - - - - - - - - - - - - - - - -

rm -f $name.l
rm -f $name.o
Expand Down Expand Up @@ -120,7 +120,7 @@
fi
fi

# 3.b Make file comp.stat - - - - - - - - - - - - - - - - - - - - - - - - - -
# 3.b Make file comp.stat - - - - - - - - - - - - - - - - - - - - - - - - - -

echo "ERROR $nr_err" > comp.stat.$name
echo "WARNING $nr_war" >> comp.stat.$name
Expand All @@ -131,12 +131,12 @@
# comment lines are to be numbered.

# listing done by the compiler
if [ -s $name.lst ]
if [ -s $name.lst ]
then
mv $name.lst $name.l
fi
# add comp options, warnings and error to listing
if [ -s $name.l ]
if [ -s $name.l ]
then
echo '------------' >> $name.l
echo "$comp $opt" >> $name.l
Expand Down
10 changes: 5 additions & 5 deletions model/bin/find_switch
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
echo 'Find switches in WAVEWATCH III'
echo '------------------------------'

# 1.b Process/save input - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 1.b Process/save input - - - - - - - - - - - - - - - - - - - - - - - - - - -

if test "$#" != '0'
then
Expand All @@ -38,21 +38,21 @@

echo ' ' ; echo "Files including $switch :" ; echo ' '

# 1.c Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -
# 1.c Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -

source $(dirname $0)/w3_setenv
main_dir=$WWATCH3_DIR
temp_dir=$WWATCH3_TMP
source=$WWATCH3_SOURCE
list=$WWATCH3_LIST

# 1.d Raw data file - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 1.d Raw data file - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

### TO DO: This needs to be improved for CPP transition
### TO DO: This needs to be improved for CPP transition
cd $main_dir/src
grep "$switch" * | sed 's/\:/ /' | awk '{ print $1}' > ../.switch.files

# 1.e Output - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 1.e Output - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

last=$NULL
for file in `cat ../.switch.files`
Expand Down
8 changes: 4 additions & 4 deletions model/bin/link.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
echo " Linking $prog"
input="$*"

# 1.b Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -
# 1.b Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -

source $(dirname $0)/w3_setenv
main_dir=$WWATCH3_DIR
Expand All @@ -42,7 +42,7 @@
list=$WWATCH3_LIST


# 1.c Initial clean-up - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 1.c Initial clean-up - - - - - - - - - - - - - - - - - - - - - - - - - - - -

rm -f $main_dir/exe/$prog

Expand Down Expand Up @@ -117,15 +117,15 @@
libs="$libs `$NETCDF_CONFIG --flibs` `$NETCDF_CONFIG --libs`"
fi

# parmetis library
# parmetis library
if [ "$prog" = 'ww3_shel' ] || [ "$prog" = 'ww3_multi' ] || [ "$prog" = 'ww3_sbs1' ] ; then
if [ "$pdlib_mod" = 'yes' ] ; then
if [ -z "$(env | grep METIS_PATH)" ] ; then
echo ''
echo "[ERROR] METIS_PATH is not defined"
exit 1
fi
echo "link with parmetis"
echo "link with parmetis"
libs="$libs $METIS_PATH/lib/libparmetis.a $METIS_PATH/lib/libmetis.a"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion model/bin/make_makefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
# Get file - the list of files to be compiled
# and filel - list of files for linking a particular prog
create_file_list

case $prog in
ww3_grid) IDstring='Grid preprocessor' ;;
ww3_strt) IDstring='Initial conditions program' ;;
Expand Down
4 changes: 2 additions & 2 deletions model/bin/sort_all_switches
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Options:
otherwise this gives an error exit
EOF
}

# 1.a.3 Process input (part 1)

args=`getopt $optstr $*`
Expand Down Expand Up @@ -75,7 +75,7 @@ EOF
exit 1
fi

# 1.a.4 Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -
# 1.a.4 Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -

source $(dirname $0)/w3_setenv
main_dir=$WWATCH3_DIR
Expand Down
16 changes: 8 additions & 8 deletions model/bin/sort_switch
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Options:
-v : verbose, show program output
EOF
}

# 1.a.3 Process input (part 1)

args=`getopt $optstr $*`
Expand Down Expand Up @@ -112,14 +112,14 @@ EOF
exit 2
fi

# 1.a.4 Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -
# 1.a.4 Get data from setup file - - - - - - - - - - - - - - - - - - - - - - - -

source $(dirname $0)/w3_setenv
main_dir=$WWATCH3_DIR
temp_dir=$WWATCH3_TMP
source=$WWATCH3_SOURCE
list=$WWATCH3_LIST

# 1.a.5 Process input (part 2)

bin_dir="$main_dir/exe"
Expand All @@ -133,7 +133,7 @@ EOF

if [ ! -f $script ] ; then
echo " *** cannot find $script ***" ; exit 5 ; fi

# 1.a.6 Additional setups

outs="O0 O1 O2 O2a O2b O2c O3 O4 O5 O6 O7 O7a O7b O8 O9 O10 O11 O12 O13 O14 O15 O16"
Expand Down Expand Up @@ -162,7 +162,7 @@ EOF
echo ' '
fi

# 1.d Set up work space - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 1.d Set up work space - - - - - - - - - - - - - - - - - - - - - - - - - - -

cd $temp_dir

Expand Down Expand Up @@ -300,7 +300,7 @@ EOF
fi
fi
done

done

if [ "$verbose" ]
Expand Down Expand Up @@ -433,7 +433,7 @@ EOF
# --------------------------------------------------------------------------- #
# 4. Dealing with left over switches #
# --------------------------------------------------------------------------- #
# 4.a Loop over additional types
# 4.a Loop over additional types

for type in out strace test
do
Expand All @@ -457,7 +457,7 @@ EOF

# 4.c Loop over switchs

for sw in $switches
for sw in $switches
do
i_fnd='0'
found=
Expand Down
Loading