<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Mary,<br>
    Just FYI, we have found a solution to this problem.<br>
    Compiling from source was not necessary. Turns out that to run ncl
    on Cray machines, you need the following:<br>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <pre><code>export NCARG_USRRESFILE=$NCARG_ROOT/hluresfile
export MY_TMP=/scratch/y98/julia/tmp
TMPDIR=$MY_TMP aprun -n 1 $NCARG_ROOT/bin/ncl script.ncl</code></pre>
    Not explicitly defining NCAR_USRRESFILE caused the seg fault. <br>
    We got this info from another group which runs ncl on a Cray
    machine:<br>
    <a class="moz-txt-link-freetext" href="http://www.archer.ac.uk/about-archer/software/modcatalogue/ncl/">http://www.archer.ac.uk/about-archer/software/modcatalogue/ncl/</a><br>
    <br>
    This did the trick for us. Might be worth putting this link on NCL
    install web-page if anyone else is running ncl on Cray machines via
    aprun.<br>
    <br>
    Cheers,<br>
    Jatin<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 7/04/2015 10:03 pm, Mary Haley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACNN_C+bDdGQJBBNUG9bVhqb+Gnt7E8EWncpATnZmPb867A_cw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small">Hi,</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">I don't know
          what the "aprun" utility is so I can't help you there.</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">Are you able
          to just run NCL without any scripts?  You can try:</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small"> ncl -V</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">to see if it
          will echo the version number.</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">You can
          probably compile from source code if the Cray if you have
          access to good gcc/gfortran compilers.  However, if it's truly
          Linux, then one of our precompiled Linux binaries should
          work.  Did you try any of the Debian or RedHat ones?</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">--Mary</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Apr 6, 2015 at 8:14 PM, Jatin
          Kala <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:jatin.kala.jk@gmail.com" target="_blank">jatin.kala.jk@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            Does anyone have experience running ncl on a Cray
            supercomputer, using<br>
            the aprun utility?<br>
            <br>
            Some machine details:<br>
            jatinkala@magnus-2:~&gt; uname -a<br>
            Linux magnus-2 3.0.101-0.46-default #1 SMP Wed Dec 17
            11:04:10 UTC 2014<br>
            (8356111) x86_64 x86_64 x86_64 GNU/Linux<br>
            <br>
            jatinkala@magnus-2:~&gt; cat /etc/*-release<br>
            SUSE Linux Enterprise Server 11 (x86_64)<br>
            VERSION = 11<br>
            PATCHLEVEL = 3<br>
            Cluster Manager v6.1<br>
            slave<br>
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"<br>
            <br>
            I installed the SL pre-compiled binary:<br>
            ncl_ncarg-6.2.1.Linux_SL6.5_x86_64_nodap_gcc447.tar.g<br>
            <br>
            A simple print("hello") program is giving us a segmentation
            fault.....<br>
            <br>
            I'm still waiting on the sys admins, but in your opinion,
            does it look<br>
            like we will have to build from source using the Cray C and
            Fortran<br>
            compilers?<br>
            <br>
            Cheers,<br>
            Jatin<br>
            _______________________________________________<br>
            ncl-install mailing list<br>
            List instructions, subscriber options, unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://mailman.ucar.edu/mailman/listinfo/ncl-install"
              target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Jatin Kala
Lecturer in Atmospheric Science
Murdoch University,Perth, Western Australia
Tel: (+618) 9360 6297
<a class="moz-txt-link-freetext" href="http://www.jatinkala.com/">http://www.jatinkala.com/</a>

</pre>
  </body>
</html>