-
Notifications
You must be signed in to change notification settings - Fork 133
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
ARKODE error messages are being cutoff #461
Comments
Lower case |
I just tried to reproduce the cutoff message and was unable to:
|
Is it possible that your terminal is cutting off the output? Maybe try setting the environment variable |
Whoops, looks like it isn't the format specifier then. I saw it could cause undefined behavior, but apparently that was only before C99. After a closer look, the message length here is somehow wrong when I step through in the debugger Line 3331 in 2abd63b
I'm seeing this with gcc 8.5 and 13.1. I might need to boil things down to a minimal example to make sure it's not a secondary effect. |
It could be that |
Can you try this?
|
Yep, that fixed it. Turns out |
Cool. Ill note that this seems to be specific to Linux as it works fine with gcc 13 on my m1 mac. |
This is probably needed in all of the packages. |
Fixed a bug that caused error messages to be cut off in some cases. Fixes #461 --------- Co-authored-by: David Gardner <gardner48@llnl.gov>
Closed by #462 |
Fixed a bug that caused error messages to be cut off in some cases. Fixes #461 --------- Co-authored-by: David Gardner <gardner48@llnl.gov>
The `test_sundials_errors` test was failing for me which I traced down to the handling of variable arguments. It's the same issue discussed in #461 which was partially fixed in #462. This PR should finish it off. --------- Co-authored-by: Cody Balos <balos1@llnl.gov> Co-authored-by: David Gardner <gardner48@llnl.gov>
I noticed that some ARKODE error messages are getting cut off, .e.g,
At t = 0.001, mxstep steps taken before reaching tou
. When SUNDIALS is built in double precision, some format specifiers seem to be for long double, which I think is the issue:sundials/src/arkode/arkode_impl.h
Lines 1026 to 1032 in 2abd63b
Looks like the other
_impl.h
files have the same thing.The text was updated successfully, but these errors were encountered: