From: hartmann Date: Mon, 28 Nov 2005 12:42:50 +0000 (+0000) Subject: Create logfile before PetscInitialize. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fedf5b38c9b6d9e35acf24deb694671e27de5af;p=dealii-svn.git Create logfile before PetscInitialize. git-svn-id: https://svn.dealii.org/trunk@11793 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/petsc_solver_10.cc b/tests/bits/petsc_solver_10.cc index 27c49e521f..f892851a2b 100644 --- a/tests/bits/petsc_solver_10.cc +++ b/tests/bits/petsc_solver_10.cc @@ -54,14 +54,14 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { - PetscInitialize(&argc,&argv,0,0); - { - std::ofstream logfile("petsc_solver_10/output"); - logfile.precision(4); - deallog.attach(logfile); - deallog.depth_console(0); + std::ofstream logfile("petsc_solver_10/output"); + logfile.precision(4); + deallog.attach(logfile); + deallog.depth_console(0); deallog.threshold_double(1.e-10); + PetscInitialize(&argc,&argv,0,0); + { SolverControl control(100, 1.e-3); const unsigned int size = 32; diff --git a/tests/bits/petsc_solver_11.cc b/tests/bits/petsc_solver_11.cc index 92e03a5799..173400e75d 100644 --- a/tests/bits/petsc_solver_11.cc +++ b/tests/bits/petsc_solver_11.cc @@ -55,14 +55,14 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { - PetscInitialize(&argc,&argv,0,0); - { - std::ofstream logfile("petsc_solver_11/output"); - logfile.precision(4); - deallog.attach(logfile); - deallog.depth_console(0); + std::ofstream logfile("petsc_solver_11/output"); + logfile.precision(4); + deallog.attach(logfile); + deallog.depth_console(0); deallog.threshold_double(1.e-10); + PetscInitialize(&argc,&argv,0,0); + { SolverControl control(100, 1.e-3); const unsigned int size = 32;