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
6047d9bc
There was an error fetching the commit references. Please try again later.
Commit
6047d9bc
authored
6 years ago
by
Vít Hanousek
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into mpi-explosive
parents
dac69968
4bdcbb0d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TNL/Functions/FunctionAdapter.h
+4
-0
4 additions, 0 deletions
src/TNL/Functions/FunctionAdapter.h
src/TNL/Meshes/Readers/VTKReader_libvtk.h
+11
-12
11 additions, 12 deletions
src/TNL/Meshes/Readers/VTKReader_libvtk.h
with
15 additions
and
12 deletions
src/TNL/Functions/FunctionAdapter.h
+
4
−
0
View file @
6047d9bc
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
#pragma once
#pragma once
#include
<TNL/Devices/CudaCallable.h>
#include
<TNL/Config/ParameterContainer.h>
#include
<TNL/Functions/Domain.h>
namespace
TNL
{
namespace
TNL
{
namespace
Functions
{
namespace
Functions
{
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Meshes/Readers/VTKReader_libvtk.h
+
11
−
12
View file @
6047d9bc
...
@@ -82,17 +82,16 @@ public:
...
@@ -82,17 +82,16 @@ public:
TNL_ASSERT_EQ
(
this
->
verticesInEntities
.
at
(
this
->
meshDimension
),
subvertices
,
"numbers of cell subvertices do not match"
);
TNL_ASSERT_EQ
(
this
->
verticesInEntities
.
at
(
this
->
meshDimension
),
subvertices
,
"numbers of cell subvertices do not match"
);
using
MeshBuilder
=
MeshBuilder
<
MeshType
>
;
using
MeshBuilder
=
MeshBuilder
<
MeshType
>
;
using
VertexIndexType
=
typename
MeshType
::
MeshTraitsType
::
template
EntityTraits
<
0
>
::
GlobalIndexType
;
using
GlobalIndexType
=
typename
MeshType
::
GlobalIndexType
;
using
CellIndexType
=
typename
MeshType
::
MeshTraitsType
::
template
EntityTraits
<
MeshType
::
Config
::
meshDimension
>
::
GlobalIndexType
;
const
Vertex
IndexType
numberOfPoints
=
this
->
pointsData
.
size
();
const
Global
IndexType
numberOfPoints
=
this
->
pointsData
.
size
();
const
Cel
lIndexType
numberOfCells
=
this
->
entityIdMappings
.
at
(
this
->
meshDimension
).
size
();
const
Globa
lIndexType
numberOfCells
=
this
->
entityIdMappings
.
at
(
this
->
meshDimension
).
size
();
MeshBuilder
meshBuilder
;
MeshBuilder
meshBuilder
;
meshBuilder
.
setPointsCount
(
numberOfPoints
);
meshBuilder
.
setPointsCount
(
numberOfPoints
);
meshBuilder
.
setCellsCount
(
numberOfCells
);
meshBuilder
.
setCellsCount
(
numberOfCells
);
for
(
Vertex
IndexType
i
=
0
;
i
<
numberOfPoints
;
i
++
)
{
for
(
Global
IndexType
i
=
0
;
i
<
numberOfPoints
;
i
++
)
{
typename
MeshType
::
PointType
p
;
typename
MeshType
::
PointType
p
;
for
(
int
j
=
0
;
j
<
p
.
size
;
j
++
)
for
(
int
j
=
0
;
j
<
p
.
size
;
j
++
)
p
[
j
]
=
this
->
pointsData
.
at
(
i
)[
j
];
p
[
j
]
=
this
->
pointsData
.
at
(
i
)[
j
];
...
@@ -100,7 +99,7 @@ public:
...
@@ -100,7 +99,7 @@ public:
}
}
const
auto
&
cellIdMap
=
this
->
entityIdMappings
.
at
(
this
->
meshDimension
);
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
VTKIndexType
vtkCellIndex
=
cellIdMap
.
at
(
i
);
const
auto
&
vtkCellSeeds
=
this
->
entitySeeds
.
at
(
vtkCellIndex
);
const
auto
&
vtkCellSeeds
=
this
->
entitySeeds
.
at
(
vtkCellIndex
);
using
CellSeedType
=
typename
MeshBuilder
::
CellSeedType
;
using
CellSeedType
=
typename
MeshBuilder
::
CellSeedType
;
...
@@ -129,19 +128,19 @@ public:
...
@@ -129,19 +128,19 @@ public:
{
{
return
this
->
worldDimension
;
return
this
->
worldDimension
;
}
}
int
int
getMeshDimension
()
const
getMeshDimension
()
const
{
{
return
this
->
meshDimension
;
return
this
->
meshDimension
;
}
}
EntityShape
EntityShape
getCellShape
()
const
getCellShape
()
const
{
{
return
this
->
entityTypes
.
at
(
this
->
meshDimension
);
return
this
->
entityTypes
.
at
(
this
->
meshDimension
);
}
}
// int
// int
// getVerticesInCell() const
// getVerticesInCell() const
// {
// {
...
@@ -168,21 +167,21 @@ public:
...
@@ -168,21 +167,21 @@ public:
// not stored in the VTK file
// not stored in the VTK file
return
"int"
;
return
"int"
;
}
}
String
String
getLocalIndexType
()
const
getLocalIndexType
()
const
{
{
// not stored in the VTK file
// not stored in the VTK file
return
"short int"
;
return
"short int"
;
}
}
String
String
getIdType
()
const
getIdType
()
const
{
{
// not stored in the VTK file
// not stored in the VTK file
return
"int"
;
return
"int"
;
}
}
protected
:
protected
:
int
worldDimension
=
0
;
int
worldDimension
=
0
;
int
meshDimension
=
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