Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spherical nsinker weighted BFBT test #6081

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions tests/spherical_nsinker_bfbt.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
Copyright (C) 2022 by the authors of the ASPECT code.

This file is part of ASPECT.

ASPECT is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

ASPECT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ASPECT; see the file LICENSE. If not see
<http://www.gnu.org/licenses/>.
*/

#include "../benchmarks/nsinker_spherical_shell/nsinker.cc"
32 changes: 32 additions & 0 deletions tests/spherical_nsinker_bfbt.prm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
set Dimension = 3

include $ASPECT_SOURCE_DIR/benchmarks/nsinker_spherical_shell/gmg.prm

subsection Solver parameters
subsection Stokes solver parameters
set Use full A block as preconditioner = true
set Stokes solver type = block AMG
set Number of cheap Stokes solver steps = 500
set Maximum number of expensive Stokes solver steps = 1000
set Linear solver tolerance = 1e-6
set GMRES solver restart length = 100
set Use weighted BFBT for Schur complement = true
set Krylov method for cheap solver steps = GMRES
end

subsection AMG parameters
set AMG aggregation threshold = 0.02
end
end

subsection Mesh refinement
set Initial global refinement = 1
set Initial adaptive refinement = 0
end

subsection Postprocess
subsection Memory statistics
# disable as it is not deterministic:
set Output peak virtual memory (VmPeak) = false
end
end
28 changes: 28 additions & 0 deletions tests/spherical_nsinker_bfbt/screen-output
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------

Loading shared library <./libspherical_nsinker_bfbt.debug.so>

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Number of active cells: 768 (on 2 levels)
Number of degrees of freedom: 28,690 (20,790+970+6,930)

*** Timestep 0: t=0 seconds, dt=0 seconds
Rebuilding Stokes preconditioner...
Solving Stokes system (AMG-BFBT)... 65+0 iterations.

Postprocessing:
System matrix memory consumption: 35.11 MB
Writing graphical output: output-spherical_nsinker_bfbt/solution/solution-00000

Termination requested by criterion: end time


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

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