Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Nektar
Nektar
Commits
c6ce1117
Commit
c6ce1117
authored
Apr 13, 2018
by
Dave Moxey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issue with edges not being written in 1D
parent
08b211b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
library/SpatialDomains/MeshGraphXmlCompressed.cpp
library/SpatialDomains/MeshGraphXmlCompressed.cpp
+11
-3
No files found.
library/SpatialDomains/MeshGraphXmlCompressed.cpp
View file @
c6ce1117
...
...
@@ -1032,8 +1032,7 @@ void MeshGraphXmlCompressed::WriteEdges(TiXmlElement *geomTag,
}
TiXmlElement
*
edgeTag
=
new
TiXmlElement
(
m_meshDimension
==
1
?
"ELEMENT"
:
"EDGE"
);
string
tag
=
m_meshDimension
==
1
?
"S"
:
"E"
;
new
TiXmlElement
(
m_meshDimension
==
1
?
"S"
:
"EDGE"
);
vector
<
MeshEdge
>
edgeInfo
;
...
...
@@ -1056,7 +1055,16 @@ void MeshGraphXmlCompressed::WriteEdges(TiXmlElement *geomTag,
edgeTag
->
LinkEndChild
(
new
TiXmlText
(
edgeStr
));
geomTag
->
LinkEndChild
(
edgeTag
);
if
(
m_meshDimension
==
1
)
{
TiXmlElement
*
tmp
=
new
TiXmlElement
(
"ELEMENT"
);
tmp
->
LinkEndChild
(
edgeTag
);
geomTag
->
LinkEndChild
(
tmp
);
}
else
{
geomTag
->
LinkEndChild
(
edgeTag
);
}
}
void
MeshGraphXmlCompressed
::
WriteTris
(
TiXmlElement
*
faceTag
,
TriGeomMap
&
tris
)
...
...
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