Skip to content

Commit

Permalink
Merge branch 'develop' into feature/doc-hpc-frontier
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 authored Mar 27, 2024
2 parents 3c606d1 + 5d1d8f2 commit 5a9d03a
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 11 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ Fixed a bug in the HIP execution policies where `WARP_SIZE` would not be set
with ROCm 6.0.0 or newer.

Changed the CMake version compatibility mode for SUNDIALS to `AnyNewerVersion`
instead of `SameMajorVersion`. This fixes the issue seen
[here](https://github.com/AMReX-Codes/amrex/pull/3835).
instead of `SameMajorVersion`. This fixes the issue seen
[here](https://github.com/AMReX-Codes/amrex/pull/3835).

Fixed a bug in some Fortran examples where `c_null_ptr` was passed as an argument
to a function pointer instead of `c_null_funptr`. This caused compilation issues
with the Cray Fortran compiler.

## Changes to SUNDIALS in release v7.0.0

Expand Down
8 changes: 6 additions & 2 deletions doc/shared/RecentChanges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ Fixed a bug in the HIP execution policies where ``WARP_SIZE`` would not be set
with ROCm 6.0.0 or newer.

Changed the CMake version compatibility mode for SUNDIALS to ``AnyNewerVersion``
instead of ``SameMajorVersion``. This fixes the issue seen
`here <https://github.com/AMReX-Codes/amrex/pull/3835>`_.
instead of ``SameMajorVersion``. This fixes the issue seen
`here <https://github.com/AMReX-Codes/amrex/pull/3835>`_.

Fixed a bug in some Fortran examples where ``c_null_ptr`` was passed as an argument
to a function pointer instead of ``c_null_funptr``. This caused compilation issues
with the Cray Fortran compiler.
2 changes: 1 addition & 1 deletion examples/arkode/F2003_parallel/ark_heat2D_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ program driver
y = 0.d0

! Create the ARKStep timestepper module
arkode_mem = FARKStepCreate(c_null_ptr, c_funloc(frhs), t0, sunvec_y, sunctx)
arkode_mem = FARKStepCreate(c_null_funptr, c_funloc(frhs), t0, sunvec_y, sunctx)
if (.not. c_associated(arkode_mem)) then
print *, "Error: FARKStepCreate returned NULL"
call MPI_Abort(comm, 1, ierr)
Expand Down
2 changes: 1 addition & 1 deletion examples/arkode/F2003_serial/ark_bruss1D_FEM_klu_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ program main
end do

! create ARKStep memory
arkode_mem = FARKStepCreate(c_null_ptr, c_funloc(ImpRhsFn), tstart, sunvec_y, ctx)
arkode_mem = FARKStepCreate(c_null_funptr, c_funloc(ImpRhsFn), tstart, sunvec_y, ctx)
if (.not. c_associated(arkode_mem)) print *,'ERROR: arkode_mem = NULL'

! Tell ARKODE to use a sparse linear solver for both Newton and mass matrix systems.
Expand Down
2 changes: 1 addition & 1 deletion examples/arkode/F2003_serial/ark_diurnal_kry_bp_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ program main
end do

! create ARKStep memory
arkode_mem = FARKStepCreate(c_null_ptr, c_funloc(ImpRhsFn), tstart, sunvec_u, ctx)
arkode_mem = FARKStepCreate(c_null_funptr, c_funloc(ImpRhsFn), tstart, sunvec_u, ctx)
if (.not. c_associated(arkode_mem)) print *,'ERROR: arkode_mem = NULL'

! Tell ARKODE to use a SPGMR linear solver.
Expand Down
2 changes: 1 addition & 1 deletion examples/arkode/F2003_serial/ark_roberts_dnsL_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ program main
call PrintHeader(rtol, avtol, yval)

! Call FARKStepCreate to initialize ARKODE memory
arkode_mem = FARKStepCreate(c_null_ptr, c_funloc(fcnirob), t0, sunvec_y, sunctx)
arkode_mem = FARKStepCreate(c_null_funptr, c_funloc(fcnirob), t0, sunvec_y, sunctx)
if (.not. c_associated(arkode_mem)) print *, 'ERROR: arkode_mem = NULL'

! Call FARKStepSVtolerances to set tolerances
Expand Down
2 changes: 1 addition & 1 deletion examples/arkode/F2003_serial/ark_roberts_dns_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ program main
call PrintHeader(rtol, avtol, yval)

! Call FARKStepCreate to initialize ARKODE memory
arkode_mem = FARKStepCreate(c_null_ptr, c_funloc(fcnirob), t0, sunvec_y, sunctx)
arkode_mem = FARKStepCreate(c_null_funptr, c_funloc(fcnirob), t0, sunvec_y, sunctx)
if (.not. c_associated(arkode_mem)) print *, 'ERROR: arkode_mem = NULL'

! Call FARKStepSVtolerances to set tolerances
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/F2003_parallel/cv_diag_kry_bbd_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ program driver
mudq = 0
mldq = 0
retval = FCVBBDPrecInit(cvode_mem, nlocal, mudq, mldq, mu, ml, 0.d0, &
c_funloc(LocalgFn), c_null_ptr)
c_funloc(LocalgFn), c_null_funptr)
if (retval /= 0) then
print *, "Error: FCVBBDPrecInit returned ", retval
call MPI_Abort(comm, 1, ierr)
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/F2003_parallel/cv_diag_kry_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ program driver
call MPI_Abort(comm, 1, ierr)
end if

retval = FCVodeSetPreconditioner(cvode_mem, c_null_ptr, c_funloc(Psolve))
retval = FCVodeSetPreconditioner(cvode_mem, c_null_funptr, c_funloc(Psolve))
if (retval /= 0) then
print *, "Error: FCVodeSetPreconditioner returned ", retval
call MPI_Abort(comm, 1, ierr)
Expand Down

0 comments on commit 5a9d03a

Please sign in to comment.