]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Create logfile before PetscInitialize.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Mon, 28 Nov 2005 09:40:45 +0000 (09:40 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Mon, 28 Nov 2005 09:40:45 +0000 (09:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@11791 0785d39b-7218-0410-832d-ea1e28bc413d

15 files changed:
tests/bits/petsc_deal_solver_01.cc
tests/bits/petsc_deal_solver_02.cc
tests/bits/petsc_deal_solver_03.cc
tests/bits/petsc_deal_solver_04.cc
tests/bits/petsc_deal_solver_05.cc
tests/bits/petsc_deal_solver_06.cc
tests/bits/petsc_solver_01.cc
tests/bits/petsc_solver_02.cc
tests/bits/petsc_solver_03.cc
tests/bits/petsc_solver_04.cc
tests/bits/petsc_solver_05.cc
tests/bits/petsc_solver_06.cc
tests/bits/petsc_solver_07.cc
tests/bits/petsc_solver_08.cc
tests/bits/petsc_solver_09.cc

index 036488737eae34b0adbc25db17d755d8dce832b1..3950ca6835c883d7b4da0c90202dcb9995c18ac2 100644 (file)
@@ -59,14 +59,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
+  std::ofstream logfile("petsc_deal_solver_01/output");
+  logfile.precision(4);
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
   PetscInitialize(&argc,&argv,0,0);
   {
-    std::ofstream logfile("petsc_deal_solver_01/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
-  deallog.threshold_double(1.e-10);
-  
     SolverControl control(100, 1.e-3);
 
     const unsigned int size = 32;
index 8d470b561da65e2262af00f21df9fef473c97d66..3092a5452f1db12cd618d7be76b3a067337a365f 100644 (file)
@@ -61,14 +61,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
-  PetscInitialize(&argc,&argv,0,0);
-  {
-    std::ofstream logfile("petsc_deal_solver_02/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_deal_solver_02/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;
index 952bba5a42c2f7c896c2d261ff7fe5d31dac2b6b..50b07be227d78f6f37045c5c082ddbd5ced30ab2 100644 (file)
@@ -61,14 +61,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
-  PetscInitialize(&argc,&argv,0,0);
-  {
-    std::ofstream logfile("petsc_deal_solver_03/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_deal_solver_03/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;
index 3169fa227ac79743a7e8436c666239cc6cfd55bc..99bc2f8af2fb76fa1b81537175b54bbb15346901 100644 (file)
@@ -60,14 +60,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
-  PetscInitialize(&argc,&argv,0,0);
-  {
-    std::ofstream logfile("petsc_deal_solver_04/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_deal_solver_04/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;
index 4f6d1b3406c61d669a927dfcfc2a181ce1107723..8b480620d16f760dc5ac0a447cadaf48d1af1998 100644 (file)
@@ -59,14 +59,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
-  PetscInitialize(&argc,&argv,0,0);
-  {
-    std::ofstream logfile("petsc_deal_solver_05/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_deal_solver_05/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;
index 3bccc1591af994af31a11e9b67025a03484a8efc..51106de7aed106c3c70dd0c5c119276882185adf 100644 (file)
@@ -58,15 +58,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
-  PetscInitialize(&argc,&argv,0,0);
-  {
-    std::ofstream logfile("petsc_deal_solver_06/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_deal_solver_06/output");
+  logfile.precision(4);
+  deallog.attach(logfile);
+  deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
-  
 
+  PetscInitialize(&argc,&argv,0,0);
+  {
     const unsigned int size = 32;
     unsigned int dim = (size-1)*(size-1);
     SolverControl control(10000, 1.e-3);
index a9003b34d167a6fc8350495c56d58df70760a3a4..1c394fd2f321110b7a446c027726fe76b3ce3086 100644 (file)
@@ -56,14 +56,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
-  PetscInitialize(&argc,&argv,0,0);
-  {
-    std::ofstream logfile("petsc_solver_01/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_01/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;
index f6cf1b18202526cf0e9cc296808dd892f0adf2a1..55121cc5f2c44b2b1805c44dfc249f7ad64a92e4 100644 (file)
@@ -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_02/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_02/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;
index 4483538d297060105233de6e25cda3dff86c9fc0..bce40988d49c4933ade432a0e7a5fd80bad5e6aa 100644 (file)
@@ -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_03/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_03/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;
index 552c36d4453200c89d02566e5e1aa2810c8ff8f9..67d2c7328af5b2d0203f47fa6ed564a8540900e8 100644 (file)
@@ -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_04/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_04/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;
index 3c8e2f5676d72b7229f26cce9b413aaef1667e51..5f28b9a229ecb8f4271cbc0e86e0aa6af647386f 100644 (file)
@@ -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_05/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_05/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;
index 1636922bc7d85d2e4a03a42d15f779724f4feeed..a578c7d28f2d5b0612d5b9b180d6125171129b1d 100644 (file)
@@ -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_06/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_06/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;
index 49761c7b9456ff7a1df0d69a953e6310960f41a7..c3fdf8ef374e5fd47549554289611687c8d52336 100644 (file)
@@ -54,14 +54,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
+  std::ofstream logfile("petsc_solver_07/output");
+  logfile.precision(4);
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
   PetscInitialize(&argc,&argv,0,0);
   {
-    std::ofstream logfile("petsc_solver_07/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
-  deallog.threshold_double(1.e-10);
-  
     SolverControl control(100, 1.e-3);
 
     const unsigned int size = 32;
index 5aab9da58ddfdc344dba83c32553e318796515e7..fe1ebfa2c74991787db0d43101cdd98788e349a2 100644 (file)
@@ -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_08/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_08/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;
index 7eedea3fa54ecbda3609047eb6efea7e8f9bf023..da0a0caf33c486eb3806a8191fb80f08949f38c9 100644 (file)
@@ -58,14 +58,14 @@ check_solve( SOLVER& solver, const MATRIX& A,
 
 int main(int argc, char **argv)
 {
-  PetscInitialize(&argc,&argv,0,0);
-  {
-    std::ofstream logfile("petsc_solver_09/output");
-    logfile.precision(4);
-    deallog.attach(logfile);
-    deallog.depth_console(0);
+  std::ofstream logfile("petsc_solver_09/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;

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.