First of all, I'd like to thank you all for your great efforts. I'm quite new in ROMS and I'm still struggling to make it work, but your forum is a goldmine for hints and tips.
Now, back to the topic. I was trying to run a simulation with "white_noise" on, but it always failed during the run.
The reported error was:
Code: Select all
ERROR IN: .oceanS: munmap_chunk(): invalid pointer: 0x09df2538
The last code was variable, but the error was always the same. Switching off the white noise caused the simulation to run smoothly, so the problem was there.
After some checks, we found the issue: in 'white_noise.f' there was a wrong definition in the 2D routine.
Around line 250 the code was:
Code: Select all
R(Imin:Imax,Jmin:Jmax)
Code: Select all
R(LBi:UBi,LBj:UBj)
What do you think?
Thank you for your time,
Stefano