[cig-commits] [commit] master: add test for "Run postprocessors on initial refinement" (acec413)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri May 16 19:58:54 PDT 2014


Repository : https://github.com/geodynamics/aspect

On branch  : master
Link       : https://github.com/geodynamics/aspect/compare/cc43d3ac6f571573118eb54c2103bf92dfe8355f...acec41323e5fcfe14b650b3b50d94a02aed8a668

>---------------------------------------------------------------

commit acec41323e5fcfe14b650b3b50d94a02aed8a668
Author: Timo Heister <timo.heister at gmail.com>
Date:   Fri May 16 22:58:42 2014 -0400

    add test for "Run postprocessors on initial refinement"


>---------------------------------------------------------------

acec41323e5fcfe14b650b3b50d94a02aed8a668
 ...position-active.prm => postprocess_initial.prm} |  15 +--
 tests/postprocess_initial/screen-output            | 103 +++++++++++++++++++++
 tests/postprocess_initial/statistics               |  27 ++++++
 3 files changed, 139 insertions(+), 6 deletions(-)

diff --git a/tests/composition-active.prm b/tests/postprocess_initial.prm
similarity index 89%
copy from tests/composition-active.prm
copy to tests/postprocess_initial.prm
index 671c9cc..0342ceb 100644
--- a/tests/composition-active.prm
+++ b/tests/postprocess_initial.prm
@@ -1,11 +1,11 @@
 #########################################################
-# This is a variation of the platelike-boundary.prm file.
-# All settings are exactly the same with the exception
-# of the ones that pertain to compositional fields.
+# this tests that "Run postprocessors on initial refinement = true"
+# is working correctly (increasing the output id.
+
 
 set Dimension                              = 2
 set Start time                             = 0
-set End time                               = 4
+set End time                               = 1e-15
 set Use years in output instead of seconds = false
 
 
@@ -80,9 +80,12 @@ end
 
 
 subsection Mesh refinement
-  set Initial adaptive refinement        = 0
+  set Initial adaptive refinement        = 3
   set Initial global refinement          = 3
   set Time steps between mesh refinement = 0
+
+  set Run postprocessors on initial refinement = true
+
 end
 
 
@@ -91,7 +94,7 @@ subsection Postprocess
 
   subsection Visualization
     set List of output variables = density
-    set Time between graphical output = 0.1
+    set Time between graphical output = 0
   end
 end
 
