Re: Storm trak problems

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 12 Nov 2007 08:16:35 -0700 (MST)

Hi Carl,

I think this example needs to be updated, because it shouldn't need
the *.so file anymore, and hence you don't need to run WRAPIT.

Try editing this example, and changing the lines:

load "wrf_user_mass.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"

to:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

The functions from "wrf_user_mass.ncl" are now in the
"WRF_UserARW.ncl" file, which is included with the 5.0.0
distribution. This file doesn't have any shared object dependencies.

I'll fix the example on the web.

--Mary

On Sun, 11 Nov 2007, eddycarl wrote:

> Hi there,
>
> I wish to use NCL version 5.0.0 to plot storm track based on WRF arw model output. I followed the instruction on the following address: http://www.ncl.ucar.edu/Applications/wrftrack.shtml . However, when I run:
>
> WRAPIT wrf_user_fortran_util_0.f
>
> It promped:
>
> WRAPIT Version: 051007
> COMPILING wrf_user_fortran_util_0.f
> LINKING
> /usr/bin/ld: cannot find -lg2c
> collect2: ld returned 1 exit status
> END WRAPIT
>
>
> The "wrf_user_fortran_util_0.so" file is not generated.
>
> When I specified "-pg" to use pgi compiler, the problem is:
>
> WRAPIT Version: 051007
> /usr/local/pgi51/linux86-64/5.1/bin/pgf90
> COMPILING wrf_user_fortran_util_0.f
> LINKING
> /usr/bin/ld: WRAPIT.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> WRAPIT.o: could not read symbols: Bad value
> END WRAPIT
>
> Then I recompiled with "-fPIC" as instructed, the .so file was generated. But when I run the ncl WRF_track_1.ncl file, the problem came out:
>
> ncl: Symbol `exit' causes overflow in R_X86_64_PC32 relocation
> ncl: Symbol `_setjmp' causes overflow in R_X86_64_PC32 relocation
> warning:An error occurred loading the external file ./wrf_user_fortran_util_0.so, file not loaded
> /usr/local/pgi51/linux86-64/5.1/libso/libpgc.so: cannot restore segment prot after reloc: Permission denied
> warning:error at line 1 in file wrf_user_mass.ncl
>
>
> Does anyone know what I shall do to settle this problem? Thanks.
> (In addition, my Linux version is Redhat Enterprise Linux 5, and I have pgi fortran compiler.)
>
>
> Regards,
> Carl
>
>
>
>
>
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 12 2007 - 08:16:35 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 12 2007 - 09:17:56 MST