Re: System Command Not Executing

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 04 2012 - 07:41:18 MDT

Hi Michael,

Out of curiosity, do the date commands show up if you free some of the arrays?

That is, if you add a delete command:

maxt=new((/365*nyr+5,302,121/),float)
mint=new((/365*nyr+5,302,121/),float)
pcp=new((/365*nyr+5,302,121/),float)

system("date")

delete(maxt) ; or, if you have V6.0.0, delete([/maxt,mint,pcp/])
delete(mint)
delete(pcp)

snowd=new((/365*nyr+5,302,121/),float)
swe=new((/365*nyr+5,302,121/),float)

system("date")

---
What kind of system is this on and how much memory do you have?
--Mary
On Sep 3, 2012, at 10:56 PM, Michael Notaro wrote:
> Thanks.  Likely the results depend on the memory of the computer you are using.
> On mine, it doesn't work.
> 
> My script is able to create these large arrays just fine but never executes the system
> commands.  
> 
> 
> 
> 
> On 09/03/12, donna Cote <d-cote@tamu.edu> wrote:
>> Michael, I do not see the same results you seems to be getting. Hope you
>> 
>> [dcote ~]$ ncl michael-test.ncl
>>   Copyright (C) 1995-2011 - All Rights Reserved
>>   University Corporation for Atmospheric Research
>>   NCAR Command Language Version 6.0.0
>>   The use of this software is governed by a License Agreement.
>>   See http://www.ncl.ucar.edu/ for more details.
>> Mon Sep  3 21:03:46 CDT 2012
>> Mon Sep  3 21:04:50 CDT 2012
>> [dcote ~]$
>> 
>> This is what I see after adding these two lines:
>> print("showing system date before creating snowd and swe arrays")
>>   and
>> print("showing system date after creating snowd and swe arrays")
>> 
>> [dcote ~]$ ncl michael-test.ncl
>>   Copyright (C) 1995-2011 - All Rights Reserved
>>   University Corporation for Atmospheric Research
>>   NCAR Command Language Version 6.0.0
>>   The use of this software is governed by a License Agreement.
>>   See http://www.ncl.ucar.edu/ for more details.
>> (0)	showing system date before creating snowd and swe arrays
>> Mon Sep  3 21:08:30 CDT 2012
>> (0)	showing system date after creating snowd and swe arrays
>> Mon Sep  3 21:08:43 CDT 2012
>> [dcote ~]$
>> 
>> On 9/3/12 4:20 PM, ncl-talk-request@ucar.edu wrote:
>> > Date: Mon, 03 Sep 2012 14:27:47 -0500
>> > From: Michael Notaro<mnotaro@wisc.edu>
>> > Subject: System Command Not Executing
>> > To:"ncl-talk@ucar.edu USERS"  <ncl-talk@ucar.edu>
>> > Message-ID:<3795B7DD-89F8-49D1-A935-595C5FABDFA6@wisc.edu>
>> > Content-Type: text/plain; CHARSET=US-ASCII
>> >
>> > When I run the script below, the system command, "date",
>> > is only executed the first time and not the 2nd time.
>> >
>> > It seems when I create large arrays, NCL skips over any
>> > system commands.  Any suggestions how to resolve this issue?
>> >
>> > Michael
>> >
>> >
>> >
>> >
>> >
>> >
>> > 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/csm/shea_util.ncl"
>> > begin
>> >
>> > nyr=20
>> >
>> > maxt=new((/365*nyr+5,302,121/),float)
>> > mint=new((/365*nyr+5,302,121/),float)
>> > pcp=new((/365*nyr+5,302,121/),float)
>> >
>> > system("date")
>> >
>> > snowd=new((/365*nyr+5,302,121/),float)
>> > swe=new((/365*nyr+5,302,121/),float)
>> >
>> > system("date")
>> >
>> > end
>> >
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 4 07:41:44 2012

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2012 - 15:30:42 MDT