Skip to content

Commit 7cf725d

Browse files
committed
Fix tests.
Address suggestions from the PR.
1 parent 2f8ed02 commit 7cf725d

File tree

11 files changed

+33
-34
lines changed

11 files changed

+33
-34
lines changed

include/aspect/geometry_model/chunk.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,12 @@ namespace aspect
124124
*/
125125
double topography_for_point(const Point<dim> &x_y_z) const;
126126

127+
private:
127128
/**
128129
* A pointer to the topography model.
129130
*/
130131
const InitialTopographyModel::Interface<dim> *topo;
131132

132-
private:
133-
134133
/**
135134
* The minimum longitude of the domain.
136135
*/

source/geometry_model/chunk.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ namespace aspect
583583
Chunk<dim>::depth(const Point<dim> &position) const
584584
{
585585
// depth is defined wrt the reference surface point2[0]
586-
// plus topography. Negative depth is not allowed.
586+
// plus initial topography. Negative depth is not allowed.
587587
if (this->simulator_is_past_initialization() &&
588588
!Plugins::plugin_type_matches<const InitialTopographyModel::ZeroTopography<dim>>(this->get_initial_topography_model()))
589589
return std::min(std::max(point2[0]+ manifold->topography_for_point(position) - position.norm(), 0.), maximal_depth());
@@ -694,7 +694,7 @@ namespace aspect
694694
// the maximal depth really is the formula below, unless one applies a
695695
// topography that is always strictly below zero (i.e., where the
696696
// actual surface lies strictly below the reference surface).
697-
return point2[0] + manifold->topo->max_topography() - point1[0];
697+
return point2[0] + this->get_initial_topography_model().max_topography() - point1[0];
698698
}
699699

700700

tests/chunk_initial_topography_ascii_data/screen-output

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Number of degrees of freedom: 3,556 (2,178+289+1,089)
77

88
*** Timestep 0: t=0 years, dt=0 years
99
Solving temperature system... 0 iterations.
10-
Solving Stokes system (GMG)... 29+0 iterations.
10+
Solving Stokes system (GMG)... 28+0 iterations.
1111

1212
Postprocessing:
1313

14-
Model domain depth (m): 3e+06
14+
Model domain depth (m): 3.09e+06
1515
Temperature contrast across model domain (K): 3500
1616
Reference depth (m): 0
1717
Reference temperature (K): 1613
@@ -23,7 +23,7 @@ Number of degrees of freedom: 3,556 (2,178+289+1,089)
2323
Reference thermal conductivity (W/(m*K)): 4.7
2424
Reference viscosity (Pa*s): 1e+21
2525
Reference thermal diffusivity (m^2/s): 1.22101e-06
26-
Rayleigh number: 7.4479e+07
26+
Rayleigh number: 8.13852e+07
2727

2828
RMS, max velocity: 0.0119 m/year, 0.0933 m/year
2929
Temperature min/avg/max: 1613 K, 1613 K, 1613 K

tests/chunk_initial_topography_ascii_data/statistics

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# 16: Average nondimensional temperature (K)
1717
# 17: Minimum topography (m)
1818
# 18: Maximum topography (m)
19-
0 0.000000000000e+00 0.000000000000e+00 256 2467 1089 0 29 30 30 1.18604659e-02 9.33132004e-02 1.61300000e+03 1.61300000e+03 1.61300000e+03 4.40406633e-10 -4.75663606e+04 9.00000000e+04
19+
0 0.000000000000e+00 0.000000000000e+00 256 2467 1089 0 28 29 29 1.18604723e-02 9.33132938e-02 1.61300000e+03 1.61300000e+03 1.61300000e+03 4.40406633e-10 -4.75663606e+04 9.00000000e+04

tests/chunk_initial_topography_ascii_data_3d/screen-output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Number of degrees of freedom: 3,041 (2,187+125+729)
1111

1212
Postprocessing:
1313

