Re: strange linux error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri, 16 Mar 2007 14:11:51 -0600 (MDT)

All,

The problem here turned out to be an optimization problem with gcc
version 4 on a Linux system. Once I turned off optimization when
compiling a particular C file, the problem went away.

A work-around, meanwhile, is to take all the arrays being
passed to NhlNewMarker, assign them each to an individual
NCL variable, and then pass those variables to NhlNewMarker:

letters = (/"u","u","u"/)
fnums = (/34,34,34/)
xoff = (/0.0,0.0,0.0/)
yoff = (/0.0,0.0,0.0/)
ratio = (/1.0,1.0,1.0/)
size = (/1.0,1.0,1.0/)
angle = (/0,180,90/)

new_markers = NhlNewMarker(wks,letters,fnums,xoff,yoff,ratio,size,angle)

--Mary

On Fri, 16 Mar 2007, ozan mert gokturk wrote:

> Hi All,
>
> I have an NCL code, and can get it to execute normally on my Mac. However, the
> same code gives an error when I run it on my linux machine, on the line where
> the function NhlNewMarker resides. Did you have any problem like this before? I
> have exactly the same code and data set.
>
> My error is:
>
> fatal:Execute: Error occurred at or near line 253 in file MK_VE_HARITA.ncl
>
> without any explanation of the error.
>
> And that line 253 is:
>
> new_markers =
> NhlNewMarker(haritayeri,(/"u","u","u"/),(/34,34,34/),(/0.0,0.0,0.0/),(/0.0,0.0,0.0/),(/1.0,1.0,1.0/),(/1.0,1.0,1.0/),(/0,180,90/))
>
> I really do not have a clue! When I remove the line with NhlNewMarker function
> and run the code again, no error is generated!
>
> Thanks in advance.
>
> -Ozan
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 16 2007 - 14:11:51 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 19 2007 - 08:45:25 MDT