Skip to content

Commit

Permalink
Added tests for PP functor dot and gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahansel authored and oanaoana committed Oct 19, 2023
1 parent d878777 commit 8ffdf9f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
26 changes: 26 additions & 0 deletions test/tests/functors/get_functor/get_functor.i
Expand Up @@ -11,6 +11,12 @@
[AuxVariables]
[testvar]
[]
[testppdot]
family = MONOMIAL
order = CONSTANT
[]
[testppdiv]
[]
[]

[AuxKernels]
Expand All @@ -20,6 +26,18 @@
function = testvar_fn
execute_on = 'INITIAL'
[]
[testppdot_auxkern]
type = TimeDerivativeAux
variable = testppdot
functor = testpp
[]
[testppdiv_auxkern]
type = DivergenceAux
variable = testppdiv
u = testpp
v = testpp
w = testpp
[]
[]

[FunctorMaterials]
Expand Down Expand Up @@ -71,6 +89,14 @@
value_type = max
execution_order_group = 1
[]
[get_ppdiv]
type = ElementAverageValue
variable = testppdiv
[]
[get_ppdot]
type = ElementAverageValue
variable = testppdot
[]
[]

[Problem]
Expand Down
4 changes: 2 additions & 2 deletions test/tests/functors/get_functor/gold/get_functor_out.csv
@@ -1,2 +1,2 @@
time,get_fmprop,get_fn,get_pp,get_var,testpp
0,45,22.5,2,5,2
time,get_fmprop,get_fn,get_pp,get_ppdiv,get_ppdot,get_var,testpp
0,45,22.5,2,0,0,5,2
2 changes: 2 additions & 0 deletions test/tests/functors/get_functor/tests
Expand Up @@ -6,6 +6,8 @@
type = CSVDiff
input = get_functor.i
csvdiff = get_functor_out.csv
allow_warnings = True # dot operator of PP functor will give warning
expect_out = 'The time derivative functor operator was called on the post-processor'
requirement = 'The system shall be able to use a variable, function, functor material property, and a post-processor in a functor parameter.'
[]
[]

0 comments on commit 8ffdf9f

Please sign in to comment.