diff --git a/tests/postprocess_initial/screen-output b/tests/postprocess_initial/screen-output
new file mode 100644
index 0000000..4071cd2
--- /dev/null
+++ b/tests/postprocess_initial/screen-output
@@ -0,0 +1,103 @@
+-----------------------------------------------------------------------------
+-- This is ASPECT, the Advanced Solver for Problems in Earth's ConvecTion.
+--     . running in DEBUG mode
+--     . running with 1 MPI process
+--     . using Trilinos
+-----------------------------------------------------------------------------
+
+Number of active cells: 64 (on 4 levels)
+Number of degrees of freedom: 1,526 (578+81+289+289+289)
+
+*** Timestep 0:  t=0 seconds
+   Solving temperature system... 0 iterations.
+   Solving composition system 1... 0 iterations.
+   Solving composition system 2... 0 iterations.
+   Rebuilding Stokes preconditioner...
+   Solving Stokes system... 22 iterations.
+
+   Postprocessing:
+     Writing graphical output:  output-postprocess_initial/solution-00000
+     Temperature min/avg/max:   0 K, 0.5 K, 1 K
+     Compositions min/max/mass: 0/1/0.4583 // 0/1/0.4583
+
+Number of active cells: 40 (on 4 levels)
+Number of degrees of freedom: 1,020 (386+55+193+193+193)
+
+*** Timestep 0:  t=0 seconds
+   Solving temperature system... 0 iterations.
+   Solving composition system 1... 0 iterations.
+   Solving composition system 2... 0 iterations.
+   Rebuilding Stokes preconditioner...
+   Solving Stokes system... 22 iterations.
+
+   Postprocessing:
+     Writing graphical output:  output-postprocess_initial/solution-00001
+     Temperature min/avg/max:   0 K, 0.5 K, 1 K
+     Compositions min/max/mass: 0/1/0.4583 // 0/1/0.4167
+
+Number of active cells: 64 (on 5 levels)
+Number of degrees of freedom: 1,703 (646+88+323+323+323)
+
+*** Timestep 0:  t=0 seconds
+   Solving temperature system... 0 iterations.
+   Solving composition system 1... 0 iterations.
+   Solving composition system 2... 0 iterations.
+   Rebuilding Stokes preconditioner...
+   Solving Stokes system... 22 iterations.
+
+   Postprocessing:
+     Writing graphical output:  output-postprocess_initial/solution-00002
+     Temperature min/avg/max:   0 K, 0.5 K, 1 K
+     Compositions min/max/mass: 0/1/0.3958 // 0/1/0.4167
+
+Number of active cells: 106 (on 6 levels)
+Number of degrees of freedom: 2,694 (1,022+139+511+511+511)
+
+*** Timestep 0:  t=0 seconds
+   Solving temperature system... 0 iterations.
+   Solving composition system 1... 0 iterations.
+   Solving composition system 2... 0 iterations.
+   Rebuilding Stokes preconditioner...
+   Solving Stokes system... 22 iterations.
+
+   Postprocessing:
+     Writing graphical output:  output-postprocess_initial/solution-00003
+     Temperature min/avg/max:   0 K, 0.5 K, 1 K
+     Compositions min/max/mass: -0.125/1/0.3946 // 0/1/0.4167
+
+*** Timestep 1:  t=1e-15 seconds
+   Solving temperature system... 0 iterations.
+   Solving composition system 1... 0 iterations.
+   Solving composition system 2... 0 iterations.
+   Rebuilding Stokes preconditioner...
+   Solving Stokes system... 0 iterations.
+
+   Postprocessing:
+     Writing graphical output:  output-postprocess_initial/solution-00004
+     Temperature min/avg/max:   0 K, 0.5 K, 1 K
+     Compositions min/max/mass: -0.125/1/0.3946 // 0/1/0.4167
+
+Termination requested by criterion: end time
+
+
++---------------------------------------------+------------+------------+
+| Total wallclock time elapsed since start    |     0.829s |            |
+|                                             |            |            |
+| Section                         | no. calls |  wall time | % of total |
++---------------------------------+-----------+------------+------------+
+| Assemble Stokes system          |         5 |     0.139s |        17% |
+| Assemble composition system     |        10 |     0.162s |        20% |
+| Assemble temperature system     |         5 |    0.0888s |        11% |
+| Build Stokes preconditioner     |         5 |     0.155s |        19% |
+| Build composition preconditioner|        10 |    0.0087s |       1.1% |
+| Build temperature preconditioner|         5 |   0.00437s |      0.53% |
+| Solve Stokes system             |         5 |    0.0261s |       3.1% |
+| Solve composition system        |        10 |   0.00333s |       0.4% |
+| Solve temperature system        |         5 |   0.00173s |      0.21% |
+| Initialization                  |         5 |    0.0301s |       3.6% |
+| Postprocessing                  |         5 |    0.0538s |       6.5% |
+| Refine mesh structure, part 1   |         3 |    0.0664s |         8% |
+| Refine mesh structure, part 2   |         3 |   0.00214s |      0.26% |
+| Setup dof systems               |         4 |      0.07s |       8.4% |
++---------------------------------+-----------+------------+------------+
+
diff --git a/tests/postprocess_initial/statistics b/tests/postprocess_initial/statistics
new file mode 100644
index 0000000..64babc6
--- /dev/null
+++ b/tests/postprocess_initial/statistics
@@ -0,0 +1,27 @@
+# 1: Time step number
+# 2: Time (seconds)
+# 3: Number of mesh cells
+# 4: Number of Stokes degrees of freedom
+# 5: Number of temperature degrees of freedom
+# 6: Number of composition degrees of freedom
+# 7: Iterations for temperature solver
+# 8: Iterations for composition solver 1
+# 9: Iterations for composition solver 2
+# 10: Iterations for Stokes solver
+# 11: Time step size (seconds)
+# 12: Visualization file name
+# 13: Minimal temperature (K)
+# 14: Average temperature (K)
+# 15: Maximal temperature (K)
+# 16: Average nondimensional temperature (K)
+# 17: Minimal value for composition 0
+# 18: Maximal value for composition 0
+# 19: Global mass for composition 0
+# 20: Minimal value for composition 1
+# 21: Maximal value for composition 1
+# 22: Global mass for composition 1
+0 0.0000e+00  64  659 289 289 0 0 0 22 1.0000e-15 output-postprocess_initial/solution-00000 0.00000000e+00 5.00000000e-01 1.00000000e+00 5.00000000e-01  0.00000000e+00 1.00000000e+00 4.58333333e-01 0.00000000e+00 1.00000000e+00 4.58333333e-01 
+0 0.0000e+00  40  441 193 193 0 0 0 22 1.0000e-15 output-postprocess_initial/solution-00001 0.00000000e+00 5.00000000e-01 1.00000000e+00 5.00000000e-01  0.00000000e+00 1.00000000e+00 4.58333333e-01 0.00000000e+00 1.00000000e+00 4.16666667e-01 
+0 0.0000e+00  64  734 323 323 0 0 0 22 1.0000e-15 output-postprocess_initial/solution-00002 0.00000000e+00 5.00000000e-01 1.00000000e+00 5.00000000e-01  0.00000000e+00 1.00000000e+00 3.95833333e-01 0.00000000e+00 1.00000000e+00 4.16666667e-01 
+0 0.0000e+00 106 1161 511 511 0 0 0 22 1.0000e-15 output-postprocess_initial/solution-00003 0.00000000e+00 5.00000000e-01 1.00000000e+00 5.00000000e-01 -1.25000000e-01 1.00000000e+00 3.94639757e-01 0.00000000e+00 1.00000000e+00 4.16666667e-01 
+1 1.0000e-15 106 1161 511 511 0 0 0  0 7.5368e-02 output-postprocess_initial/solution-00004 0.00000000e+00 5.00000000e-01 1.00000000e+00 5.00000000e-01 -1.25000000e-01 1.00000000e+00 3.94639757e-01 0.00000000e+00 1.00000000e+00 4.16666667e-01 



More information about the CIG-COMMITS mailing list