]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a copy constructor that the compiler wants to see in some cases.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Oct 2008 23:07:16 +0000 (23:07 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Oct 2008 23:07:16 +0000 (23:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@17215 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/trilinos_precondition.h
deal.II/lac/source/trilinos_precondition.cc

index e8e847a8abe11a5640259d30207c5746281c25ef..7a635cc8c94132f87c90f58967c90a6552c235ae 100755 (executable)
@@ -87,14 +87,10 @@ namespace TrilinosWrappers
                                         */
       PreconditionBase ();
 
+      PreconditionBase (const PreconditionBase &);
+
                                        /**
-                                        * Constructor. Does not do
-                                        * anything. The
-                                        * <tt>initialize</tt> function
-                                        * of the derived classes will
-                                        * have to create the
-                                        * preconditioner from a given
-                                        * sparse matrix.
+                                        * Destructor.
                                         */
       ~PreconditionBase ();
       
index 6a8f4c9345f1d21bd8845414db3103ff0476937d..b6f821cd5bf713097282921cd11d15fb878e95b9 100755 (executable)
@@ -41,6 +41,18 @@ namespace TrilinosWrappers
 
 
 
+  PreconditionBase::PreconditionBase(const PreconditionBase &base)
+                    :
+                    Subscriptor (),
+                    preconditioner (base.preconditioner),
+#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
+                    communicator (base.communicator),
+#endif
+                   map (new Epetra_Map(*base.map))
+  {}
+
+
+
   PreconditionBase::~PreconditionBase()
   {
     preconditioner.release();

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.