Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a simple working/not working test for Gauss-Lobatto quadrature.
- Loading branch information
1 parent
9d64f2f
commit 8f90ad2
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 1 | ||
ny = 1 | ||
nz = 0 | ||
elem_type = QUAD4 | ||
[] | ||
|
||
[Postprocessors] | ||
[./num_elem_qps] | ||
type = NumElemQPs | ||
block = 0 | ||
[../] | ||
[] | ||
|
||
[Problem] | ||
type = FEProblem | ||
solve = false | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
|
||
# In 1D, 5th-order Gauss-Lobatto quadrature has 4 points, so in 2D | ||
# it should have 16. | ||
[./Quadrature] | ||
type = GAUSS_LOBATTO | ||
order = FIFTH | ||
[../] | ||
[] | ||
|
||
[Outputs] | ||
output_initial = false | ||
exodus = false | ||
csv = true | ||
[./console] | ||
type = Console | ||
perf_log = false | ||
[../] | ||
[] |
3 changes: 3 additions & 0 deletions
3
test/tests/quadrature/gauss_lobatto/gold/gauss_lobatto_out.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
time,num_elem_qps | ||
1,16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Tests] | ||
[./gauss_lobatto] | ||
type = CSVDiff | ||
input = 'gauss_lobatto.i' | ||
csvdiff = 'gauss_lobatto_out.csv' | ||
[../] | ||
[] |