Conversation
pelesh
reviewed
May 10, 2025
Co-authored-by: pelesh <peless@ornl.gov>
Collaborator
|
@nkoukpaizan, we need to set SUNDIALS version in CI to |
Steven-Roberts
commented
May 21, 2025
Collaborator
|
The prior segfaults have been fixed with using SUNDIALS from It seems there is an issue with getting data array pointer from the N_Vector. Full backtrace is available below: DetailsProcess 42256 launched: '/Users/55y/src/gridkit/build-gcc/examples/Experimental/DynamicConstrainedOpt/dynconopt' (x86_64)This program contains Ipopt, a library for large-scale nonlinear optimization. Process 42256 stopped
|
pelesh
reviewed
May 22, 2025
pelesh
reviewed
May 22, 2025
4 tasks
* Minor suggestions to SUNDIALS interface - Create "symmetric" functions for creating and deleting SUNDIALS objects. - Modify RL example to test Ida destructor. --------- Co-authored-by: pelesh <pelesh@users.noreply.github.com>
6 tasks
WiktoriaZielinskaORNL
pushed a commit
that referenced
this pull request
Jul 23, 2025
* Improvements for IDA and KINSOL * Remove N_VGetArrayPointer_Serial calls * Resolve t_init_ issue * Add missing N_VDestroy * Apply pre-commmit fixes * Fix some adjoint memory leaks * Remove unused function * Minor suggestions to SUNDIALS interface (#111) - Create "symmetric" functions for creating and deleting SUNDIALS objects. - Modify RL example to test Ida destructor. --------- Co-authored-by: pelesh <pelesh@users.noreply.github.com> --------- Co-authored-by: Steven-Roberts <Steven-Roberts@users.noreply.github.com> Co-authored-by: pelesh <peless@ornl.gov> Co-authored-by: Nicholson Koukpaizan <koukpaizannk@ornl.gov> Co-authored-by: pelesh <pelesh@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replaces some deprecated SUNDIALS calls, adds a missing
N_VDestroy, fixes uninitialized member variables that could cause issues when freed, and simplifies some of the code in the Ida and Kinsol classes. There's also some TODOs I left with questions @peleshChecklist
-Wall -Wpedantic -Wconversion -Wextra.