Skip to content

Commit

Permalink
Added a test for parameter: Mesh/allow_uniform_refine_when_use_split=…
Browse files Browse the repository at this point in the history
…true

Closes idaholab#18575
  • Loading branch information
fdkong committed Aug 18, 2021
1 parent bbcf186 commit 2560eae
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 0 deletions.
49 changes: 49 additions & 0 deletions test/tests/mesh/split_uniform_refine/3d_diffusion.i
@@ -0,0 +1,49 @@
[Mesh]
[./square]
type = GeneratedMeshGenerator
nx = 16
ny = 16
nz = 16
dim = 3
[../]
[]

[Variables]
[./u]
[../]
[]

[Kernels]
[./diff]
type = Diffusion
variable = u
[../]
[]

[BCs]
[./left]
type = DirichletBC
variable = u
preset = false
boundary = 3
value = 0
[../]

[./right]
type = DirichletBC
variable = u
preset = false
boundary = 1
value = 1
[../]
[]

[Executioner]
type = Steady

solve_type = 'NEWTON'
[]

[Outputs]
exodus = true
[]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions test/tests/mesh/split_uniform_refine/tests
@@ -0,0 +1,21 @@
[Tests]
design = 'Mesh/index.md Mesh/splitting.md'

[./square]
type = 'Exodiff'
input = '3d_diffusion.i'
cli_args = '-r 1 Mesh/allow_uniform_refine_when_use_split=true --use-split --split-file square'
exodiff = '3d_diffusion_out.e'
# Pre-split mesh was generated for this particular configuration.
# MOOSE will check these when we read meshes from cpr files
# if (_error_on_different_number_of_processors && (this_n_procs != n_procs))
# mooseError("Cannot restart using a different number of processors!");
# if (_error_on_different_number_of_threads && (this_n_threads != n_threads))
# mooseError("Cannot restart using a different number of threads!");
min_parallel = 3
max_parallel = 3
max_threads = 1
issues = '#18575'
requirement = 'The system shall support optionally allowing uniform refinements when using a pre-split mesh'
[../]
[]

0 comments on commit 2560eae

Please sign in to comment.