Skip to content

Commit 8ed9d40

Browse files
authored
Merge pull request #4037 from farscape-project/revert
Revert LibmeshPetscCall workarounds
2 parents 7e3b4e3 + bcefb94 commit 8ed9d40

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

include/numerics/petsc_solver_exception.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -89,33 +89,13 @@ class PetscSolverException : public SolverException
8989
LIBMESH_CHKERRQ(ierr); \
9090
} while (0)
9191

92-
// Remove me: for backward compatibility with MOOSE only
93-
#define LIBMESH_CHKERR(ierr) LIBMESH_CHKERRQ(ierr)
94-
#define LIBMESH_CHKERR2(comm, ierr) LIBMESH_CHKERRA(comm, ierr)
95-
#define LibmeshPetscCall(...) \
96-
do \
97-
{ \
98-
PetscErrorCode libmesh_petsc_call_ierr; \
99-
libmesh_petsc_call_ierr = __VA_ARGS__; \
100-
LIBMESH_CHKERRQ(libmesh_petsc_call_ierr); \
101-
} while (0)
102-
10392
#else
10493

10594
// If we don't have exceptions enabled, just fall back on calling
10695
// PETSc's CHKERRQ or CHKERRABORT macros.
10796
#define LIBMESH_CHKERRQ(ierr) CHKERRQ(ierr);
10897
#define LIBMESH_CHKERRA(comm, ierr) CHKERRABORT(comm, ierr);
10998

110-
// Remove me: for backward compatibility with MOOSE only
111-
#define LibmeshPetscCall(...) \
112-
do \
113-
{ \
114-
PetscErrorCode libmesh_petsc_call_ierr; \
115-
libmesh_petsc_call_ierr = __VA_ARGS__; \
116-
LIBMESH_CHKERRA(this->comm().get(), libmesh_petsc_call_ierr); \
117-
} while (0)
118-
11999
#endif
120100

121101
#define PETSC_BEGIN_END(Function) \
@@ -155,10 +135,8 @@ PETSC_BEGIN_END(VecGhostUpdate) // VecGhostUpdateBeginEnd
155135

156136
// Shortcut for LibmeshPetscCallA for use within a ParallelObject, i.e. when
157137
// we can rely on the communicator being available from the "this" pointer.
158-
/*
159138
#define LibmeshPetscCall(...) \
160139
LibmeshPetscCallA(this->comm().get(), __VA_ARGS__)
161-
*/
162140

163141
// Shortcut for LibmeshPetscCallA for use when we have a Parallel::Communicator
164142
// available instead of just a bare MPI communicator.

0 commit comments

Comments
 (0)