Skip to content

Commit

Permalink
Fixed compilation issues from recent merge
Browse files Browse the repository at this point in the history
  • Loading branch information
drreynolds committed Nov 29, 2023
1 parent 80398b4 commit 388fe09
Show file tree
Hide file tree
Showing 23 changed files with 120 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ integer(c_int) function TaskLocalLSolve(sunvec_delta, arkode_mem) &
type(c_ptr), value :: arkode_mem ! ARKODE memory structure

! residual data
type(c_ptr), value :: user_data
type(c_ptr) :: user_data

real(c_double) :: tcur(1) ! current time
real(c_double) :: gam(1) ! current gamma
Expand Down
4 changes: 1 addition & 3 deletions examples/arkode/F2003_parallel/ark_diag_kry_bbd_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ program driver
integer(c_long) :: lenrwbbd(1) ! band preconditioner real/int workspace size
integer(c_long) :: leniwbbd(1)
integer :: i, ioutput
integer, pointer :: commptr
real(c_double) :: errmax, erri, gerrmax

! Initialize MPI variables
Expand Down Expand Up @@ -236,8 +235,7 @@ program driver
alpha = 10.0d0

! Create SUNDIALS simulation context, now that comm has been configured
commptr => comm
retval = FSUNContext_Create(c_loc(commptr), sunctx)
retval = FSUNContext_Create(comm, sunctx)
if (retval /= 0) then
print *, "Error: FSUNContext_Create returned ",retval
call MPI_Abort(comm, 1, ierr)
Expand Down
4 changes: 1 addition & 3 deletions examples/arkode/F2003_parallel/ark_diag_non_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ program driver
integer(c_long) :: nfe(1) ! number of explicit RHS evals
integer(c_long) :: netf(1) ! number of error test fails
integer :: i, ioutput
integer, pointer :: commptr
real(c_double) :: errmax, erri, gerrmax

! Initialize MPI variables
Expand Down Expand Up @@ -177,8 +176,7 @@ program driver
alpha = 10.0d0 / neq

! Create SUNDIALS simulation context, now that comm has been configured
commptr => comm
retval = FSUNContext_Create(c_loc(commptr), sunctx)
retval = FSUNContext_Create(comm, sunctx)
if (retval /= 0) then
print *, "Error: FSUNContext_Create returned ",retval
call MPI_Abort(comm, 1, ierr)
Expand Down
4 changes: 1 addition & 3 deletions examples/arkode/F2003_parallel/ark_heat2D_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ program driver
integer(c_long) :: npsol(1) ! number of preconditioner solves
integer :: i, j, ioutput
character*100 :: outname
integer, pointer :: commptr

! initialize MPI
call MPI_Init(ierr)
Expand Down Expand Up @@ -730,8 +729,7 @@ program driver
end if

! Create SUNDIALS simulation context, now that comm has been configured
commptr => comm
retval = FSUNContext_Create(c_loc(commptr), sunctx)
retval = FSUNContext_Create(comm, sunctx)
if (retval /= 0) then
print *, "Error: FSUNContext_Create returned ",retval
call MPI_Abort(comm, 1, ierr)
Expand Down
3 changes: 2 additions & 1 deletion examples/arkode/F2003_serial/ark_bruss1D_FEM_klu_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,7 @@ program main
!======= Inclusions ===========
use, intrinsic :: iso_c_binding

use fsundials_types_mod
use bruss1D_ode_mod ! custom problem-specification module
use farkode_mod ! Fortran interface to the ARKODE module
use farkode_arkstep_mod ! Fortran interface to the ARKStep module
Expand Down Expand Up @@ -1079,7 +1080,7 @@ program main
!======= Internals ============

! create the SUNDIALS context
ierr = FSUNContext_Create(c_null_ptr, ctx)
ierr = FSUNContext_Create(SUN_COMM_NULL, ctx)

! initialize ODE
tstart = 0.0d0
Expand Down
3 changes: 2 additions & 1 deletion examples/arkode/F2003_serial/ark_bruss_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ program main
!======= Inclusions ===========
use, intrinsic :: iso_c_binding

use fsundials_types_mod
use farkode_mod ! Fortran interface to the ARKODE module
use farkode_arkstep_mod ! Fortran interface to the ARKStep module
use fsundials_nvector_mod ! Fortran interface to the generic N_Vector
Expand Down Expand Up @@ -274,7 +275,7 @@ program main
!======= Internals ============

! create the SUNDIALS context
ierr = FSUNContext_Create(c_null_ptr, sunctx)
ierr = FSUNContext_Create(SUN_COMM_NULL, sunctx)

! initialize ODE
tstart = 0.0d0
Expand Down
3 changes: 2 additions & 1 deletion examples/arkode/F2003_serial/ark_diurnal_kry_bp_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ program main
!======= Inclusions ===========
use, intrinsic :: iso_c_binding

use fsundials_types_mod
use farkode_mod ! Fortran interface to the ARKODE module
use farkode_arkstep_mod ! Fortran interface to the ARKStep module
use fsundials_nvector_mod ! Fortran interface to the generic N_Vector
Expand Down Expand Up @@ -251,7 +252,7 @@ program main
!======= Internals ============

! create the SUNDIALS context
ierr = FSUNContext_Create(c_null_ptr, ctx)
ierr = FSUNContext_Create(SUN_COMM_NULL, ctx)

! initialize ODE
tstart = 0.0d0
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 @@ -244,7 +244,7 @@ program main
!======= Internals ============

! create the SUNDIALS context
retval = FSUNContext_Create(c_null_ptr, sunctx)
retval = FSUNContext_Create(SUN_COMM_NULL, sunctx)

! initialize solution vectors and tolerances
yval(1) = 1.d0
Expand Down
3 changes: 2 additions & 1 deletion examples/arkode/F2003_serial/ark_roberts_dns_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ program main
!======= Inclusions ===========
use, intrinsic :: iso_c_binding

use fsundials_types_mod
use farkode_mod ! Fortran interface to ARKODE
use farkode_arkstep_mod ! Fortran interface to the ARKStep module
use fsundials_context_mod ! Fortran interface to SUNContext
Expand Down Expand Up @@ -245,7 +246,7 @@ program main
!======= Internals ============

! create the SUNDIALS context
retval = FSUNContext_Create(c_null_ptr, sunctx)
retval = FSUNContext_Create(SUN_COMM_NULL, sunctx)

! initialize solution vectors and tolerances
yval(1) = 1.d0
Expand Down
Loading

0 comments on commit 388fe09

Please sign in to comment.