Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
4bdcbb0d
There was an error fetching the commit references. Please try again later.
Commit
4bdcbb0d
authored
6 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Fixed GlobalIndexType in VTKReader_libvtk.h
parent
ae571b72
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Meshes/Readers/VTKReader_libvtk.h
+11
-12
11 additions, 12 deletions
src/TNL/Meshes/Readers/VTKReader_libvtk.h
with
11 additions
and
12 deletions
src/TNL/Meshes/Readers/VTKReader_libvtk.h
+
11
−
12
View file @
4bdcbb0d
...
...
@@ -82,17 +82,16 @@ public:
TNL_ASSERT_EQ
(
this
->
verticesInEntities
.
at
(
this
->
meshDimension
),
subvertices
,
"numbers of cell subvertices do not match"
);
using
MeshBuilder
=
MeshBuilder
<
MeshType
>
;
using
VertexIndexType
=
typename
MeshType
::
MeshTraitsType
::
template
EntityTraits
<
0
>
::
GlobalIndexType
;
using
CellIndexType
=
typename
MeshType
::
MeshTraitsType
::
template
EntityTraits
<
MeshType
::
Config
::
meshDimension
>
::
GlobalIndexType
;
using
GlobalIndexType
=
typename
MeshType
::
GlobalIndexType
;
const
Vertex
IndexType
numberOfPoints
=
this
->
pointsData
.
size
();
const
Cel
lIndexType
numberOfCells
=
this
->
entityIdMappings
.
at
(
this
->
meshDimension
).
size
();
const
Global
IndexType
numberOfPoints
=
this
->
pointsData
.
size
();
const
Globa
lIndexType
numberOfCells
=
this
->
entityIdMappings
.
at
(
this
->
meshDimension
).
size
();
MeshBuilder
meshBuilder
;
meshBuilder
.
setPointsCount
(
numberOfPoints
);
meshBuilder
.
setCellsCount
(
numberOfCells
);
for
(
Vertex
IndexType
i
=
0
;
i
<
numberOfPoints
;
i
++
)
{
for
(
Global
IndexType
i
=
0
;
i
<
numberOfPoints
;
i
++
)
{
typename
MeshType
::
PointType
p
;
for
(
int
j
=
0
;
j
<
p
.
size
;
j
++
)
p
[
j
]
=
this
->
pointsData
.
at
(
i
)[
j
];
...
...
@@ -100,7 +99,7 @@ public:
}
const
auto
&
cellIdMap
=
this
->
entityIdMappings
.
at
(
this
->
meshDimension
);
for
(
Cel
lIndexType
i
=
0
;
i
<
numberOfCells
;
i
++
)
{
for
(
Globa
lIndexType
i
=
0
;
i
<
numberOfCells
;
i
++
)
{
const
VTKIndexType
vtkCellIndex
=
cellIdMap
.
at
(
i
);
const
auto
&
vtkCellSeeds
=
this
->
entitySeeds
.
at
(
vtkCellIndex
);
using
CellSeedType
=
typename
MeshBuilder
::
CellSeedType
;
...
...
@@ -129,19 +128,19 @@ public:
{
return
this
->
worldDimension
;
}
int
getMeshDimension
()
const
{
return
this
->
meshDimension
;
}
EntityShape
getCellShape
()
const
{
return
this
->
entityTypes
.
at
(
this
->
meshDimension
);
}
// int
// getVerticesInCell() const
// {
...
...
@@ -168,21 +167,21 @@ public:
// not stored in the VTK file
return
"int"
;
}
String
getLocalIndexType
()
const
{
// not stored in the VTK file
return
"short int"
;
}
String
getIdType
()
const
{
// not stored in the VTK file
return
"int"
;
}
protected
:
int
worldDimension
=
0
;
int
meshDimension
=
0
;
...
...
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