Comments (5)
@jrood-nrel By default SUNDIALS writes all warnings and error messages to stderr
. If you're finding that this is not the case let me know what errors you're seeing and I'll check it out.
If you want to direct the output somewhere else, you can set an output file with the function *SetErrFile
where *
is the integrator specific prefix. For example, with CVODE the function is CVodeSetErrFile(cvode_mem, errfp)
. If errfp
is NULL
, then error/warning message output is disabled (we generally discourage disabling the output though).
Alternatively, a user-defined error handling function (of type *ErrHandlerFn
where *
is CV
for CVODE, ARK
for ARKODE, etc.) can be attached with the *SetErrHandlerFn
function for greater control over error/warning message output. For more details on this option see the documentation for *ErrHandlerFn
in the user guides.
Hope that helps and let me know if have any additional questions.
from sundials.
I think the user-defined error handler is ultimately what you're looking for as this could be used to coordinate messages between different instances of the integrator for output from a single rank.
from sundials.
Thanks. I think I'm actually fine with only reporting the messages encountered on the I/O rank as a first step. Right now I'm looking into using ARKStepSetErrFile
and setting it to NULL
on everything but the I/O rank.
from sundials.
That should work to get things started. You will lose the error messages from the other integrator instances since they don't coordinate with each other but as long as you're capturing the return values from ARKStepEvolve
and handling any errors/warnings as needed everything should be good.
from sundials.
I don't want to leave this open perpetually. I think we have the information to work on this within our application so I will close it.
from sundials.
Related Issues (20)
- 6.7.0 failed to build with open-mpi 5.0 HOT 4
- library does not support the 'bdf' method HOT 2
- Duplicated symbols in libsundials_ida.a and libsundials_sunlinsolklu.a HOT 2
- Type conversion (maybe corrupting data)? HOT 5
- Possible incorrect build order when building FORTRAN interface HOT 5
- CVODES returns at wrong time when integrating backwards HOT 3
- API inconsistency: some SUNDIALS "Space" functions use `sunindextype` and some use `long int` HOT 5
- Crash when using dense linear solver and Netwon nonlinear solver with relative large number of equations HOT 3
- 7.0.0 release build failure HOT 1
- Update SUNDIALS source tree figure in documentation HOT 1
- Error when building both static and shared libs on Windows with MSVC HOT 4
- ARKODE error messages are being cutoff HOT 10
- Build Error with MPI and C++ Examples Enabled HOT 5
- Error Handler Memory Leak HOT 3
- Fortran interface on 32 bits machines? HOT 2
- Getting Error when trying to Build Paradis with KINSOL HOT 2
- Question about KINSOL behavior HOT 16
- IDA inconsistent results on MacOS HOT 1
- [BUG] SUNDIALS fails to build due to a linker error with MSYS+gfortran on Windows HOT 1
- Check system installation of sundials HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sundials.