]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make it compile for PetscScalar=float.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jun 2004 11:16:00 +0000 (11:16 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jun 2004 11:16:00 +0000 (11:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@9388 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_solver.h
deal.II/lac/source/petsc_matrix_base.cc
deal.II/lac/source/petsc_solver.cc

index b96f313c17135aa5da98ec15b1fb201d34c12c4f..c189ff63861e8f7457657b03085de320e9d37962 100644 (file)
@@ -162,7 +162,7 @@ namespace PETScWrappers
       int
       convergence_test (KSP                 ksp,
                         const int           iteration,
-                        const double        residual_norm,
+                        const PetscScalar   residual_norm,
                         KSPConvergedReason *reason,
                         void               *solver_control);
 
index f5f17a83342931787c6382f68ba9a2d2aad1bf07..95d4344ef923b3158a474cf3b0fb5fa5d462f8a3 100644 (file)
@@ -422,7 +422,7 @@ namespace PETScWrappers
   
 
   
-  double
+  PetscScalar
   MatrixBase::residual (VectorBase       &dst,
                         const VectorBase &x,
                         const VectorBase &b) const
index 56cce5ec0e35c9047a212c735ec79f82c49e8180..6b1d3d2d70b2811a5f2d9ad01040f89292ead926 100644 (file)
@@ -215,7 +215,7 @@ namespace PETScWrappers
   int
   SolverBase::convergence_test (KSP                 /*ksp*/,
                                 const int           iteration,
-                                const double        residual_norm,
+                                const PetscScalar   residual_norm,
                                 KSPConvergedReason *reason,
                                 void               *solver_control_x)
   {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.