]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix compilation of the ARPACK interfaces.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Feb 2013 14:08:54 +0000 (14:08 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Feb 2013 14:08:54 +0000 (14:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@28492 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/include/deal.II/lac/arpack_solver.h

index f3b589a07064600cff996ee8a298ca693ab8241d..90e499d8f7c4d1803220973bd87cc66d8e1e7c79 100644 (file)
@@ -208,6 +208,11 @@ DoFHandler, in particular removal of specializations.
 <h3>Specific improvements</h3>
 
 <ol>
+<li> Fixed: The ArpackSolver interface to the ARPACK eigenvalue solver could
+not be compiled with newer C++ compilers. This is now fixed.
+<br>
+(Juan Carlos Araujo Cabarcas, Wolfgang Bangerth, 2013/02/20)
+
 <li> New: PETScWrappers::MPI::BlockVector now has a constructor and reinit
 that takes a std::vector<IndexSet> (same interface as in Trilinos).
 <br>
index 7211dcb544fe86b82d314341417ff6f20405935f..fd3abf17c28532efbaede4b5ac97ead202044d72 100644 (file)
@@ -3,7 +3,7 @@
 //    Authors: Bärbel Janssen, University of Heidelberg,
 //    Agnieszka Miedler, TU Berlin, 2010
 //
-//    Copyright (C) 2010, 2012 by the deal.II authors
+//    Copyright (C) 2010, 2012, 2013 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -490,10 +490,8 @@ void ArpackSolver::solve (
       AssertDimension (eigenvalues.size(), eigenvalues_im.size());
 
       for (unsigned int i=0; i<eigenvalues.size(); ++i)
-        {
-          eigenvalues[i].real() = eigenvalues_real[i];
-          eigenvalues[i].imag() = eigenvalues_im[i];
-        }
+       eigenvalues[i] = std::complex<double> (eigenvalues_real[i],
+                                              eigenvalues_im[i]);
     }
 }
 

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.