]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Silence compiler warning in PetscScalar=real.
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 19 Oct 2013 14:43:52 +0000 (14:43 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 19 Oct 2013 14:43:52 +0000 (14:43 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31319 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/petsc_vector_base.h

index 2d0017be56805a14d6e538592ae067158db995b8..9299fa59d16f24cc55e151b8030424bae62fb966 100644 (file)
@@ -1197,6 +1197,7 @@ namespace PETScWrappers
 #ifndef PETSC_USE_COMPLEX
       // This is a no op if complex numbers are not defined.
       AssertThrow (false, ExcNotImplemented ());
+      return PetscReal (0);
 #else
       return PetscImaginaryPart (static_cast<PetscScalar>(*this)); 
 #endif

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.