[Thread Prev][Thread Next][Index]

Re: [ferret_users] ,return=lend and constants



Hi Ryo,
                  I had similar experience, what I do as a solution is to use the input variable with a limited dimension to get the lend or tend
in this case I will do the below to avoid this issue which ideally should not have been there.
let lmax=`temp[i=1,j=1],r=lend`
or below also may work fast
let lmax=`den1[i=1,j=1],r=lend`

In your case ferret tries to compute density, which may be beyond its set memory limit
with best regards,
Sudheer 

On Thu, Oct 18, 2012 at 7:25 AM, Ryo Furue <furue@xxxxxxxxxx> wrote:
Ferret users,

Has anybody seen this behavior? Is this a bug?  Basically,
"return=lend" tries to allocate a lot of memory in some cases.

yes? set data bug.nc
yes? let refp = 0
yes? let den1 = RHO_UN(salt,temp,0)    !! Good
yes? let den2 = RHO_UN(salt,temp,refp) !! Bad
yes? say `den1,return=lend`
 !-> MESSAGE/CONTINUE 2
2
yes? say `den2,return=lend`
 **ERROR: request exceeds memory setting: 10 Mwords were requested.
[ . . . remaining error messages elided . . .]

The dataset bug.nc contains salt(i,j,k,l) and temp(i,j,k,l)
with l = 1:2.  I'm attaching the results of "show grid" below.

If you are interested and you cannot reproduce this error,
I'll send the dataset to you.

I'm currently using
FERRET v6.81 Linux 2.6.32-279.1.1.el6.x86_64 32-bit - 07/23/12

The same script didn't cause this error some versions ago.

Regards,
Ryo
--------------------------------
yes? show grid den1
    GRID GCF1
 name       axis              # pts   start                end
 LONGITUDE_T LONGITUDE        564mr   104.17E(104.17)      68.167W(291.83)
 LATITUDE_T LATITUDE          168 r   25.833S              29.833N
 DEPTH_T   DEPTH (m)           51 i-  2.5                  5745
 TIME1     TIME                 2 r   21-JAN-2031 00:00    01-FEB-2031 00:00
 normal    E
 normal    F
yes? show grid den2
    GRID (G002)
 name       axis              # pts   start                end
 LONGITUDE_T LONGITUDE        564mr   104.17E(104.17)      68.167W(291.83)
 LATITUDE_T LATITUDE          168 r   25.833S              29.833N
 DEPTH_T   DEPTH (m)           51 i-  2.5                  5745
 TIME1     TIME                 2 r   21-JAN-2031 00:00    01-FEB-2031 00:00
 ABSTRACT  E              9999999 r   1                    9999999
 ABSTRACT  F              9999999 r   1                    9999999



--
with best regards

Sudheer

**********************************************************************************
Dr. Sudheer Joseph                                                                
Scientist - E                                                                          
INDIAN NATIONAL CENTRE FOR OCEAN INFORMATION SERVICES (INCOIS)
MINISTRY OF EARTH SCIENCES, GOVERNMENT OF INDIA
"OCEAN VALLEY" PRAGATHI NAGAR (BO)
OPP.JNTU, NIZAMPET SO
Andhra Pradesh, India. PIN- 500 090.
TEl:+91-40-23044600(R),Tel:+91-9440832534(Mobile)
Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail: sudheer.joseph@xxxxxxxxx;  sjo@xxxxxxxxxxxxx.
Web- http://oppamthadathil.tripod.com
           --------------* ---------------
"The ultimate measure of a man is
not where he stands in moments of
comfort and convenience, but where
he stands at times of challenge and
controversy."
                        Martin Luther King, Jr.
"What we have done for ourselves alone dies with us.
What we have done for others and the world remains and is immortal."
- Albert Pines

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement