Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gassmoeller committed Oct 24, 2017
1 parent 1f56933 commit a5fdf10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion source/initial_temperature/random_perturbation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ namespace aspect
initial_temperature (const Point<dim> &position) const
{
std::size_t seed = point_hash(position);
boost::hash_combine(seed,0);

if (use_random_seed)
boost::hash_combine(seed,time(NULL));
Expand Down Expand Up @@ -109,7 +110,7 @@ namespace aspect
{
ASPECT_REGISTER_INITIAL_TEMPERATURE_MODEL(RandomPerturbation,
"random perturbation",
"An initial tempeature anomaly that perturbs the temperature "
"An initial temperature anomaly that perturbs the temperature "
"following a random noise with uniform distribution and user "
"specified magnitude.")
}
Expand Down
6 changes: 4 additions & 2 deletions tests/random_temperature_perturbation/screen-output
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------

Number of active cells: 64 (on 4 levels)
Number of degrees of freedom: 948 (578+81+289)

*** Timestep 0: t=0 years
Solving temperature system... 0 iterations.
Rebuilding Stokes preconditioner...
Solving Stokes system... 17+0 iterations.
Solving Stokes system... 18+0 iterations.

Postprocessing:
Temperature min/avg/max: 0.3017 K, 0.5073 K, 0.6952 K
Temperature min/avg/max: 0.3002 K, 0.5069 K, 0.6997 K

Termination requested by criterion: end time

Expand Down
2 changes: 1 addition & 1 deletion tests/random_temperature_perturbation/statistics
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# 11: Minimal temperature (K)
# 12: Average temperature (K)
# 13: Maximal temperature (K)
0 0.000000000000e+00 0.000000000000e+00 64 659 289 0 17 18 17 3.01709841e-01 5.07329437e-01 6.95230736e-01
0 0.000000000000e+00 0.000000000000e+00 64 659 289 0 18 19 18 3.00222459e-01 5.06886136e-01 6.99744700e-01

0 comments on commit a5fdf10

Please sign in to comment.