I have been running a WET_DRY case for a while but,
when I tried to use AVERAGES_DETIDE option,
the compiler complained about the GRID structure in the file
set_avg.f90
within the subroutine
set_detide_tile
sending me several error messages.
I took a look into the file
~ROMS/Nonlinear/set_avg.F
and found that the lines includng GRID structure calls
are only included when the WET_DRY option is used,
but the mod_grid is not declared in the set_detide_tile subroutine.
I added the lines
-------------------
# ifdef WET_DRY
USE mod_grid
# endif
-------------------
at the beginning of the set_detide_tile subroutine
and this seemed to fix the problem.
BUUT NOOO!
Well,
It seems that my small code addition (above) did not solve the full problem.
As I said above, my modification allowed me to compile the code without errors.
But, after running it I found the following running error:
--------------------------------------------------
DEF_VAR - unable to define variable: ubar_tide
in NetCDF file: ./Data/CollierBay_Tides-IOAtlasNetCDF_ESTUARIESwPOOLS_FRC.nc
ROMS/TOMS - Output error ............ exit_flag: 3
ERROR: Abnormal termination: NetCDF OUTPUT.
REASON: NetCDF: Invalid dimension ID or name
--------------------------------------------------
That ..._FRC.nc file is my tidal forcing file,
which as I told you works pretty well for a simulation without the AVERAGES_DETIDE option.
Any idea of how to use AVERAGES_DETIDE with WET_DRY then?
Cheers,
Alexis Espinosa
UWA
WET_DRY and AVERAGES_DETIDE options fail to compile together
-
- Posts: 23
- Joined: Fri May 24, 2013 3:05 am
- Location: UWA
WET_DRY and AVERAGES_DETIDE options fail to compile together
Last edited by AlexisEspinosa on Tue May 13, 2014 8:32 am, edited 1 time in total.
Re: WET_DRY and AVERAGES_DETIDE options fail to compile toge
Your second problem has nothing to do with WET_DRY, just simply AVERAGES_DETIDE. Look through ROMS/Utility/def_tides.F to see what it is doing and compare that with your existing tidal file. Which dimensions are defined already? It is assuming that you have the u/v dimensions already.
-
- Posts: 23
- Joined: Fri May 24, 2013 3:05 am
- Location: UWA
Re: WET_DRY and AVERAGES_DETIDE options fail to compile toge
Thanks for the reply.
Yes, the second problem had to do with the forcing file as suggested by Kate
and by Wilkin here:
viewtopic.php?f=14&t=1370
In my case I also needed to add the dimensions
xi_u, eta_u, xi_v and eta_v
which were not being included in my previous forcing file.
But anyway, the first bug was still a bug (see the first part of the initial post).
Please correct the
set_avg.F
file.
Thanks a lot.
ALexis Espinosa
UWA
Yes, the second problem had to do with the forcing file as suggested by Kate
and by Wilkin here:
viewtopic.php?f=14&t=1370
In my case I also needed to add the dimensions
xi_u, eta_u, xi_v and eta_v
which were not being included in my previous forcing file.
But anyway, the first bug was still a bug (see the first part of the initial post).
Please correct the
set_avg.F
file.
Thanks a lot.
ALexis Espinosa
UWA
-
- Posts: 23
- Joined: Fri May 24, 2013 3:05 am
- Location: UWA
Re: WET_DRY and AVERAGES_DETIDE options fail to compile toge
I have just downloaded ROMS 3.7 revision 737 (today 11 August 2014) and the compilation problem using WET_DRY and AVERAGES_DETIDE options together has not been solved.
The solution is very simple:
1)Edit the file set_avg.F
2)Add the usage of "mod_grid" module in the "set_detide_tile" subroutine as in the other subroutines in that file. SO, just add:
# ifdef WET_DRY
USE mod_grid
# endif
But it would be nice if this correction is added to ROMS files in the repository.
Cheers,
Alexis
PS. I posted a bug ticket.
https://www.myroms.org/projects/src/ticket/644
The solution is very simple:
1)Edit the file set_avg.F
2)Add the usage of "mod_grid" module in the "set_detide_tile" subroutine as in the other subroutines in that file. SO, just add:
# ifdef WET_DRY
USE mod_grid
# endif
But it would be nice if this correction is added to ROMS files in the repository.
Cheers,
Alexis
PS. I posted a bug ticket.
https://www.myroms.org/projects/src/ticket/644