From: wolf Date: Mon, 9 Sep 2002 23:20:36 +0000 (+0000) Subject: Remove tmp file again. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12bf78e15ca9effc6c35eb3e85c3a97329f050b6;p=dealii-svn.git Remove tmp file again. git-svn-id: https://svn.dealii.org/trunk@6380 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/sparse_matrices.cc b/tests/lac/sparse_matrices.cc index 94c7f47f83..e2469c2cd4 100644 --- a/tests/lac/sparse_matrices.cc +++ b/tests/lac/sparse_matrices.cc @@ -25,6 +25,8 @@ #include #include +#include + #define PREC_CHECK(solver, method, precond) try \ { solver.method (A, u, f, precond); } catch (...) {} \ @@ -157,7 +159,8 @@ int main() << std::endl; // dump A into a file, and re-read - // it, then check equality + // it, then delete tmp file and + // check equality std::ofstream tmp_write ("sparse_matrices.tmp"); A.block_write (tmp_write); tmp_write.close (); @@ -168,6 +171,8 @@ int main() A_tmp.block_read (tmp_read); tmp_read.close (); + remove ("sparse_matrices.tmp"); + for (unsigned int i=0; i