Hi everyone, I am trying to setup a shallow water 2D model in idealized setting. I tried using including grid and initial condition from a netcdf file. While my compilation was mostly OK, when running the model I was greeted with an error.
I have followed other discussion on this SIGSEGV Segmentation fault error, But I haven't been able to resolve the issue. I check the mod_ncparam.f90 according to the traceback but I can't figure why the error occur. I was wondering if anyone has encountered this issue and found a way to solve it. I would be glad if someone can help point in direction on how to resolve this problem. I included my cpp header file as well as my .in file to see my simple setup.
! Set IDs for state some state variables.
!
ic=5
DO i=1,MT
ic=ic+1
isTvar(i)=ic
END DO
isWvel=ic+1
I'm not thoroughly sure why such error occur given that I did get to tamper with the mod_ncparams file and my setup seems simple enough. Btw, I'm a beginner with ROMS so I might be missing something.
There are 29 examples cases of idealized and realistic applications in the svn test repository of various complexity. Check wikiROMS for how to access that repository. Then, start from one of the cases. It is what we recommend when you register as a user.
I have come across strange Segmentation fault error (not exactly the same as your traceback messages) and spent a LOT of time on it. Then I realized that it was just due to stack size too small. Try ulimit -s 819200