Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
00e0b543
Commit
00e0b543
authored
6 months ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[MeL/IO/XDMF] Pass parent_data_type (from TransformedMeshData) to transformTopology()
parent
33ebd88a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
MeshLib/IO/XDMF/XdmfHdfWriter.cpp
+3
-3
3 additions, 3 deletions
MeshLib/IO/XDMF/XdmfHdfWriter.cpp
MeshLib/IO/XDMF/transformData.cpp
+2
-1
2 additions, 1 deletion
MeshLib/IO/XDMF/transformData.cpp
MeshLib/IO/XDMF/transformData.h
+7
-5
7 additions, 5 deletions
MeshLib/IO/XDMF/transformData.h
with
12 additions
and
9 deletions
MeshLib/IO/XDMF/XdmfHdfWriter.cpp
+
3
−
3
View file @
00e0b543
...
...
@@ -108,9 +108,9 @@ XdmfHdfWriter::XdmfHdfWriter(
auto
const
geometry
=
transformGeometry
(
mesh
,
xdmf_conforming_data
->
flattened_geometry_values
.
data
(),
n_files
,
chunk_size_bytes
);
auto
const
topology
=
transformTopology
(
xdmf_conforming_data
->
flattened_topology_values
,
n_files
,
chunk_size_bytes
);
auto
const
topology
=
transformTopology
(
xdmf_conforming_data
->
flattened_topology_values
,
xdmf_conforming_data
->
parent_data_type
,
n_files
,
chunk_size_bytes
);
auto
const
attributes
=
transformAttributes
(
mesh
,
n_files
,
chunk_size_bytes
);
return
XdmfHdfMesh
{
std
::
move
(
geometry
),
std
::
move
(
topology
),
...
...
This diff is collapsed.
Click to expand it.
MeshLib/IO/XDMF/transformData.cpp
+
2
−
1
View file @
00e0b543
...
...
@@ -353,6 +353,7 @@ std::pair<std::vector<int>, ParentDataType> transformToXDMFTopology(
}
XdmfHdfData
transformTopology
(
std
::
vector
<
int
>
const
&
values
,
ParentDataType
const
parent_data_type
,
unsigned
int
const
n_files
,
unsigned
int
const
chunk_size_bytes
)
{
...
...
@@ -367,7 +368,7 @@ XdmfHdfData transformTopology(std::vector<int> const& values,
std
::
nullopt
,
3
,
n_files
,
std
::
nullopt
};
parent_data_type
};
return
XdmfHdfData
{
std
::
move
(
hdf
),
std
::
move
(
xdmf
)};
}
...
...
This diff is collapsed.
Click to expand it.
MeshLib/IO/XDMF/transformData.h
+
7
−
5
View file @
00e0b543
...
...
@@ -51,13 +51,15 @@ XdmfHdfData transformGeometry(MeshLib::Mesh const& mesh, double const* data_ptr,
/**
* \brief Create meta data for topology used for HDF5 and XDMF
* \param values actual topology values to get size and memory location
* \param n_files specifies the number of files. If greater than 1 it groups the
* data of each process to n_files
* \param chunk_size_bytes Data will be split into chunks. The parameter
* specifies the size (in bytes) of the largest chunk.
* \return Topology meta data
* \param parent_data_type XDMF topological element data types as listed in the
* enum ParentDataTypei
* \param n_files specifies the number of files. If greater
* than 1 it groups the data of each process to n_files \param chunk_size_bytes
* Data will be split into chunks. The parameter specifies the size (in bytes)
* of the largest chunk. \return Topology meta data
*/
XdmfHdfData
transformTopology
(
std
::
vector
<
int
>
const
&
values
,
ParentDataType
const
parent_data_type
,
unsigned
int
n_files
,
unsigned
int
chunk_size_bytes
);
/**
...
...
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