Out of Memory

new topic     » topic index » view thread      » older message » newer message

Hi

I've made a sequence like this:

atom ph,pw
ph=1250
pw=1750

global sequence ps
ps=repeat(repeat(250,ph),pw)

No problem.

But when I run the following procedure, eventually the program crashes with
an "out of memory" error.

If I make ph and pw larger, then the program still initializes, but it
crashes sooner in the procedure.

global procedure Directfield(sequence poles)
sequence Field, row, loca
loca={{},{}}
    for j=1 to ph do
        for i=1 to pw do
        outahere()
         loca[x]=i
         loca[y]=j
         Field=Measure_field_at(loca, poles)
         ps[i][j]=strange(Degree(Aangle(Field[x], Field[y])), numcolours,
360) -- evaluates to an atom
        end for
    end for
end procedure

Kat mentioned a while ago that each sequence element takes 4 bytes. My 1250
x 1750 sequence would only have about 8,750,000 bytes by that measure. My
system has 64mb ram. So why the memory error?
Thanks
Bye
Martin Hunt

simulat at intergate.bc.ca

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu