Hello!
We use a grid generated with 'Roms Tools', and we changed the code in the m-files to have constant, user defined coriolis acceleration. Everytime we make a run with different f we have to generate a new grid, although the rest is the same as before.
Is there an easy way to analytically define f while using a netcdf-grid file for bathymetry?
Thanks in advance,
--Stefan
analytical coriolis with netcdf bathymetry
This shouldn't be too hard. You want it to call get_grid, then ana_grid, where ana_grid only sets the coriolis (ana_cor, perhaps). Search for where get_grid is called and call the ana routine there. Copy ana_grid to your new routine and change it to only set f, putting this file in User/Functionals or wherever you put such stuff. If you come up with a new ana_ name, you will have to tell analytical.F about it.
To be really complete, a new ana_ name will require a new value in the ANANAME array, currently dimensioned 37, where there is a literal 37 in three different files.
To be really complete, a new ana_ name will require a new value in the ANANAME array, currently dimensioned 37, where there is a literal 37 in three different files.