Skip to content

Commit

Permalink
idx
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Jun 18, 2024
1 parent d0158b1 commit 6059bcc
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -90,7 +90,8 @@ module Bruss1DFEMKLU_UserData
! function that maps 2D data into 1D address space
! (0-based since CSR matrix will be sent to C solver)
integer(c_int64_t) function idx(ix, ivar)
integer(c_int) :: ivar, ix
integer(c_int64_t):: ix
integer(c_int) :: ivar
idx = neqreal*(ix - 1) + ivar - 1
end function idx

Expand Down

0 comments on commit 6059bcc

Please sign in to comment.