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

Initial discrete adjoint capability with ERK #559

Open
wants to merge 361 commits into
base: develop
Choose a base branch
from

Conversation

balos1
Copy link
Member

@balos1 balos1 commented Aug 27, 2024

No description provided.

Copy link
Collaborator

@drreynolds drreynolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just went through the documentation updates. I'll look through the code soon.

doc/arkode/guide/source/Mathematics.rst Outdated Show resolved Hide resolved
doc/arkode/guide/source/Mathematics.rst Outdated Show resolved Hide resolved
doc/arkode/guide/source/Mathematics.rst Outdated Show resolved Hide resolved
doc/arkode/guide/source/Mathematics.rst Outdated Show resolved Hide resolved
doc/arkode/guide/source/Mathematics.rst Outdated Show resolved Hide resolved
doc/arkode/guide/source/Mathematics.rst Outdated Show resolved Hide resolved
doc/arkode/guide/source/Mathematics.rst Outdated Show resolved Hide resolved
doc/shared/sunadjoint/SUNAdjointStepper.rst Show resolved Hide resolved
doc/shared/sunadjoint/SUNAdjoint_Description.rst Outdated Show resolved Hide resolved
@drreynolds drreynolds self-requested a review August 27, 2024 15:04
Copy link
Collaborator

@drreynolds drreynolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor changes on the added/updated content, and I did see one of my previous comments that may still require investigation (inside doc/arkode/guide/source/Usage/ARKStep/ASA.rst)

doc/shared/sunadjoint/SUNAdjointCheckpointScheme.rst Outdated Show resolved Hide resolved
doc/shared/sunadjoint/SUNAdjointStepper.rst Outdated Show resolved Hide resolved
doc/shared/sunadjoint/SUNAdjointStepper.rst Outdated Show resolved Hide resolved
doc/shared/sunadjoint/SUNAdjointStepper.rst Outdated Show resolved Hide resolved
doc/shared/sunadjoint/SUNAdjointStepper.rst Outdated Show resolved Hide resolved
doc/shared/sunadjoint/SUNAdjointStepper.rst Outdated Show resolved Hide resolved
doc/shared/sunmatrix/SUNMatrix_Operations.rst Outdated Show resolved Hide resolved
Comment on lines 51 to 56
# "ark_test_erkadjoint.cpp\;--check-freq 1 --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 2 --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 5 --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 1 --dont-keep --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 2 --dont-keep --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 5 --dont-keep --no-stages\;"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these just be deleted from the file instead of commented out?

Suggested change
# "ark_test_erkadjoint.cpp\;--check-freq 1 --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 2 --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 5 --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 1 --dont-keep --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 2 --dont-keep --no-stages\;"
# "ark_test_erkadjoint.cpp\;--check-freq 5 --dont-keep --no-stages\;"

Comment on lines 514 to 521
// TODO(CJB): figure out why ForwardDiff, CVODES, and ERK adjoint all differ
// if (check_sensitivities_backward(sf))
// {
// fprintf(stderr,
// ">>> FAILURE: adjoint solution does not match correct answer\n");
// return -1;
// };
// printf(">>> PASS\n");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this "TODO(CJB)" still relevant, or should the comment and associated code be deleted?

Base automatically changed from feature/sunstepper to develop November 22, 2024 01:58
@balos1 balos1 changed the title Feature/sunadjoint Initial discrete adjoint capability with ERK Nov 26, 2024
@balos1
Copy link
Member Author

balos1 commented Dec 31, 2024

/autofix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants