]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix error: Multiple defs. of internal::SolverBicgstabData constructor
authorJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 8 Feb 2018 11:34:05 +0000 (12:34 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 8 Feb 2018 11:37:58 +0000 (12:37 +0100)
Relates to #5817

include/deal.II/lac/solver_bicgstab.h
source/lac/CMakeLists.txt
source/lac/solver_bicgstab.cc [new file with mode: 0644]

index 89089636cb641ef3f0a3f29fbd2c5da911ade528..70160571d91772a33862636fe12738d671c10019 100644 (file)
@@ -307,19 +307,6 @@ SolverBicgstab<VectorType>::IterationResult::IterationResult
 
 
 
-internal::SolverBicgstabData::SolverBicgstabData ()
-  :
-  alpha(0.),
-  beta(0.),
-  omega(0.),
-  rho(0.),
-  rhobar(0.),
-  step(numbers::invalid_unsigned_int),
-  res(numbers::signaling_nan<double>())
-{}
-
-
-
 template <typename VectorType>
 SolverBicgstab<VectorType>::SolverBicgstab (SolverControl            &cn,
                                             VectorMemory<VectorType> &mem,
index defcbb0fb2b69f6346183214ee5920e62e673fa0..641a066998f8dfc7d6875c3470df8131af133e15 100644 (file)
@@ -39,6 +39,7 @@ SET(_unity_include_src
   relaxation_block.cc
   read_write_vector.cc
   solver.cc
+  solver_bicgstab.cc
   solver_control.cc
   sparse_decomposition.cc
   sparse_direct.cc
diff --git a/source/lac/solver_bicgstab.cc b/source/lac/solver_bicgstab.cc
new file mode 100644 (file)
index 0000000..d49c7ef
--- /dev/null
@@ -0,0 +1,34 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 1998 - 2017 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+#include <deal.II/lac/solver_bicgstab.h>
+
+DEAL_II_NAMESPACE_OPEN
+
+
+internal::SolverBicgstabData::SolverBicgstabData ()
+  :
+  alpha(0.),
+  beta(0.),
+  omega(0.),
+  rho(0.),
+  rhobar(0.),
+  step(numbers::invalid_unsigned_int),
+  res(numbers::signaling_nan<double>())
+{}
+
+
+DEAL_II_NAMESPACE_CLOSE

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.