]> https://gitweb.dealii.org/ - dealii.git/commitdiff
lac/constraints_c1_02: Modernize test
authorMatthias Maier <tamiko@43-1.org>
Sat, 12 Aug 2017 04:54:59 +0000 (23:54 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 12 Aug 2017 04:54:59 +0000 (23:54 -0500)
tests/lac/constraints_c1_02.cc

index 1586820ea11510410fdfa437d222f43b14a2fa16..4db613b2c84337756d0b5b37d856efb41203ad89 100644 (file)
@@ -19,6 +19,7 @@
  * reduced test case from constraint_c1.cc, causes a hang in close()
  */
 
+#include "../tests.h"
 
 #include <deal.II/base/job_identifier.h>
 #include <deal.II/lac/constraint_matrix.h>
@@ -75,11 +76,8 @@ run()
 
 int main()
 {
+  initlog();
   deal_II_exceptions::disable_abort_on_exception();
 
-  const std::string logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
-
   run();
 }

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.