Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
58be00bb
Commit
58be00bb
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
force (trivial) interpolation matrices for ElementData: we know how to interpolate constants ;-)
parent
2352e5fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Post/PViewDataGModel.cpp
+19
-5
19 additions, 5 deletions
Post/PViewDataGModel.cpp
with
19 additions
and
5 deletions
Post/PViewDataGModel.cpp
+
19
−
5
View file @
58be00bb
...
@@ -164,8 +164,9 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat
...
@@ -164,8 +164,9 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat
}
}
}
}
// if we don't have interpolation matrices for a given element type,
// if we don't have interpolation matrices for a given element
// assume isoparametric elements
// type, assume isoparametric elements (except for ElementData,
// for which we know the interpolation: it's constant)
int
types
[]
=
{
TYPE_PNT
,
TYPE_LIN
,
TYPE_TRI
,
TYPE_QUA
,
TYPE_TET
,
TYPE_HEX
,
int
types
[]
=
{
TYPE_PNT
,
TYPE_LIN
,
TYPE_TRI
,
TYPE_QUA
,
TYPE_TET
,
TYPE_HEX
,
TYPE_PRI
,
TYPE_PYR
,
TYPE_POLYG
,
TYPE_POLYH
};
TYPE_PRI
,
TYPE_PYR
,
TYPE_POLYG
,
TYPE_POLYH
};
for
(
int
i
=
0
;
i
<
sizeof
(
types
)
/
sizeof
(
types
[
0
]);
i
++
){
for
(
int
i
=
0
;
i
<
sizeof
(
types
)
/
sizeof
(
types
[
0
]);
i
++
){
...
@@ -174,9 +175,22 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat
...
@@ -174,9 +175,22 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat
if
(
e
){
if
(
e
){
const
polynomialBasis
*
fs
=
e
->
getFunctionSpace
();
const
polynomialBasis
*
fs
=
e
->
getFunctionSpace
();
if
(
fs
){
if
(
fs
){
if
(
e
->
getPolynomialOrder
()
>
1
)
if
(
e
->
getPolynomialOrder
()
>
1
){
if
(
_type
==
ElementData
){
// data is constant per element: force the interpolation matrix
fullMatrix
<
double
>
coef
(
1
,
1
);
coef
(
0
,
0
)
=
1.0
;
fullMatrix
<
double
>
mono
(
3
,
1
);
mono
(
0
,
0
)
=
0
;
mono
(
0
,
1
)
=
0
;
mono
(
0
,
2
)
=
0
;
setInterpolationMatrices
(
types
[
i
],
coef
,
mono
,
fs
->
coefficients
,
fs
->
monomials
);
}
else
setInterpolationMatrices
(
types
[
i
],
fs
->
coefficients
,
fs
->
monomials
,
setInterpolationMatrices
(
types
[
i
],
fs
->
coefficients
,
fs
->
monomials
,
fs
->
coefficients
,
fs
->
monomials
);
fs
->
coefficients
,
fs
->
monomials
);
}
else
else
setInterpolationMatrices
(
types
[
i
],
fs
->
coefficients
,
fs
->
monomials
);
setInterpolationMatrices
(
types
[
i
],
fs
->
coefficients
,
fs
->
monomials
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment