Skip to content

Commit

Permalink
Merge pull request geodynamics#5906 from MFraters/add_extra_interpola…
Browse files Browse the repository at this point in the history
…tor_tester_coverage

Add tester coverage for particle interplator.
  • Loading branch information
gassmoeller authored Jun 14, 2024
2 parents 088b010 + 13f5ab9 commit ab14d5e
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/interpolor_particles_harmonic_average.prm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Test whether the interpolator reads the input correctly.
include $ASPECT_SOURCE_DIR/tests/time_stepping_repeat_particles.prm

set End time = 0.0

subsection Particles
set Interpolation scheme = harmonic average
set List of particle properties = initial position
end

subsection Compositional fields
set Number of fields = 0
set Names of fields =
set Compositional field methods =
set Mapped particle properties =
end


subsection Initial composition model
set Model name = unspecified
end
27 changes: 27 additions & 0 deletions tests/interpolor_particles_harmonic_average/screen-output
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Number of active cells: 128 (on 4 levels)
Number of degrees of freedom: 1,836 (1,122+153+561)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Advecting particles... done.
Solving Stokes system... 11+0 iterations.

Postprocessing:
Writing graphical output: output-interpolor_particles_harmonic_average/solution/solution-00000
Writing particle output: output-interpolor_particles_harmonic_average/particles/particles-00000

Termination requested by criterion: end time


+----------------------------------------------+------------+------------+
+----------------------------------+-----------+------------+------------+
+----------------------------------+-----------+------------+------------+

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
8 changes: 8 additions & 0 deletions tests/interpolor_particles_nearest_neighbor.prm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Test whether the interpolator reads the input correctly.
include $ASPECT_SOURCE_DIR/tests/time_stepping_repeat_particles.prm

set End time = 0.0

subsection Particles
set Interpolation scheme = nearest neighbor
end
28 changes: 28 additions & 0 deletions tests/interpolor_particles_nearest_neighbor/screen-output
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Number of active cells: 128 (on 4 levels)
Number of degrees of freedom: 2,958 (1,122+153+561+561+561)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Advecting particles... done.
Solving field system ... 0 iterations.
Solving Stokes system... 11+0 iterations.

Postprocessing:
Writing graphical output: output-interpolor_particles_nearest_neighbor/solution/solution-00000
Writing particle output: output-interpolor_particles_nearest_neighbor/particles/particles-00000

Termination requested by criterion: end time


+----------------------------------------------+------------+------------+
+----------------------------------+-----------+------------+------------+
+----------------------------------+-----------+------------+------------+

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
8 changes: 8 additions & 0 deletions tests/interpolor_particles_quadratic_least_squares.prm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Test whether the interpolator reads the input correctly.
include $ASPECT_SOURCE_DIR/tests/time_stepping_repeat_particles.prm

set End time = 0.0

subsection Particles
set Interpolation scheme = quadratic least squares
end
28 changes: 28 additions & 0 deletions tests/interpolor_particles_quadratic_least_squares/screen-output
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Number of active cells: 128 (on 4 levels)
Number of degrees of freedom: 2,958 (1,122+153+561+561+561)

*** Timestep 0: t=0 seconds, dt=0 seconds
Solving temperature system... 0 iterations.
Advecting particles... done.
Solving field system ... 0 iterations.
Solving Stokes system... 11+0 iterations.

Postprocessing:
Writing graphical output: output-interpolor_particles_quadratic_least_squares/solution/solution-00000
Writing particle output: output-interpolor_particles_quadratic_least_squares/particles/particles-00000

Termination requested by criterion: end time


+----------------------------------------------+------------+------------+
+----------------------------------+-----------+------------+------------+
+----------------------------------+-----------+------------+------------+

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------

0 comments on commit ab14d5e

Please sign in to comment.