last_residual_eval = X(0);
};
+ // This test triggers false positives in FPE trapping for some versions of
+ // PETSc
+#if DEAL_II_PETSC_VERSION_LT(3, 19, 2) && defined(DEBUG) && \
+ defined(DEAL_II_HAVE_FP_EXCEPTIONS)
+ PetscErrorCode ierr = PetscFPTrapPush(PETSC_FP_TRAP_OFF);
+ (void)ierr;
+#endif
+
for (int setjac = 0; setjac < 2; setjac++)
{
if (setjac)
x(0) = starting_x;
x.compress(VectorOperation::insert);
+ // This test triggers false positives in FPE trapping for some versions of
+ // PETSc
+#if DEAL_II_PETSC_VERSION_LT(3, 19, 2) && defined(DEBUG) && \
+ defined(DEAL_II_HAVE_FP_EXCEPTIONS)
+ PetscErrorCode ierr = PetscFPTrapPush(PETSC_FP_TRAP_OFF);
+ (void)ierr;
+#endif
+
deallog << "Running testcase " << testcase << std::endl;
try
{
deallog << "# Testing Parameters" << std::endl;
prm.print_parameters(deallog.get_file_stream(), ParameterHandler::ShortText);
+ // This test triggers false positives in FPE trapping for some versions of
+ // PETSc
+#if DEAL_II_PETSC_VERSION_LT(3, 19, 2) && defined(DEBUG) && \
+ defined(DEAL_II_HAVE_FP_EXCEPTIONS)
+ PetscErrorCode ierr = PetscFPTrapPush(PETSC_FP_TRAP_OFF);
+ (void)ierr;
+#endif
+
for (int recerri = 0; recerri < 2; recerri++)
{
bool recerr = recerri ? false : true;
deallog << "# Testing Parameters" << std::endl;
prm.print_parameters(deallog.get_file_stream(), ParameterHandler::ShortText);
+ // This test triggers false positives in FPE trapping for some versions of
+ // PETSc
+#if DEAL_II_PETSC_VERSION_LT(3, 19, 2) && defined(DEBUG) && \
+ defined(DEAL_II_HAVE_FP_EXCEPTIONS)
+ PetscErrorCode ierr = PetscFPTrapPush(PETSC_FP_TRAP_OFF);
+ (void)ierr;
+#endif
+
for (int seterri = 0; seterri < 2; seterri++)
{
bool seterr = seterri ? true : false;