Skip to content

Commit

Permalink
Merge pull request #6123 from quangx/burstedde_bfbt_test
Browse files Browse the repository at this point in the history
Add Burstedde Weighted BFBT test
  • Loading branch information
gassmoeller authored Nov 11, 2024
2 parents cbcf865 + 4565bbf commit 2bfb836
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/burstedde_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/burstedde/burstedde.cc"
32 changes: 32 additions & 0 deletions tests/burstedde_bfbt.prm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Test burstedde benchmark using BFBT preconditioner

include $ASPECT_SOURCE_DIR/benchmarks/burstedde/burstedde.prm

set Dimension=3

subsection Mesh refinement
set Initial adaptive refinement = 0
set Initial global refinement = 2
set Refinement fraction = 0.2
set Strategy = velocity
end


subsection Solver parameters
subsection Stokes solver parameters
set Stokes solver type= block AMG
set Use full A block as preconditioner = true
set Number of cheap Stokes solver steps = 500
set Maximum number of expensive Stokes solver steps = 0
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
25 changes: 25 additions & 0 deletions tests/burstedde_bfbt/screen-output
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

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

Number of active cells: 64 (on 3 levels)
Number of degrees of freedom: 3,041 (2,187+125+729)

*** Timestep 0: t=0 seconds, dt=0 seconds
Rebuilding Stokes preconditioner...
Solving Stokes system (AMG-BFBT)... 159+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 1: 1

Rebuilding Stokes preconditioner...
Solving Stokes system (AMG-BFBT)... 0+0 iterations.
Relative nonlinear residual (Stokes system) after nonlinear iteration 2: 8.87564e-07


Postprocessing:
Writing graphical output: output-burstedde_bfbt/solution/solution-00000
RMS, max velocity: 4.3 m/s, 13.2 m/s
Errors u_L1, p_L1, u_L2, p_L2: 6.030147e-01, 1.447579e-03, 1.059175e+00, 3.017047e-03

Termination requested by criterion: end time



0 comments on commit 2bfb836

Please sign in to comment.