#ifdef DEAL_II_USE_SLEPC
-# include <base/std_cxx1x/shared_ptr.hpp>
+# include <base/std_cxx1x/shared_ptr.h>
# include <lac/exceptions.h>
# include <lac/solver_control.h>
# include <lac/petsc_matrix_base.h>
SolverBase::~SolverBase ()
{
- if (solver_data != 0)
+ if (&*solver_data != 0)
solver_data.reset ();
}
{
int ierr;
- AssertThrow (solver_data == 0, ExcSLEPcWrappersUsageError());
+ AssertThrow (&*solver_data == 0, ExcSLEPcWrappersUsageError());
solver_data.reset (new SolverData());
// create eigensolver context and
#endif
PETScWrappers::VectorBase &vr)
{
- AssertThrow (solver_data != 0, ExcSLEPcWrappersUsageError());
+ AssertThrow (&*solver_data != 0, ExcSLEPcWrappersUsageError());
// get converged eigenpair
int ierr = EPSGetEigenpair(solver_data->eps, index,
void
SolverBase::reset ()
{
- AssertThrow (solver_data != 0, ExcSLEPcWrappersUsageError());
+ AssertThrow (&*solver_data != 0, ExcSLEPcWrappersUsageError());
// destroy solver object.
solver_data.reset ();
EPS *
SolverBase::get_EPS ()
{
- if( solver_data == 0 )
+ if( &*solver_data == 0 )
return NULL;
return &solver_data->eps;
}
void TransformationBase::set_context (EPS &eps)
{
- AssertThrow (transformation_data == 0,
+ AssertThrow (&*transformation_data == 0,
SolverBase::ExcSLEPcWrappersUsageError());
transformation_data.reset (new TransformationData());