Segmentation Fault when modifying string variables

From: Jeff <jeffelf_at_nyahnyahspammersnyahnyah>
Date: Fri Jul 30 2010 - 07:20:06 MDT

Hi, Sir/Madam,

I used NCL to modify the variable Time in default WRF/Chem emissions.
I found that since version 5.1.0, it gives segmentation fault.
Below is my script, could you please tell me how should I do it now?

======
                timestamp0 = "2001-01-01_00:00:00"
                timestamp = "2001-01-01_01:00:00"

                fin = "wrfchemi_d01_"+timestamp0
                fon = "wrfchemi_d01_"+timestamp

                system("ln -sf "+fin+" "+fon)

                x = new((/1,19/),character)
                tmp = stringtocharacter(timestamp)
                x(0,:) = tmp(0:dimsizes(tmp)-2)

                f = addfile(fon+".nc","w")
                f->Times = (/x/)

                delete(timestamp)
                delete(timestamp0)
                delete(tmp)
                delete(x)
======

Thanks.
Yaosheng
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jul 30 07:20:11 2010

This archive was generated by hypermail 2.1.8 : Fri Jul 30 2010 - 13:45:56 MDT