Error while executing Fjord Tidal Case

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
aakashsane
Posts: 14
Joined: Tue Sep 19, 2017 2:14 pm
Location: Brown University

Error while executing Fjord Tidal Case

#1 Unread post by aakashsane »

Hi All,

I am new to ROMS and I am trying to get my hands "wet" with it.

I am trying to run the Fjord Tidal Case given here:
https://www.myroms.org/wiki/FJORD_TIDAL_CASE

Although I have the oceanS (or oceanG) file, after issuing the ./oceanG < ocean_fjord.in command,

I get the following error:
_______________________________________________________________
Process Information:

Thread # 0 (pid= 60079) is active.

INITIAL: Configuring and initializing forward nonlinear model ...
*******

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x10cfe5e26
#1 0x10cfe55ec
#2 0x7fff99393b39
#3 0x109eaa48c
#4 0x109bf328c
#5 0x109c1893d
#6 0x109c15d2f
#7 0x109564815
#8 0x10987c437
#9 0x1094b71e3
#10 0x1094b606c
#11 0x1094b6275
Segmentation fault: 11
__________________________________

I have attached the complete output in a text file.
error.txt
Complete output along with the segmentation error.
(10.67 KiB) Downloaded 293 times
Any help will be appreciated.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error while executing Fjord Tidal Case

#2 Unread post by kate »

If you run oceanG instead of oceanS, you should be getting line numbers in your traceback report. Can you show us that instead of the hex output?

aakashsane
Posts: 14
Joined: Tue Sep 19, 2017 2:14 pm
Location: Brown University

Re: Error while executing Fjord Tidal Case

#3 Unread post by aakashsane »

Hi Kate,

I deleted the Build directory and oceanG file and built it from fresh.
Now after running ./oceanG < ocean_fjord.in I did not get a segmentation fault but I got a new error:

_______________________________________
*******

NETCDF_CHECK_DIM - inconsistent size of dimension: xi_rho 92 152
in file: /Users/aakash/Documents/MATLAB/Fjord_grd.nc
Found Error: 02 Line: 78 Source: ROMS/Utility/get_grid.F
Found Error: 02 Line: 271 Source: ROMS/Nonlinear/initial.F
Found Error: 02 Line: 188 Source: ROMS/Drivers/nl_ocean.h

Elapsed CPU time (seconds):

Thread # 0 CPU: 0.132
Total: 0.132

Nonlinear model elapsed CPU time profile, Grid: 01

Allocation and array initialization .............. 0.131 (99.0125 %)
Total: 0.131 99.0125

Unique code regions profiled ..................... 0.131 99.0125 %
Residual, non-profiled code ...................... 0.001 0.9875 %


All percentages are with respect to total time = 0.132


ROMS/TOMS - Output NetCDF summary for Grid 01:
Found Error: 02 Line: 350 Source: ROMS/Utility/close_io.F

ROMS/TOMS - Input error ............. exit_flag: 2


ERROR: Abnormal termination: NetCDF INPUT.
REASON: No error
_______________________________________________________

The dimension of xi_rho in the grid file is 92 but I don't know what 152 stands for.
Any suggestions? Thanks for your time.

The complete output is in text file:
error.txt
Complete output file.
(11.62 KiB) Downloaded 307 times
I can attach more files if required.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error while executing Fjord Tidal Case

#4 Unread post by kate »

The 152 comes from Lm in the ocean.in file, which you have apparently set to 150. The dimension should be Lm+2. Here's your Lm, Mm:
Resolution, Grid 01: 0150x0090x020, Parallel Threads: 1, Tiling: 001x004

aakashsane
Posts: 14
Joined: Tue Sep 19, 2017 2:14 pm
Location: Brown University

Re: Error while executing Fjord Tidal Case

#5 Unread post by aakashsane »

Hi Kate,

I changed the Lm and Mm as per my grid file and the issue was resolved.
Now the Fjord tidal case is running without any errors.

I guess the lesson I learned is that when the grid is analytical grid, Lm and Mm can be changed in the input file but when external grid file is being called then Lm and Mm have to be appropriate as per the grid.

Thanks for helping out.

Best,
Aakash

Post Reply