[Ncep.list.wwatch3.discussion-group] WW3 : comp.tmpl and link.tmpl based on cmplr.env
Mickael Accensi
mickael.accensi at ifremer.fr
Wed Sep 26 15:42:14 UTC 2018
Hi all,
Here is a quick mail to explain how the new template is working for
comp/link on WW3
There is a new comp and link file that should be the only one remaining
for the public release :
*comp.tmpl* and *link.tmpl*
using this compiler environment will create the .out and.err in tmp
directory to easily find the errors and warnings.
_How to use it with w3_setup:_
*common compiler available : mpt, intel, gnu, pgi
*additional debug sufix : _debug
*additional cluster prefix : zeus_ and datarmor_
_examples : _
w3_setup .. -c *mpt *
w3_setup .. -c *intel*
w3_setup .. -c *pgi*
w3_setup .. -c *gnu*
# add suffix to enable *debugging options* (available for
mpt/intel/gnu/pgi compilers)
w3_setup .. -c mpt*_debug*
# add prefix to enable *cluster specific options* (done for datarmor and
zeus)
w3_setup .. -c *datarmor_*mpt_debug
As it's a transitional way of do, it is highly recommended
to all the partners to try it and if needed add their own
cluster specific options.
To do it, just compile and run ww3 using the comp option mpt, intel, pgi
or gnu depending on your usual compiler.
if it's not working or if results are different, you will need to edit
*cmplr.env* in model/bin directory
_-> you can overwrite the compiler to use (example done for pgi on zeus)_
# zeus compiler
if [ ! -z "$(echo $cmplr | grep zeus)" ] ; then
comp_seq='ftn'
comp_mpi='ftn'
fi
_-> you can append or replace comp/link options (example done for pgi on
zeus and datarmor)_
# system-dependant options
if [ ! -z "$(echo $cmplr | grep zeus)" ] ; then
optc="$optc -fastsse"
optl="$optl -fastsse"
elif [ ! -z "$(echo $cmplr | grep datarmor)" ] ; then
optc="$(echo $optc | sed 's/O3/O2/')"
optl="$optl"
else
optc="$optc"
optl="$optl"
fi
To keep both ways to use the comp/link with ".tmpl" and
".user-defined", you must also update w3_setup with your cluster name :
# 3.c Setup comp & link files
_-> add a line with your cluster name for comp and link sections
(example done for all compilers for zeus and datarmor)_
[ "$cmplr" == "datarmor_intel" ] || [ "$cmplr" ==
"datarmor_intel_debug" ] || \
I'll be happy to help if you face troubles to do it.
Mickael
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mickael Accensi
Ifremer, Laboratoire d'Océanographie Physique et Spatiale,
UMR6523 Ifremer/CNRS/UBO/IRD
Z.I. Pointe du Diable, CS 10070, 29280 PLOUZANE, FRANCE
Office : 231-01-17
Phone: +33 (0)2 98 22 49 37
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.lstsrv.ncep.noaa.gov/pipermail/ncep.list.wwatch3.discussion-group/attachments/20180926/67af2d02/attachment.html
More information about the Ncep.list.wwatch3.discussion-group
mailing list