]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Rather than re-implementing things use them from the common header file.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 8 Dec 2010 02:59:21 +0000 (02:59 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 8 Dec 2010 02:59:21 +0000 (02:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@22942 0785d39b-7218-0410-832d-ea1e28bc413d

tests/serialization/tensor.cc

index 0d3c8e261943ce112aa7edaca837bed5bdd944d9..a55773cb8493dacbc6f64c185bc5336a2ad2e83c 100644 (file)
@@ -14,6 +14,7 @@
 // check serialization for Tensor<1,dim>
 
 #include "../tests.h"
+#include "serialization.h"
 #include <base/tensor.h>
 #include <base/logstream.h>
 #include <boost/archive/text_oarchive.hpp>
 #include <iomanip>
 
 
-template <typename T>
-void verify (const T &t1,
-            T &t2)
-{
-                                  // save data to archive
-  std::ostringstream oss;
-  {
-    boost::archive::text_oarchive oa(oss);
-    oa << t1;
-                                    // archive and stream closed when
-                                    // destructors are called
-  }
-  deallog << oss.str() << std::endl;
-
-                                  // verify correctness of the
-                                  // serialization
-  {
-    std::istringstream  iss(oss.str());
-    boost::archive::text_iarchive ia(iss);
-
-
-    ia >> t2;
-
-    Assert (t1 == t2, ExcInternalError());
-  }
-}
-
 
 void test ()
 {

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.