-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WWM: netCDF defaults cause hotstart problems for large files #86
Comments
@hot007 thank you for the tips. I'm not familiar with IOR(); is it parallel netcdf I/O? In SCHISM like schism_step we allow either nc3 (which has 3GB limit) or netcdf4 classic (more relaxed in file size). We have not tested nc4. j=nf90_create(trim(adjustl(it_char)),OR(NF90_NETCDF4,NF90_CLOBBER),ncid_hot) So your proposed change seems to be safe. I'm curious b/c we have not got hotstart option in WWM to fully work. Could you share your experience and tips? It seems upon hotstart (read from a previous WWM run that outputs hot outputs), the wave fields still start from 0. Thanks. |
IOR is just the bitwise OR. See:
https://github.com/Unidata/netcdf-fortran/blob/main/examples/F90/simple_xy_par_rd.F90
Paul
From: Joseph Zhang ***@***.***>
Sent: Tuesday, 20 September 2022 11:25 PM
To: schism-dev/schism ***@***.***>
Cc: Ryan, Paul (IM&T, Clayton) ***@***.***>; Mention ***@***.***>
Subject: Re: [schism-dev/schism] WWM: netCDF defaults cause hotstart problems for large files (Issue #86)
@hot007<https://github.com/hot007> thank you for the tips. I'm not familiar with IOR(); is it parallel netcdf I/O?
In SCHISM like schism_step we allow either nc3 (which has 3GB limit) or netcdf4 classic (more relaxed in file size). We have not tested nc4.
j=nf90_create(trim(adjustl(it_char)),OR(NF90_NETCDF4,NF90_CLOBBER),ncid_hot)
So your proposed change seems to be safe.
I'm curious b/c we have not got hotstart option in WWM to fully work. Could you share your experience and tips? It seems upon hotstart (read from a previous WWM run that outputs hot outputs), the wave fields still start from 0. Thanks.
—
Reply to this email directly, view it on GitHub<#86 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGWHDXMOVLWZIHVNR5XXXQDV7G3JHANCNFSM6AAAAAAQQ6RF3M>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @josephzhang8 , It may be too early to say the hotstarting "works" now, we'll get back to you on that, but forcing it to use netCDF4 at least stopped the code falling over! Anyway, thanks for flagging that there actually is a known issue with hotstarting, we'll check that the wave field in the hotstart isn't 0's when invoked. |
Hi @josephzhang8, in answer to your question about the WWM hotstart not being picked up (i.e., wave field still starting from 0 even when hotstart turned on), I didn't find that for my runs. Below is a plot of significant wave height (Hs) for the months of January and February using SCHISMv5.9. January (blue line) is run from a cold start, and then I ran February from a cold start (red line; Feb_nohot) and then ran February again using WWM hotstart turned on (black line; Feb_hotstart), and you can see the hotstart was picked up (i.e., the hotstarted February run, shown by the black line, doesn't start from 0). The relevant lines I had were: &HOTFILE |
@VHernaman : I'll test your approach and update the manual if it works. Thanks a bunch! |
I now confirm that the hotstart in WWM works; thx, Vanessa et al.! I'm updating the notes. |
Hi there,
CSIRO folk have been running SCHISM v5.9, but have run into problems when enabling hotstarts in the coupled model.
The model was falling over at the
nf_close
step of writing the hotstart file.Upon investigation, @pryancsiro found that modifying line #756 in
wwm_hotfile.f90
toin other words, forcing it to use the netCDF4 instead of netCDF library defaults (classic), enabled the hotstart file to be written. Our theory is that the file was too big or dimensions in some way incompatible with the netCDF classic model, such that the hotstart file couldn't be written.
So our question is, is there a build flag that allows us to force use of netCDF4 when writing netCDFs?
If not, would it be possible to enable a build or runtime option to select which netCDF format to use, please? (e.g. in WW3 this is a namelist option, though I think netCDF4 may be default now).
thanks
The text was updated successfully, but these errors were encountered: