unable to output time-averaged terms in the avg.nc file

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
xuyi

unable to output time-averaged terms in the avg.nc file

#1 Unread post by xuyi »

Hi, I am using ROMS version 456M. I have a problem to output time-averaged terms in the avg.nc. like Huon, Hvom and quadratic terms.


In my cppdef.h file

# define AVERAGES
# define AVERAGES_FLUXES
# define AVERAGEs_QUADRATIC
# undef AVERAGES_AKV /* save for offline 1D bio model testing */
# undef AVERAGES_AKT /* save for offline 1D bio model testing */
# undef AVERAGES_AKS
# define DIAGNOSTICS_TS /* for shelf-wide temp/salt budget calculations */
# define DIAGNOSTICS_UV /* for shelf-wide momentum budget calculations */

In the ocean.in file
Aout(idHUav) == T ! u-volume flux, Huon
Aout(idHVav) == T ! v-volume flux, Hvom
Aout(idUUav) == T ! quadratic <u*u> term
Aout(idUVav) == T ! quadratic <u*v> term

Can someone help me? :(

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

Re: unable to output time-averaged terms in the avg.nc file

#2 Unread post by kate »

Since the ROMS source is at 653 I would recommend that you start by updating to the latest and trying again. There have been changes made to that part of the code.

feroda

Re: unable to output time-averaged terms in the avg.nc file

#3 Unread post by feroda »

Hi Kate,

By using the latest version of ROMS source, version 653, I also ran into a similar situation being not able to create the average NetCDF output file. Any comments on the potential reasons?

Thank
Attachments
avg_error.png

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

Re: unable to output time-averaged terms in the avg.nc file

#4 Unread post by kate »

There's more than one way to get a seg fault. The first thing I would do is recompile with USE_DEBUG and maybe you'll get more information out than all those "Unknown" statements. The second thing I would do is run it in a debugger - debugging is relatively easy when it blows up right at the start.

tony1230
Posts: 87
Joined: Wed Mar 31, 2010 3:29 pm
Location: SKLEC,ECNU,Shanghai,China

Re: unable to output time-averaged terms in the avg.nc file

#5 Unread post by tony1230 »

Hi Kate

I have run into this before, and i do did as you suggested here, but the question is when i turn on the DEBUG the model run smoothly. So, there is nothing message can be follow. It is so tricky. What can i do if this happen again when i need the AVERAGE results.

- Shou

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

Re: unable to output time-averaged terms in the avg.nc file

#6 Unread post by kate »

I hate when that happens. I guess that leaves adding print statements to figure out what's going on.

Post Reply