Skip to content
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

NaN from WWM #151

Open
EmilioEchevarria opened this issue Nov 7, 2024 · 7 comments
Open

NaN from WWM #151

EmilioEchevarria opened this issue Nov 7, 2024 · 7 comments

Comments

@EmilioEchevarria
Copy link

Hi all,

I've been running some SCHISM-WWMIII simulations using spectral wave boundary conditions. I'm now trying a different wave bnd conditions file, created reconstructing the wave spectra from integrated parameters. I keep getting this error:

26: ABORT: NaN from WWM: 11983.4101562500 NaN NaN

Anyone know why am I getting this or how to fix it? I spent the past couple of days inspecting and playing around with the wave bnd conditions file, and I can't see anything wrong with it... Obviously there are not NaN or Inf values in it. msc(2) and mdc(2) match the number of frequencies and directions in the file. The spectra look reasonable to me, and similar to those I was getting when using the previous wave bnd file.

Any help will be greatly appreciated!

Cheers,
Emilio

@Yanjiao-Li
Copy link

Hi!

I'm having the same problem as you, can you please solve it? This question has been bothering me for months.

Thank you very much for your answer!❤

Best regards
Yanjiao

@josephzhang8
Copy link
Member

If the run crashes at the start, it may be because you need to remove fort.* in the dir where hgrid.gr3 is. I've added this in the manual.

@Yanjiao-Li
Copy link

Thank you very much for your answer!

But after I removed it, it still shows sum2 as the NaN value, is there any other reasons?

And when I change the icou_elfe_wwm to 2 (elevation and currents in wwm, no wave force in SCHISM), the model can be calculated.

For the WWM module, I'm only given these three mandatory files: wwminput.nml, wwmbnd.gr3, hgrid_WWM.gr3.

Best regards

@Yanjiao-Li
Copy link

Uploading 1.jpg…

@josephzhang8
Copy link
Member

Unfortunately, the reason may be diverse, all related to your WWM setup.

@EmilioEchevarria
Copy link
Author

Hi @Yanjiao-Li maybe this is helpful? Also, I imagine the wave boundary conditions file (FILEWAVE) should have a specific order of dimensions (e.g., time, station, frequency, direction)?

@josephzhang8
Copy link
Member

Thx @EmilioEchevarria. If your case can run without error with the fix, you can issue a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants