gher-uliege / DIVAnd.jl

DIVAnd performs an n-dimensional variational analysis of arbitrarily located observations
GNU General Public License v2.0
70 stars 11 forks source link

OutOfMemoryError() error in Black Sea product #110

Closed ctroupin closed 1 year ago

ctroupin commented 1 year ago

error ✉️ from a user:

I try to run divand for all seasons, and I got an error: OutOfMemoryError()

Variable : Water body dissolved oxygen concentration

dx=dy=0.01
lonr=26.5:dx:42 # Black Sea + Marmara
latr=40:dy:48
monthlists = [[12,1,2],[3,4,5],[6,7,8],[9,10,11]]
year_start=1970:2016
year_window = 6
depthr = [0.,5.,10.,20.,30.,40., 50.,75.,100.,125.,150., 200.,250.];
lenxym = fill(96000.,(length(depthr),4))
lenz = fill(100.,(length(depthr),4)) 

I increase the value of memtofit from 100 to 1000, but no change.

My machine:

Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz   2.90 GHz
RAM: 16 GB
jmbeckers commented 1 year ago

depthr = [[0.,5.,10.,20.,30.,40., 50.,75.,100.,125.,150).,200.,250.];

Is this really coming from the actual code or just a cut/paste problem? Clearly depthr defined in this way cannot be correct

ctroupin commented 1 year ago

Clearly an issue in the copy/paste (the list was somehow interpreted as a phone number and some "call to" text came in the copied text).

EDIT: Suggestion 1: try to run the code with a lower spatial resolution.

ctroupin commented 1 year ago

OK so just reducing the resolution is sufficient. I'll add text in the doc to use a resolution depending on the domain