Skip to content

Commit 6f14cdb

Browse files
authored
Add support for Hypre 3.0 (parflow#661)
Add support for Hypre 3.0 API changes.
1 parent 5ae8346 commit 6f14cdb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pfsimulator/parflow_lib/pf_hypre.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ void CopyParFlowVectorToHypreVector(Vector * rhs,
7575
index[1] = j;
7676
index[2] = k;
7777

78+
#if HYPRE_RELEASE_NUMBER >= 30000
79+
HYPRE_StructVectorSetValues(*hypre_b, index, &rhs_ptr[iv]);
80+
#else
7881
HYPRE_StructVectorSetValues(*hypre_b, index, rhs_ptr[iv]);
82+
#endif
7983
});
8084
}
8185
HYPRE_StructVectorAssemble(*hypre_b);

0 commit comments

Comments
 (0)