Skip to content

Commit

Permalink
Adding a simple working/not working test for Gauss-Lobatto quadrature.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwpeterson committed Sep 25, 2014
1 parent 9d64f2f commit 8f90ad2
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
41 changes: 41 additions & 0 deletions test/tests/quadrature/gauss_lobatto/gauss_lobatto.i
@@ -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
[../]
[]
@@ -0,0 +1,3 @@
time,num_elem_qps
1,16

7 changes: 7 additions & 0 deletions test/tests/quadrature/gauss_lobatto/tests
@@ -0,0 +1,7 @@
[Tests]
[./gauss_lobatto]
type = CSVDiff
input = 'gauss_lobatto.i'
csvdiff = 'gauss_lobatto_out.csv'
[../]
[]

0 comments on commit 8f90ad2

Please sign in to comment.