-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from gridap/changing_RT_order_definition
Changed the definition of order in Raviart-Thomas and Nedelec reffes
- Loading branch information
Showing
12 changed files
with
146 additions
and
32 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
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
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
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
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
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
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
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
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
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,46 @@ | ||
module NedelecRefFEsTest | ||
|
||
using Test | ||
using Gridap.Polynomials | ||
using Gridap.Fields | ||
using Gridap.TensorValues | ||
using Gridap.Fields: MockField | ||
using Gridap.ReferenceFEs | ||
|
||
p = QUAD | ||
D = num_dims(QUAD) | ||
et = Float64 | ||
order = 0 | ||
|
||
reffe = NedelecRefFE(et,p,order) | ||
test_reference_fe(reffe) | ||
@test num_terms(get_prebasis(reffe)) == 4 | ||
@test get_order(get_prebasis(reffe)) == 0 | ||
@test num_dofs(reffe) == 4 | ||
|
||
p = QUAD | ||
D = num_dims(QUAD) | ||
et = Float64 | ||
order = 1 | ||
|
||
reffe = NedelecRefFE(et,p,order) | ||
test_reference_fe(reffe) | ||
@test num_terms(get_prebasis(reffe)) == 12 | ||
@test num_dofs(reffe) == 12 | ||
@test get_order(get_prebasis(reffe)) == 1 | ||
|
||
prebasis = get_prebasis(reffe) | ||
dof_basis = get_dof_basis(reffe) | ||
|
||
v = VectorValue(3.0,0.0) | ||
field = MockField{D}(v) | ||
|
||
cache = dof_cache(dof_basis,field) | ||
r = evaluate_dof!(cache, dof_basis, field) | ||
test_dof(dof_basis,field,r) | ||
|
||
cache = dof_cache(dof_basis,prebasis) | ||
r = evaluate_dof!(cache, dof_basis, prebasis) | ||
test_dof(dof_basis,prebasis,r) | ||
|
||
end # module |
Oops, something went wrong.