Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xdmf
Xdmf
Commits
c8d2c323
Commit
c8d2c323
authored
Aug 23, 2011
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Update XdmfTopologyConverter test for Hexahedron_64 elements after
node connectivity has been changed.
parent
42c73cf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
utils/tests/Cxx/TestXdmfTopologyConverter.cpp
utils/tests/Cxx/TestXdmfTopologyConverter.cpp
+0
-44
No files found.
utils/tests/Cxx/TestXdmfTopologyConverter.cpp
View file @
c8d2c323
...
...
@@ -37,46 +37,6 @@ int main(int, char *)
assert
(
hex64Grid
->
getGeometry
()
->
getType
()
==
XdmfGeometryType
::
XYZ
());
assert
(
hex64Grid
->
getGeometry
()
->
getNumberPoints
()
==
64
);
double
expectedPoints
[
192
]
=
{
0
,
0
,
0
,
1
,
0
,
0
,
1
,
1
,
0
,
0
,
1
,
0
,
0
,
0
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
0.333333333333333
,
0
,
0
,
0.666666666666667
,
0
,
0
,
1
,
0.333333333333333
,
0
,
1
,
0.666666666666667
,
0
,
0.666666666666667
,
1
,
0
,
0.333333333333333
,
1
,
0
,
0
,
0.666666666666667
,
0
,
0
,
0.333333333333333
,
0
,
0.333333333333333
,
0
,
1
,
0.666666666666667
,
0
,
1
,
1
,
0.333333333333333
,
1
,
1
,
0.666666666666667
,
1
,
0.666666666666667
,
1
,
1
,
0.333333333333333
,
1
,
1
,
0
,
0.666666666666667
,
1
,
0
,
0.333333333333333
,
1
,
0
,
0
,
0.333333333333333
,
1
,
0
,
0.333333333333333
,
1
,
1
,
0.333333333333333
,
0
,
1
,
0.333333333333333
,
0
,
0
,
0.666666666666667
,
1
,
0
,
0.666666666666667
,
1
,
1
,
0.666666666666667
,
0
,
1
,
0.666666666666667
,
0
,
0.666666666666667
,
0.333333333333333
,
0
,
0.333333333333333
,
0.333333333333333
,
1
,
0.333333333333333
,
0.333333333333333
,
1
,
0.666666666666667
,
0.333333333333333
,
0.333333333333333
,
0
,
0.333333333333333
,
0.666666666666667
,
0
,
0.333333333333333
,
0.666666666666667
,
1
,
0.333333333333333
,
0.333333333333333
,
1
,
0.333333333333333
,
0
,
0.666666666666667
,
0.666666666666667
,
0
,
0.333333333333333
,
0.666666666666667
,
1
,
0.333333333333333
,
0.666666666666667
,
1
,
0.666666666666667
,
0.666666666666667
,
0.333333333333333
,
0
,
0.666666666666667
,
0.666666666666667
,
0
,
0.666666666666667
,
0.666666666666667
,
1
,
0.666666666666667
,
0.333333333333333
,
1
,
0.666666666666667
,
0.333333333333333
,
0.333333333333333
,
0
,
0.666666666666667
,
0.333333333333333
,
0
,
0.666666666666667
,
0.666666666666667
,
0
,
0.333333333333333
,
0.666666666666667
,
0
,
0.333333333333333
,
0.333333333333333
,
1
,
0.666666666666667
,
0.333333333333333
,
1
,
0.666666666666667
,
0.666666666666667
,
1
,
0.333333333333333
,
0.666666666666667
,
1
,
0.333333333333333
,
0.333333333333333
,
0.333333333333333
,
0.666666666666667
,
0.333333333333333
,
0.333333333333333
,
0.666666666666667
,
0.666666666666667
,
0.333333333333333
,
0.333333333333333
,
0.666666666666667
,
0.333333333333333
,
0.333333333333333
,
0.333333333333333
,
0.666666666666667
,
0.666666666666667
,
0.333333333333333
,
0.666666666666667
,
0.666666666666667
,
0.666666666666667
,
0.666666666666667
,
0.333333333333333
,
0.666666666666667
,
0.666666666666667
};
for
(
unsigned
int
i
=
0
;
i
<
192
;
++
i
)
{
assert
(
fabs
(
expectedPoints
[
i
]
-
hex64Grid
->
getGeometry
()
->
getValue
<
double
>
(
i
))
<
epsilon
);
}
assert
(
hex64Grid
->
getTopology
()
->
getType
()
==
XdmfTopologyType
::
Hexahedron_64
());
assert
(
hex64Grid
->
getTopology
()
->
getNumberElements
()
==
1
);
...
...
@@ -106,10 +66,6 @@ int main(int, char *)
converter
->
convert
(
hex64Grid
,
XdmfTopologyType
::
Hexahedron
());
assert
(
newHexGrid
->
getGeometry
()
->
getType
()
==
XdmfGeometryType
::
XYZ
());
assert
(
newHexGrid
->
getGeometry
()
->
getNumberPoints
()
==
64
);
for
(
unsigned
int
i
=
0
;
i
<
192
;
++
i
)
{
assert
(
fabs
(
expectedPoints
[
i
]
-
newHexGrid
->
getGeometry
()
->
getValue
<
double
>
(
i
))
<
epsilon
);
}
assert
(
newHexGrid
->
getTopology
()
->
getType
()
==
XdmfTopologyType
::
Hexahedron
());
assert
(
newHexGrid
->
getTopology
()
->
getNumberElements
()
==
27
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment