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

Add warning flag for mismatched options? #11

Open
amanchoudhri opened this issue Dec 11, 2024 · 0 comments
Open

Add warning flag for mismatched options? #11

amanchoudhri opened this issue Dec 11, 2024 · 0 comments

Comments

@amanchoudhri
Copy link

If the user supplies inflow files with flag iin=3 but does not update itype to 3, the code fails silently and seems to read from uninitialized memory addresses. This leads to implausibly large inflow values,

 READING INFLOW from /moto/home/ac4972/windopt/simulations/precursor/out/inflow1
 U,V,W max=  2.088587010806605E+294  0.000000000000000E+000
  0.000000000000000E+000
 U,V,W min=  0.000000000000000E+000  0.000000000000000E+000
  0.000000000000000E+000

and resulting floating point overflow errors,

forrtl: error (72): floating overflow
Image              PC                Routine            Line        Source
winc3d             00000000008A970B  Unknown               Unknown  Unknown
libpthread-2.17.s  00002AAAB585A680  Unknown               Unknown  Unknown
winc3d             000000000086DE7C  visu_insta_                99  visu.f90
winc3d             00000000005E70D4  MAIN__                    240  WInc3D.f90
winc3d             0000000000405C22  Unknown               Unknown  Unknown
libc-2.17.so       00002AAAB5D8B3D5  __libc_start_main     Unknown  Unknown
winc3d             0000000000405B29  Unknown               Unknown  Unknown

A warning message to stdout or stderr might help make debugging more clear to new users (like myself) who don't understand all the configuration options.

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

1 participant