Open chaukap opened 4 years ago
I was unable to get the -i
flag working, so I'll share my progress:
The goal when working between the SOILWAT2 and STEPWAT2 programs is to decouple them as much as possible. Therefore, the less SOILWAT2 knows about gridded mode the better.
To get the -o flag to run in gridded mode I had to "lie" to SOILWAT2 about the number of years we are running in order to make SOILWAT2 allocate enough memory.
The problem with the -i flag also has to do with memory allocation but it seems to be more complicated than the -o flag. The -i flag requires a massive amount of memory compared to normal runs of STEPWAT2, so it is just as likely that you will hit an abort trap
as a seg fault
.
With commit 614b789 the
-o
flag works properly in gridded mode. Now on to the-i
flag.