PETSC_ERROR_INITIAL,
"Failure in snes_function from dealii::PETScWrappers::NonlinearSolver");
petsc_increment_state_counter(f);
- PetscFunctionReturn(0);
+ PetscFunctionReturn(PETSC_SUCCESS);
};
const auto snes_jacobian =
else
petsc_increment_state_counter(A);
- PetscFunctionReturn(0);
+ PetscFunctionReturn(PETSC_SUCCESS);
};
const auto snes_jacobian_with_setup =
}
else
petsc_increment_state_counter(A);
- PetscFunctionReturn(0);
+ PetscFunctionReturn(PETSC_SUCCESS);
};
const auto snes_monitor =
PETSC_ERR_LIB,
PETSC_ERROR_INITIAL,
"Failure in snes_monitor from dealii::PETScWrappers::NonlinearSolver");
- PetscFunctionReturn(0);
+ PetscFunctionReturn(PETSC_SUCCESS);
};
const auto snes_objective =
PETSC_ERROR_INITIAL,
"Failure in snes_objective from dealii::PETScWrappers::NonlinearSolver");
*f = v;
- PetscFunctionReturn(0);
+ PetscFunctionReturn(PETSC_SUCCESS);
};
AssertThrow(residual,
// a zero error code -- if so, just eat the exception and
// continue on; otherwise, just rethrow the exception
// and get outta here.
- const int status = SNESSolve(snes, nullptr, x.petsc_vector());
+ const PetscErrorCode status = SNESSolve(snes, nullptr, x.petsc_vector());
if (pending_exception)
{
try