Skip to content

Commit ef7a8a7

Browse files
committed
Bypass compilation errors with PETSc < 3.19.0
[ci skip]
1 parent ff1bef9 commit ef7a8a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/mpi/PETSc.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#define MATHERMITIANTRANSPOSEVIRTUAL MATTRANSPOSEMAT
1010
#endif
1111

12+
#if PETSC_VERSION_LT(3, 19, 0)
13+
#define PETSC_SUCCESS 0
14+
#endif
15+
1216
namespace PETSc {
1317
template<class HpddmType>
1418
class DistributedCSR {

0 commit comments

Comments
 (0)