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 regression test for AMR w/ high-order SCALARs #23075

Merged
merged 2 commits into from Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
89 changes: 89 additions & 0 deletions test/tests/adaptivity/scalar/scalar_adaptivity.i
@@ -0,0 +1,89 @@
[Mesh]
type = GeneratedMesh
dim = 2
nx = 10
ny = 10
xmin = -0.5
xmax = 0.5
ymin = -0.5
ymax = 0.5
[]

[Variables]
[scalar]
order = THIRD
family = SCALAR
[]
[u]
[InitialCondition]
type = FunctionIC
function = 'x*x+y*y'
[]
[]
[]

[Kernels]
[u_dot]
type = TimeDerivative
variable = u
[]
[c_res]
type = Diffusion
variable = u
[]
[]

[ScalarKernels]
[d1]
type = ODETimeDerivative
variable = scalar
[]
[]

[BCs]
[Periodic]
[all]
auto_direction = 'x y'
variable = 'u'
[]
[]
[]

[Preconditioning]
[SMP]
type = SMP
full = true
[]
[]

[Executioner]
type = Transient
solve_type = 'PJFNK'
petsc_options_iname = '-pc_type -sub_pc_type'
petsc_options_value = 'asm lu '
num_steps = 2
[]

[Adaptivity]
initial_steps = 2
max_h_level = 2
marker = EFM
[Markers]
[EFM]
type = ErrorFractionMarker
coarsen = 0.2
refine = 0.8
indicator = GJI
[]
[]
[Indicators]
[GJI]
type = GradientJumpIndicator
variable = u
[]
[]
[]

[Outputs]
exodus = true
[]
10 changes: 10 additions & 0 deletions test/tests/adaptivity/scalar/tests
@@ -0,0 +1,10 @@
[Tests]
issues = '#12538 #12309'
design = 'syntax/Adaptivity/index.md'
[./test]
type = 'Exodiff'
input = 'scalar_adaptivity.i'
exodiff = 'scalar_adaptivity_out.e-s002'
requirement = "The Adaptivity system shall support high-order SCALAR variables"
lindsayad marked this conversation as resolved.
Show resolved Hide resolved
[../]
[]