Skip to content

Commit

Permalink
fix parallel vector too
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Apr 25, 2024
1 parent 60697cf commit 179e512
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/nvector/parallel/test_fnvector_parallel_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ integer(C_INT) function check_ans(ans, X, local_length) result(failure)
use test_utilities
implicit none

real(C_DOUBLE) :: ans
type(N_Vector) :: X
integer(C_LONG) :: local_length, i
real(C_DOUBLE), pointer :: Xdata(:)
real(C_DOUBLE) :: ans
type(N_Vector) :: X
integer(kind=myindextype) :: local_length, i
real(C_DOUBLE), pointer :: Xdata(:)

failure = 0

Xdata => FN_VGetArrayPointer(X)
do i = 1, local_length
do i = 1, local_length
if (FNEQ(Xdata(i), ans) > 0) then
failure = failure + 1
end if
Expand Down

0 comments on commit 179e512

Please sign in to comment.