Giter Club home page Giter Club logo

Comments (5)

gardner48 avatar gardner48 commented on September 1, 2024

@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.

gardner48 avatar gardner48 commented on September 1, 2024

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.

jrood-nrel avatar jrood-nrel commented on September 1, 2024

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.

gardner48 avatar gardner48 commented on September 1, 2024

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.

jrood-nrel avatar jrood-nrel commented on September 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.