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

Reorganized organization of checkNvector routines #647

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

Conversation

drreynolds
Copy link
Collaborator

This PR cleans up how ARKODE and its steppers check for required N_Vector routines. Previously, ARKODE required routines that were only actually needed when certain options were configured, and each stepper performed redundant checks on the supplied N_Vector, when in reality, no stepper utilized routines that were not already required by the main ARKODE infrastructure.

In this PR:

  1. Stepper-specific N_Vector operation checks have been removed.
  2. ARKODE performs an initial check on the supplied N_Vector for operations that are always required.
  3. Individual ARKODE utilities perform their own N_Vector checks when they are configured.
  4. ARKODE then performs a final check after user configuration is complete to check any remaining N_Vector operation requirements.

src/arkode/arkode.c Outdated Show resolved Hide resolved
src/arkode/arkode.c Show resolved Hide resolved
src/arkode/arkode.c Show resolved Hide resolved
src/arkode/arkode.c Outdated Show resolved Hide resolved
src/arkode/arkode_arkstep.c Show resolved Hide resolved
src/arkode/arkode.c Outdated Show resolved Hide resolved
src/arkode/arkode_ls.c Outdated Show resolved Hide resolved
Copy link
Member

@gardner48 gardner48 left a comment

Choose a reason for hiding this comment

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

Other than the comment here about checking for clone this looks good

Copy link
Member

@gardner48 gardner48 left a comment

Choose a reason for hiding this comment

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

Minor change I should have noticed before

src/arkode/arkode.c Outdated Show resolved Hide resolved
@drreynolds
Copy link
Collaborator Author

I don't understand why the "spelling" check just failed. The patch file that it produces "fixes" numerous variable names in completely unrelated files (examples/cvodes/parallel/cvsAdvDiff_ASAp_non_p.c, examples/kinsol/CUDA_mpi/kin_em_mpicuda.cu, src/cvodes/cvodea.c, and src/idas/idaa.c).

Did something change in the CI that could have caused this?

@Steven-Roberts
Copy link
Collaborator

I don't understand why the "spelling" check just failed.

codespell had an update today which caught a few more things. I have a fix in #636 so you can just wait for that to be merged. It might be good to select a fixed version of codespell and manually update it as need to avoid issues like this.

@drreynolds
Copy link
Collaborator Author

drreynolds commented Jan 21, 2025

I don't understand why the "spelling" check just failed.

codespell had an update today which caught a few more things. I have a fix in #636 so you can just wait for that to be merged. It might be good to select a fixed version of codespell and manually update it as need to avoid issues like this.

Actually, the PR had no typos to fix, it's just failing the CI due to the codespell issue. I don't see how this PR can be merged before #636, given that the "spelling" check is required before any PR can be merged, so it can just wait.

@Steven-Roberts
Copy link
Collaborator

Yes, codespell recognizes lins and indx as typos now which are used in code totally unrelated to this PR.

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.

3 participants