"exceeds dimension bound" error solved

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
xupeng66
Posts: 79
Joined: Sat Mar 06, 2010 3:38 pm
Location: University of Washington

"exceeds dimension bound" error solved

#1 Unread post by xupeng66 »

Hi All,

I managed to solve the "exceeds dimension bound" error mentioned in my previous post by switching the dimension order of the variables (e.g., x_rho) in my grid file from (eta_rho,xi_rho) to (xi_rho,eta_rho). I am wondering if this means ROMS actually requires a fixed dimension order: (xi,eta) when using Matlab/Fortran to produce the grid file and (eta,xi) when using C to produce the grid file.

Any thoughts on this will be much appreciated.

Cheers,

Guangyu

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

Re: "exceeds dimension bound" error solved

#2 Unread post by kate »

Yes, that would be the case. In your post it wasn't clear which language you were referring to.

xupeng66
Posts: 79
Joined: Sat Mar 06, 2010 3:38 pm
Location: University of Washington

Re: "exceeds dimension bound" error solved

#3 Unread post by xupeng66 »

I use Matlab so I guess the dimensional order of the grid variables has to be (xi, eta).

Post Reply