[ncl-talk] Sub: Regrid error..

Laura Fowler laura at ucar.edu
Mon Nov 6 15:26:24 MST 2017


Hi Dale:

I encountered the same kind of segmentation fault when using ncl/6.4.0
compiled with the intel compiler. I addressed this issue to ncl-talk
on October 25th. Note that my settings were different and I was not
using Opt at DstRegional = True.

Mary Haley suggested to use ncl/6.4.0 compiled with the gnu compiler.
Changing compilers solved the issue I had with the "segmentation
fault". I am forwarding you her reply separately. You may be
encountering the same issue too. Hope this helps.

Cheers,
Laura




On Mon, Nov 6, 2017 at 2:59 PM, dale zuri <dalezuri at gmail.com> wrote:
> Hi NCL community,
> Could someone help me understand segmentation fault error?
>
> Thanks
> DZ
> begin
> ;;;;;;;;;;;;;;;;;ERA;;;;;;;;;;;;;;;;;;;;;;;;;;;
>   iz = addfile("psa_mask_cfsv2.nc","r")
> P1=iz->mask
>   ds = addfile("nlwrs.sfc.gauss.1948.nc","r")
>   p = ds->nlwrs
>   printVarSummary(p)
> ;****************************************************
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;--Set up regridding options
>     Opt                   = True
>
> ;---"bilinear" is the default. "patch" and "conserve" are other options.
> ;    Opt at InterpMethod      = "neareststod"        ;;---Change (maybe)
>
>
>     Opt at SrcGridLat        = P1&lat       ; source grid
>     Opt at SrcGridLon        =P1&lon
>  Opt at SrcGridType    = "0.93deg"
>   Opt at DstGridLat        = p&lat           ; destination grid
>     Opt at DstGridLon        =p&lon
>     Opt at DstRegional       = True              ;;--Change (maybe)
>
>     Opt at ForceOverwrite    = True
>     Opt at PrintTimings      = True
>     Opt at Debug             = True
>
>
>     P = ESMF_regrid(p,Opt)     ; Do the regridding
>
> end
>
> ERROR I get:
>
> (0)    ESMF_regrid_with_weights: retrieving interpolation weights ...
> (0)    ESMF_regrid_with_weights: calling sparse_matrix_mult to apply
> weights...
> Segmentation fault (core dumped)
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>



-- 
!-------------------------------------------------------------------------------------------------------------
Laura D. Fowler
Mesoscale and Microscale Meteorology Division (MMM)
National Center for Atmospheric Research
P.O. Box 3000, Boulder CO 80307-3000

e-mail: laura at ucar.edu
phone: 303-497-1628

!-------------------------------------------------------------------------------------------------------------


More information about the ncl-talk mailing list