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

Translated F77 and F90 examples to F2003 examples (with one new addition in IDA) #302

Closed
wants to merge 90 commits into from

Conversation

danmm16
Copy link

@danmm16 danmm16 commented Jul 11, 2023

The 22 examples (+ old names & positions) include:

arkode/F77_serial/fark_diurnal_kry_bp.f
arkode/F77_serial/fark_roberts_dnsL.f
arkode/F77_serial/fark_roberts_dns.f
arkode/F90_serial/ark_bruss1D_FEM_klu.f90
arkode/F90_serial/ark_bruss.f90
cvode/fcmix_serial/fcvAdvDiff_bnd.f
cvode/fcmix_serial/fcvDiurnal_kry.f
cvode/fcmix_serial/fcvDiurnal_kry_bp.f
cvode/fcmix_serial/fcvRoberts_dns.f
cvode/fcmix_serial/fcvRoberts_dnsL.f
cvode/fcmix_serial/fcvRoberts_dns_constraints.f
cvode/fcmix_serial/fcvRoberts_klu.f
kinsol/fcmix_serial/fkinDiagon_kry.f
Create ida/fcmix_openmp/fidaHeat2D_kry_openmp.f
arkode/F77_parallel/fark_diag_kry_bbd_p.f
arkode/F77_parallel/fark_diag_non_p.f
arkode/F90_parallel/fark_heat2D.f90
cvode/fcmix_parallel/fcvDiag_kry_bbd_p.f
cvode/fcmix_parallel/fcvDiag_kry_p.f
cvode/fcmix_parallel/fcvDiag_non_p.f
ida/fcmix_parallel/fidaHeat2D_kry_bbd_p.f
kinsol/fcmix_parallel/fkinDiagon_kry_p.f

@drreynolds
Copy link
Collaborator

In general, when we update any package (ARKODE, CVODE, etc.), the PR should include:

  1. a sentence/paragraph in the top-level CHANGELOG.md, and
  2. a sentence/paragraph in the Introduction.rst documentation file for the affected package, in the section "Changes from previous versions".
    Those sentences/paragraphs should say what "updates" were made to the package.

Here, you could say something like "Numerous previous Fortran-77 and Fortran-90 example programs were updated to use SUNDIALS current Fortran-2003 interfaces."

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 finished going through the ARKODE examples. I'll resume with CVODE, IDA, and KINSOL later.

examples/arkode/F2003_parallel/README Outdated Show resolved Hide resolved
examples/arkode/F2003_parallel/ark_diag_kry_bbd_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_parallel/ark_diag_kry_bbd_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_parallel/ark_diag_kry_bbd_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_parallel/ark_diag_kry_bbd_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_serial/ark_roberts_dnsL_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_serial/ark_roberts_dnsL_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_serial/ark_roberts_dns_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_serial/ark_roberts_dns_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_serial/ark_roberts_dns_f2003.f90 Outdated Show resolved Hide resolved
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 finished going through all of the files, and provided suggestions for a number of items that need adjustment.

examples/arkode/F2003_parallel/ark_diag_kry_bbd_f2003.f90 Outdated Show resolved Hide resolved
examples/arkode/F2003_parallel/ark_diag_non_f2003.f90 Outdated Show resolved Hide resolved
examples/cvode/F2003_serial/CMakeLists.txt Outdated Show resolved Hide resolved
examples/cvode/F2003_serial/README Outdated Show resolved Hide resolved
examples/cvode/F2003_serial/cv_analytic_sys_klu_f2003.f90 Outdated Show resolved Hide resolved
examples/kinsol/F2003_parallel/kin_diagon_kry_f2003.f90 Outdated Show resolved Hide resolved
examples/kinsol/F2003_parallel/kin_diagon_kry_f2003.f90 Outdated Show resolved Hide resolved
johnwparent and others added 5 commits September 12, 2023 20:23
example_utilities.hpp requires `stoi` and similar methods. These are
declared in `<string>`, but `<string>` is not included. This means this
file will break any TU it's included in.

Resolves LLNL#330

Co-authored-by: Cody Balos <[email protected]>
…NL#337)

Fixes LLNL#333. Some other typedefs already had specialized (towards idas or
cvodes) prefixed names, it won't harm to generalize this.

---------

Co-authored-by: Cody Balos <[email protected]>
Add scripts for comparing benchmark and example timings against release timings and a notebook using Thicket to visualize data

---------

Co-authored-by: David J. Gardner <[email protected]>
Co-authored-by: Cody J. Balos <[email protected]>
Fixes part of LLNL#253 by avoiding nested loops that take `O(M*N)` operations.

Also fixes LLNL#256.

---------

Signed-off-by: phannebohm <[email protected]>
Co-authored-by: Cody Balos <[email protected]>
@drreynolds drreynolds dismissed their stale review December 6, 2023 18:31

needs to be reviewed again

drreynolds and others added 15 commits December 6, 2023 13:20
Add core error handling functions and macros 

---------

Co-authored-by: Daniel R. Reynolds <[email protected]>
Co-authored-by: David J. Gardner <[email protected]>
Apply clang-format and clang-tidy. There are changes/additions
in the following files:

- .clang-format
- .clang-tidy
- .github/actions/free-space-ubuntu/action.yml
- .github/workflows/build-llvm-container.yml
- .github/workflows/check-clang-format.yml
- cmake/SundialsSetupCompilers.cmake
- scripts/format.sh
- scripts/tidy_and_format.sh

---------

Co-authored-by: Daniel R. Reynolds <[email protected]>
Co-authored-by: David J. Gardner <[email protected]>
drreynolds
drreynolds previously approved these changes Dec 14, 2023
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 renamed one example to better align with the previous F77 version. Assuming that rename doesn't break anything in the CI, then I think this is good to merge.

gardner48 added a commit that referenced this pull request Dec 18, 2023
Remove F77 interface examples from `develop` branch. Once this PR is
merged, a new `archive` branch can be created for easy reference until
#302 is merged and the `archive` branch can be deleted.

---------

Co-authored-by: Cody Balos <[email protected]>
balos1 added a commit that referenced this pull request Dec 18, 2023
Remove F77 interface examples from `develop` branch. Once this PR is
merged, a new `archive` branch can be created for easy reference until
#302 is merged and the `archive` branch can be deleted.

---------

Co-authored-by: Cody Balos <[email protected]>
@gardner48 gardner48 dismissed drreynolds’s stale review December 18, 2023 22:48

The merge-base changed after approval.

@drreynolds drreynolds mentioned this pull request Feb 8, 2024
@drreynolds
Copy link
Collaborator

Closing this PR, as it is replaced by #420.

@drreynolds drreynolds closed this Feb 8, 2024
balos1 added a commit that referenced this pull request Feb 21, 2024
This PR replaces #302, since it proved way too difficult to merge
changes from `develop` directly into that branch, so I just propagated
the new/changed files from #302 into a new branch off of `develop`.

---------

Co-authored-by: Cody Balos <[email protected]>
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.