<div dir="ltr"><div class="gmail_default" style="font-size:small">I am still looking into the seg fault error with the ESMF group. It turns out that the Intel compiler is doing something under the hood that causes numerical problems, and we are having to try different compiler options to fix the problem. Still no luck, but we think we're close.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Meanwhile, since you are setting:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">    Opt@SrcGridLat        = P1&lat       ; source grid</span><br style="font-size:12.8px"><span style="font-size:12.8px">    Opt@SrcGridLon        =P1&lon</span><br></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">You do not also want to set this, as it might confuse the issue:</span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><div class="gmail_default" style="font-size:small"> Opt@SrcGridType    = "0.93deg"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If this doesn't fix the problem, or using a GNU version of NCL/ESMF doesn't work either, then please email <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a> and let us know.  I may email you offline to ask if I can have access to your files.  </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Are your variables large by any chance?  That is, what does the following output produce?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><span style="font-size:12.8px">  printVarSummary(P1)</span><br style="font-size:12.8px"><span style="font-size:12.8px">  printVarSummary(p)</span><br></div><div style="font-size:small"><br></div><div style="font-size:small">--Mary</div><div style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 6, 2017 at 3:26 PM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dale:<br>
<br>
I encountered the same kind of segmentation fault when using ncl/6.4.0<br>
compiled with the intel compiler. I addressed this issue to ncl-talk<br>
on October 25th. Note that my settings were different and I was not<br>
using Opt@DstRegional = True.<br>
<br>
Mary Haley suggested to use ncl/6.4.0 compiled with the gnu compiler.<br>
Changing compilers solved the issue I had with the "segmentation<br>
fault". I am forwarding you her reply separately. You may be<br>
encountering the same issue too. Hope this helps.<br>
<br>
Cheers,<br>
Laura<br>
<div><div class="h5"><br>
<br>
<br>
<br>
On Mon, Nov 6, 2017 at 2:59 PM, dale zuri <<a href="mailto:dalezuri@gmail.com">dalezuri@gmail.com</a>> wrote:<br>
> Hi NCL community,<br>
> Could someone help me understand segmentation fault error?<br>
><br>
> Thanks<br>
> DZ<br>
> begin<br>
> ;;;;;;;;;;;;;;;;;ERA;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;<br>
>   iz = addfile("<a href="http://psa_mask_cfsv2.nc" rel="noreferrer" target="_blank">psa_mask_cfsv2.nc</a>","<wbr>r")<br>
> P1=iz->mask<br>
>   ds = addfile("<a href="http://nlwrs.sfc.gauss.1948.nc" rel="noreferrer" target="_blank">nlwrs.sfc.gauss.1948.<wbr>nc</a>","r")<br>
>   p = ds->nlwrs<br>
>   printVarSummary(p)<br>
> ;*****************************<wbr>***********************<br>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
> ;--Set up regridding options<br>
>     Opt                   = True<br>
><br>
> ;---"bilinear" is the default. "patch" and "conserve" are other options.<br>
> ;    Opt@InterpMethod      = "neareststod"        ;;---Change (maybe)<br>
><br>
><br>
>     Opt@SrcGridLat        = P1&lat       ; source grid<br>
>     Opt@SrcGridLon        =P1&lon<br>
>  Opt@SrcGridType    = "0.93deg"<br>
>   Opt@DstGridLat        = p&lat           ; destination grid<br>
>     Opt@DstGridLon        =p&lon<br>
>     Opt@DstRegional       = True              ;;--Change (maybe)<br>
><br>
>     Opt@ForceOverwrite    = True<br>
>     Opt@PrintTimings      = True<br>
>     Opt@Debug             = True<br>
><br>
><br>
>     P = ESMF_regrid(p,Opt)     ; Do the regridding<br>
><br>
> end<br>
><br>
> ERROR I get:<br>
><br>
> (0)    ESMF_regrid_with_weights: retrieving interpolation weights ...<br>
> (0)    ESMF_regrid_with_weights: calling sparse_matrix_mult to apply<br>
> weights...<br>
> Segmentation fault (core dumped)<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
><br>
<br>
<br>
<br>
--<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>