<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi all,</p>
    <p><br>
    </p>
    <p>Here is a quick mail to explain how the new template is working
      for comp/link on WW3</p>
    <p><br>
    </p>
    <p>There is a new comp and link file that should be the only one
      remaining for the public release :</p>
    <p><b> comp.tmpl</b> and <b>link.tmpl</b></p>
    <p><br>
    </p>
    <p>using this compiler environment will create the .out and.err in
      tmp directory to easily find the errors and warnings.</p>
    <p><br>
    </p>
    <p><u>How to use it with w3_setup:</u><br>
    </p>
    <p>*common compiler available : mpt, intel, gnu, pgi</p>
    <p>*additional debug sufix    : _debug</p>
    <p>*additional cluster prefix : zeus_ and datarmor_</p>
    <p><br>
    </p>
    <p><u>examples : </u><br>
    </p>
    <p>w3_setup .. -c <b>mpt </b><br>
    </p>
    <p>w3_setup .. -c <b>intel</b></p>
    <p>w3_setup .. -c <b>pgi</b></p>
    <p>w3_setup .. -c <b>gnu</b></p>
    <p># add suffix to enable <b>debugging options</b> (available for
      mpt/intel/gnu/pgi compilers)<br>
    </p>
    <p>w3_setup .. -c mpt<b>_debug</b></p>
    <p># add prefix to enable <b>cluster specific options</b> (done for
      datarmor and zeus)<br>
    </p>
    <p>w3_setup .. -c <b>datarmor_</b>mpt_debug<br>
    </p>
    <p><br>
    </p>
    <p>As it's a transitional way of do, it is highly recommended <br>
      to all the partners to try it and if needed add their own <br>
      cluster specific options.</p>
    <p>To do it, just compile and run ww3 using the comp option mpt,
      intel, pgi or gnu depending on your usual compiler.</p>
    <p>if it's not working or if results are different, you will need to
      edit <b>cmplr.env</b> in model/bin directory</p>
    <p><u>-&gt; you can overwrite the compiler to use (example done for
        pgi on zeus)</u></p>
    <p>  # zeus compiler<br>
        if [ ! -z "$(echo $cmplr | grep zeus)" ] ; then<br>
          comp_seq='ftn'<br>
          comp_mpi='ftn'<br>
        fi<br>
    </p>
    <p><br>
    </p>
    <p><u>-&gt; you can append or replace comp/link options (example
        done for pgi on zeus and datarmor)</u><br>
    </p>
    <p>  # system-dependant options<br>
        if [ ! -z "$(echo $cmplr | grep zeus)" ] ; then<br>
          optc="$optc -fastsse"<br>
          optl="$optl -fastsse"<br>
        elif [ ! -z "$(echo $cmplr | grep datarmor)" ] ; then<br>
          optc="$(echo $optc | sed 's/O3/O2/')"<br>
          optl="$optl"<br>
        else<br>
          optc="$optc"<br>
          optl="$optl"<br>
        fi<br>
      <br>
    </p>
    <p>To keep both ways to use the comp/link with  ".tmpl" and
      ".user-defined", you must also update w3_setup with your cluster
      name :<br>
    </p>
    <p># 3.c Setup comp &amp; link files</p>
    <p><u>-&gt; add a line with your cluster name for comp and link
        sections (example done for all compilers for zeus and datarmor)</u><br>
    </p>
    <p>       [ "$cmplr" == "datarmor_intel" ] || [ "$cmplr" ==
      "datarmor_intel_debug" ]   || \<br>
      <br>
    </p>
    <br>
    <br>
    I'll be happy to help if you face troubles to do it.<br>
    <br>
    Mickael<br>
    <br>
    <p><br>
    </p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</pre>
  </body>
</html>