14-
Model domain depth (m): 3e+06
14+
Model domain depth (m): 3.009e+06
1515
Temperature contrast across model domain (K): 3500
1616
Reference depth (m): 0
1717
Reference temperature (K): 1613
@@ -23,7 +23,7 @@ Number of degrees of freedom: 3,041 (2,187+125+729)
2323
Reference thermal conductivity (W/(m*K)): 4.7
2424
Reference viscosity (Pa*s): 1e+21
2525
Reference thermal diffusivity (m^2/s): 1.22101e-06
26-
Rayleigh number: 7.4479e+07
26+
Rayleigh number: 7.51513e+07
2727

2828
RMS, max velocity: 0.0442 m/year, 0.113 m/year
2929
Temperature min/avg/max: 1613 K, 1613 K, 1613 K

tests/chunk_initial_topography_ascii_data_3d/statistics

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# 16: Average nondimensional temperature (K)
1717
# 17: Minimum topography (m)
1818
# 18: Maximum topography (m)
19-
0 0.000000000000e+00 0.000000000000e+00 64 2312 729 0 23 24 24 4.42347040e-02 1.13166975e-01 1.61300000e+03 1.61300006e+03 1.61300000e+03 1.71059328e-08 -1.98131486e+03 8.99532925e+03
19+
0 0.000000000000e+00 0.000000000000e+00 64 2312 729 0 23 24 24 4.42347089e-02 1.13166977e-01 1.61300000e+03 1.61300006e+03 1.61300000e+03 1.71059328e-08 -1.98131486e+03 8.99532925e+03

tests/chunk_initial_topography_ascii_data_3d_colatitude/screen-output

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Number of degrees of freedom: 3,041 (2,187+125+729)
77

88
*** Timestep 0: t=0 years, dt=0 years
99
Solving temperature system... 0 iterations.
10-
Solving Stokes system (GMG)... 21+0 iterations.
10+
Solving Stokes system (GMG)... 20+0 iterations.
1111

1212
Postprocessing:
1313

14-
Model domain depth (m): 3e+06
14+
Model domain depth (m): 3.009e+06
1515
Temperature contrast across model domain (K): 3500
1616
Reference depth (m): 0
1717
Reference temperature (K): 1613
@@ -23,7 +23,7 @@ Number of degrees of freedom: 3,041 (2,187+125+729)
2323
Reference thermal conductivity (W/(m*K)): 4.7
2424
Reference viscosity (Pa*s): 1e+21
2525
Reference thermal diffusivity (m^2/s): 1.22101e-06
26-
Rayleigh number: 7.4479e+07
26+
Rayleigh number: 7.51513e+07
2727

2828
RMS, max velocity: 0.0124 m/year, 0.0606 m/year
2929
Temperature min/avg/max: 1613 K, 1613 K, 1613 K

tests/chunk_initial_topography_ascii_data_3d_colatitude/statistics

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# 16: Average nondimensional temperature (K)
1717
# 17: Minimum topography (m)
1818
# 18: Maximum topography (m)
19-
0 0.000000000000e+00 0.000000000000e+00 64 2312 729 0 21 22 22 1.24375134e-02 6.06479500e-02 1.61300000e+03 1.61300000e+03 1.61300000e+03 -1.75439514e-10 -1.95928291e+03 8.99918928e+03
19+
0 0.000000000000e+00 0.000000000000e+00 64 2312 729 0 20 21 21 1.24375096e-02 6.06479458e-02 1.61300000e+03 1.61300000e+03 1.61300000e+03 -1.75439514e-10 -1.95928291e+03 8.99918928e+03

tests/chunk_lithostatic_pressure_2d_initial_topography/screen-output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Number of degrees of freedom: 109 (50+9+25+25)
1111
Solving Stokes system (GMG)... 13+0 iterations.
1212

1313
Postprocessing:
14-
RMS, max velocity: 0.261 m/year, 0.401 m/year
15-
Pressure min/avg/max: -2.139e+09 Pa, 3.927e+10 Pa, 9.249e+10 Pa
14+
RMS, max velocity: 0.27 m/year, 0.427 m/year
15+
Pressure min/avg/max: -2.152e+09 Pa, 3.928e+10 Pa, 9.249e+10 Pa
1616
Writing graphical output: output-chunk_lithostatic_pressure_2d_initial_topography/solution/solution-00000
1717

1818
Termination requested by criterion: end time

tests/chunk_lithostatic_pressure_2d_initial_topography/solution/solution-00000.0000.gnuplot

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)