Skip to content

Commit

Permalink
Merge pull request #6059 from tjhei/print-what-stokes-solver
Browse files Browse the repository at this point in the history
output which kind of Stokes solver is used
  • Loading branch information
gassmoeller authored Oct 10, 2024
2 parents 3d7368d + a40fa7c commit d769ee6
Show file tree
Hide file tree
Showing 997 changed files with 9,409 additions and 9,406 deletions.
14 changes: 13 additions & 1 deletion source/simulator/solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,19 @@ namespace aspect
Simulator<dim>::solve_stokes ()
{
TimerOutput::Scope timer (computing_timer, "Solve Stokes system");
pcout << " Solving Stokes system... " << std::flush;

const std::string name = [&]() -> std::string
{
if (parameters.stokes_solver_type == Parameters<dim>::StokesSolverType::block_gmg)
return "GMG";
if (parameters.use_direct_stokes_solver)
return "direct";
if (parameters.use_bfbt)
return "AMG-BFBT";
return "AMG";
}();

pcout << " Solving Stokes system (" << name << ")... " << std::flush;

if (parameters.stokes_solver_type == Parameters<dim>::StokesSolverType::block_gmg)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/2d_annulus_pyvista_cookbook/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 240 (144+24+72)

*** Timestep 0: t=0 years, dt=0 years
Solving temperature system... 0 iterations.
Solving Stokes system... 29+0 iterations.
Solving Stokes system (GMG)... 29+0 iterations.

Postprocessing:
RMS, max velocity: 0.000422 m/year, 0.000765 m/year
Expand Down
8 changes: 4 additions & 4 deletions tests/Picard_compressible/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Number of degrees of freedom: 53,952 (25,344+3,264+12,672+12,672)
*** Timestep 0: t=0 years, dt=0 years
Solving temperature system... 0 iterations.
Skipping plastic_strain composition solve because RHS is zero.
Solving Stokes system... 60+0 iterations.
Solving Stokes system (GMG)... 60+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 1: 0.0979426

Solving Stokes system... 70+0 iterations.
Solving Stokes system (GMG)... 70+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 2: 0.000868458

Solving Stokes system... 65+0 iterations.
Solving Stokes system (GMG)... 65+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 3: 5.63416e-05

Solving Stokes system... 51+0 iterations.
Solving Stokes system (GMG)... 51+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 4: 7.73424e-06


Expand Down
2 changes: 1 addition & 1 deletion tests/additional_outputs_02/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Number of degrees of freedom: 84 (50+9+25)
* evaluate called without additional outputs!
* evaluate called without additional outputs!
* evaluate called without additional outputs!
Solving Stokes system... 7+0 iterations.
Solving Stokes system (GMG)... 7+0 iterations.

Postprocessing:
* evaluate called without additional outputs!
Expand Down
2 changes: 1 addition & 1 deletion tests/additional_outputs_03/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ averaging!
* evaluate called without additional outputs!
* evaluate called without additional outputs!
* evaluate called without additional outputs!
Solving Stokes system... 7+0 iterations.
Solving Stokes system (GMG)... 7+0 iterations.

Postprocessing:
* evaluate called without additional outputs!
Expand Down
4 changes: 2 additions & 2 deletions tests/adiabatic_boundary/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Number of degrees of freedom: 20,381 (14,739+729+4,913)

*** Timestep 0: t=0 years, dt=0 years
Solving temperature system... 0 iterations.
Solving Stokes system... 52+0 iterations.
Solving Stokes system (GMG)... 52+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 1: 0.0326625

Solving Stokes system... 8+0 iterations.
Solving Stokes system (GMG)... 8+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 2: 2.80154e-09


Expand Down
2 changes: 1 addition & 1 deletion tests/adiabatic_conditions/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 40,836 (25,090+3,201+12,545)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 14+0 iterations.
Solving Stokes system (GMG)... 14+0 iterations.

Postprocessing:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Number of degrees of freedom: 53,381 (25,090+3,201+12,545+12,545)
*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Skipping C_1 composition solve because RHS is zero.
Solving Stokes system... 15+0 iterations.
Solving Stokes system (GMG)... 15+0 iterations.

Postprocessing:

Expand Down
2 changes: 1 addition & 1 deletion tests/adiabatic_conditions_function/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 3,556 (2,178+289+1,089)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 31+0 iterations.
Solving Stokes system (GMG)... 31+0 iterations.

Postprocessing:
Writing graphical output: output-adiabatic_conditions_function/solution/solution-00000
Expand Down
4 changes: 2 additions & 2 deletions tests/adiabatic_conditions_time_change/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 2,724 (1,666+225+833)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 14+0 iterations.
Solving Stokes system (GMG)... 14+0 iterations.

Postprocessing:

Expand All @@ -29,7 +29,7 @@ Number of degrees of freedom: 2,724 (1,666+225+833)

*** Timestep 1: t=1e-05 seconds, dt=1e-05 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 15+0 iterations.
Solving Stokes system (GMG)... 15+0 iterations.

Postprocessing:
Writing graphical output: output-adiabatic_conditions_time_change/solution/solution-00001
Expand Down
12 changes: 6 additions & 6 deletions tests/adiabatic_heating/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,47 @@ Number of degrees of freedom: 17,820 (10,914+1,449+5,457)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 23+0 iterations.
Solving Stokes system (GMG)... 23+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 1: t=5.73562e+12 seconds, dt=5.73562e+12 seconds
Solving temperature system... 8 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 2: t=1.14712e+13 seconds, dt=5.73562e+12 seconds
Solving temperature system... 13 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 3: t=1.72069e+13 seconds, dt=5.73562e+12 seconds
Solving temperature system... 12 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 4: t=2.29425e+13 seconds, dt=5.73562e+12 seconds
Solving temperature system... 11 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 5: t=2.5e+13 seconds, dt=2.0575e+12 seconds
Solving temperature system... 7 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Expand Down
12 changes: 6 additions & 6 deletions tests/adiabatic_heating_simplified/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,47 @@ Number of degrees of freedom: 17,820 (10,914+1,449+5,457)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 23+0 iterations.
Solving Stokes system (GMG)... 23+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 1: t=5.73562e+12 seconds, dt=5.73562e+12 seconds
Solving temperature system... 7 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 2: t=1.14712e+13 seconds, dt=5.73562e+12 seconds
Solving temperature system... 12 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 3: t=1.72069e+13 seconds, dt=5.73562e+12 seconds
Solving temperature system... 11 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 4: t=2.29425e+13 seconds, dt=5.73562e+12 seconds
Solving temperature system... 11 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Heating rate (average/total): -3.51e-11 W/kg, -194.5 W

*** Timestep 5: t=2.5e+13 seconds, dt=2.0575e+12 seconds
Solving temperature system... 7 iterations.
Solving Stokes system... 0+0 iterations.
Solving Stokes system (GMG)... 0+0 iterations.

Postprocessing:
Temperature min/avg/max: 1723 K, 1755 K, 1788 K
Expand Down
10 changes: 5 additions & 5 deletions tests/adiabatic_heating_with_melt/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Number of degrees of freedom: 9,825 (2,898+1,365+2,898+405+1,449+405+405)
Solving porosity system ... 0 iterations.
Skipping peridotite composition solve because RHS is zero.
Rebuilding Stokes preconditioner...
Solving Stokes system... 53+0 iterations.
Solving Stokes system (AMG)... 53+0 iterations.
Solving fluid velocity system... 1 iterations.
Relative nonlinear residuals (temperature, compositional fields, Stokes system): 1.88515e-16, 2.66112e-18, 0, 1
Relative nonlinear residual (total system) after nonlinear iteration 1: 1
Expand All @@ -16,7 +16,7 @@ Number of degrees of freedom: 9,825 (2,898+1,365+2,898+405+1,449+405+405)
Solving porosity system ... 0 iterations.
Skipping peridotite composition solve because RHS is zero.
Rebuilding Stokes preconditioner...
Solving Stokes system... 9+0 iterations.
Solving Stokes system (AMG)... 9+0 iterations.
Solving fluid velocity system... 1 iterations.
Relative nonlinear residuals (temperature, compositional fields, Stokes system): 1.88515e-16, 2.66112e-18, 0, 1.93773e-12
Relative nonlinear residual (total system) after nonlinear iteration 2: 1.93773e-12
Expand All @@ -31,7 +31,7 @@ Number of degrees of freedom: 9,825 (2,898+1,365+2,898+405+1,449+405+405)
Solving porosity system ... 0 iterations.
Skipping peridotite composition solve because RHS is zero.
Rebuilding Stokes preconditioner...
Solving Stokes system... 19+0 iterations.
Solving Stokes system (AMG)... 19+0 iterations.
Solving fluid velocity system... 1 iterations.
Relative nonlinear residuals (temperature, compositional fields, Stokes system): 2.71715e-06, 1.32825e-16, 0, 6.15476e-09
Relative nonlinear residual (total system) after nonlinear iteration 1: 2.71715e-06
Expand All @@ -46,7 +46,7 @@ Number of degrees of freedom: 9,825 (2,898+1,365+2,898+405+1,449+405+405)
Solving porosity system ... 0 iterations.
Skipping peridotite composition solve because RHS is zero.
Rebuilding Stokes preconditioner...
Solving Stokes system... 21+0 iterations.
Solving Stokes system (AMG)... 21+0 iterations.
Solving fluid velocity system... 1 iterations.
Relative nonlinear residuals (temperature, compositional fields, Stokes system): 2.95782e-06, 3.25641e-16, 0, 5.56585e-09
Relative nonlinear residual (total system) after nonlinear iteration 1: 2.95782e-06
Expand All @@ -61,7 +61,7 @@ Number of degrees of freedom: 9,825 (2,898+1,365+2,898+405+1,449+405+405)
Solving porosity system ... 0 iterations.
Skipping peridotite composition solve because RHS is zero.
Rebuilding Stokes preconditioner...
Solving Stokes system... 18+0 iterations.
Solving Stokes system (AMG)... 18+0 iterations.
Solving fluid velocity system... 1 iterations.
Relative nonlinear residuals (temperature, compositional fields, Stokes system): 6.16332e-08, 1.4301e-16, 0, 1.39165e-09
Relative nonlinear residual (total system) after nonlinear iteration 1: 6.16332e-08
Expand Down
2 changes: 1 addition & 1 deletion tests/adiabatic_initial_conditions/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 40,836 (25,090+3,201+12,545)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 14+0 iterations.
Solving Stokes system (GMG)... 14+0 iterations.

Postprocessing:
Writing graphical output: output-adiabatic_initial_conditions/solution/solution-00000
Expand Down
8 changes: 4 additions & 4 deletions tests/adiabatic_initial_conditions_chunk/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ Number of degrees of freedom: 1,444 (882+121+441)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 54+0 iterations.
Solving Stokes system (GMG)... 54+0 iterations.

Number of active cells: 130 (on 2 levels)
Number of degrees of freedom: 1,913 (1,170+158+585)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 185+0 iterations.
Solving Stokes system (GMG)... 185+0 iterations.

Number of active cells: 202 (on 3 levels)
Number of degrees of freedom: 3,001 (1,838+244+919)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 185+0 iterations.
Solving Stokes system (GMG)... 185+0 iterations.

Number of active cells: 352 (on 4 levels)
Number of degrees of freedom: 5,271 (3,234+420+1,617)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 184+0 iterations.
Solving Stokes system (GMG)... 184+0 iterations.

Postprocessing:
Writing depth average: output-adiabatic_initial_conditions_chunk/depth_average
Expand Down
2 changes: 1 addition & 1 deletion tests/adiabatic_initial_conditions_chunk_3d/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 3,041 (2,187+125+729)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 57+0 iterations.
Solving Stokes system (GMG)... 57+0 iterations.

Postprocessing:
Writing depth average: output-adiabatic_initial_conditions_chunk_3d/depth_average
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 40,836 (25,090+3,201+12,545)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 14+0 iterations.
Solving Stokes system (GMG)... 14+0 iterations.

Postprocessing:
Writing graphical output: output-adiabatic_initial_conditions_compressible/solution/solution-00000
Expand Down
2 changes: 1 addition & 1 deletion tests/adiabatic_initial_conditions_constant/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 40,836 (25,090+3,201+12,545)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 15+0 iterations.
Solving Stokes system (GMG)... 15+0 iterations.

Postprocessing:
Writing graphical output: output-adiabatic_initial_conditions_constant/solution/solution-00000
Expand Down
2 changes: 1 addition & 1 deletion tests/adiabatic_initial_conditions_points/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 40,836 (25,090+3,201+12,545)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 15+0 iterations.
Solving Stokes system (GMG)... 15+0 iterations.

Postprocessing:
Writing graphical output: output-adiabatic_initial_conditions_points/solution/solution-00000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 40,836 (25,090+3,201+12,545)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Solving Stokes system... 15+0 iterations.
Solving Stokes system (GMG)... 15+0 iterations.

Postprocessing:
Writing graphical output: output-adiabatic_initial_conditions_subadiabaticity/solution/solution-00000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Number of degrees of freedom: 10,436 (6,402+833+3,201)

*** Timestep 0: t=0 years, dt=0 years
Solving temperature system... 0 iterations.
Solving Stokes system... 14+0 iterations.
Solving Stokes system (GMG)... 14+0 iterations.

Postprocessing:
Temperature min/avg/max: 1200 K, 1485 K, 1889 K
Expand Down
4 changes: 2 additions & 2 deletions tests/adiabatic_plate_cooling/screen-output
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Number of degrees of freedom: 1,444 (882+121+441)

*** Timestep 0: t=0 years, dt=0 years
Solving temperature system... 0 iterations.
Solving Stokes system... 26+0 iterations.
Solving Stokes system (GMG)... 26+0 iterations.

Postprocessing:
Temperature min/avg/max: 293 K, 1130 K, 1623 K

*** Timestep 1: t=1 years, dt=1 years
Solving temperature system... 4 iterations.
Solving Stokes system... 34+0 iterations.
Solving Stokes system (GMG)... 34+0 iterations.

Postprocessing:
Temperature min/avg/max: 293 K, 1130 K, 1623 K
Expand Down
Loading

0 comments on commit d769ee6

Please sign in to comment.