From: kronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Sat, 15 May 2010 14:17:22 +0000 (+0000)
Subject: Fix Slepc compilation.
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=802b8fca8b1a408b75d60ae0be01fc93e9b1eb44;p=dealii-svn.git

Fix Slepc compilation.

git-svn-id: https://svn.dealii.org/trunk@21132 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/deal.II/lac/include/lac/slepc_solver.h b/deal.II/lac/include/lac/slepc_solver.h
index deb4438ca0..afd0a37427 100644
--- a/deal.II/lac/include/lac/slepc_solver.h
+++ b/deal.II/lac/include/lac/slepc_solver.h
@@ -20,7 +20,7 @@
 
 #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>
diff --git a/deal.II/lac/include/lac/slepc_spectral_transformation.h b/deal.II/lac/include/lac/slepc_spectral_transformation.h
index 974046c937..736d024e15 100644
--- a/deal.II/lac/include/lac/slepc_spectral_transformation.h
+++ b/deal.II/lac/include/lac/slepc_spectral_transformation.h
@@ -20,7 +20,7 @@
 
 #ifdef DEAL_II_USE_SLEPC
 
-#  include <base/std_cxx1x/shared_ptr.hpp>
+#  include <base/std_cxx1x/shared_ptr.h>
 #  include <lac/exceptions.h>
 
 #  include <petscksp.h>
diff --git a/deal.II/lac/source/slepc_solver.cc b/deal.II/lac/source/slepc_solver.cc
index 58142a7c87..bb50e8b2cd 100644
--- a/deal.II/lac/source/slepc_solver.cc
+++ b/deal.II/lac/source/slepc_solver.cc
@@ -53,7 +53,7 @@ namespace SLEPcWrappers
 
   SolverBase::~SolverBase ()
   {
-    if (solver_data != 0)
+    if (&*solver_data != 0)
       solver_data.reset ();
   }
 
@@ -95,7 +95,7 @@ namespace SLEPcWrappers
   {
     int ierr;
 
-    AssertThrow (solver_data == 0, ExcSLEPcWrappersUsageError());
+    AssertThrow (&*solver_data == 0, ExcSLEPcWrappersUsageError());
     solver_data.reset (new SolverData());
 
                                     // create eigensolver context and
@@ -158,7 +158,7 @@ namespace SLEPcWrappers
 #endif
 			     PETScWrappers::VectorBase &vr)
   {
-    AssertThrow (solver_data != 0, ExcSLEPcWrappersUsageError());
+    AssertThrow (&*solver_data != 0, ExcSLEPcWrappersUsageError());
 
                                     // get converged eigenpair
     int ierr = EPSGetEigenpair(solver_data->eps, index,
@@ -170,7 +170,7 @@ namespace SLEPcWrappers
   void
   SolverBase::reset ()
   {
-    AssertThrow (solver_data != 0, ExcSLEPcWrappersUsageError());
+    AssertThrow (&*solver_data != 0, ExcSLEPcWrappersUsageError());
 
                                     // destroy solver object.
     solver_data.reset ();
@@ -179,7 +179,7 @@ namespace SLEPcWrappers
   EPS *
   SolverBase::get_EPS ()
   {
-    if( solver_data == 0 )
+    if( &*solver_data == 0 )
       return NULL;
     return &solver_data->eps;
   }
diff --git a/deal.II/lac/source/slepc_spectral_transformation.cc b/deal.II/lac/source/slepc_spectral_transformation.cc
index b1e6b67636..1d818a3c31 100644
--- a/deal.II/lac/source/slepc_spectral_transformation.cc
+++ b/deal.II/lac/source/slepc_spectral_transformation.cc
@@ -45,7 +45,7 @@ namespace SLEPcWrappers
 
   void TransformationBase::set_context (EPS &eps)
   {
-    AssertThrow (transformation_data == 0,
+    AssertThrow (&*transformation_data == 0,
 		 SolverBase::ExcSLEPcWrappersUsageError());
     transformation_data.reset (new TransformationData());