Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
7baf635b
Commit
7baf635b
authored
Jun 17, 2011
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixes
parent
87eae5c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
12 deletions
+22
-12
src/h5core/h5t_model_tetm.c
src/h5core/h5t_model_tetm.c
+9
-5
src/h5core/h5t_model_trim.c
src/h5core/h5t_model_trim.c
+13
-7
No files found.
src/h5core/h5t_model_tetm.c
View file @
7baf635b
...
...
@@ -72,15 +72,19 @@ h5t_open_tetrahedral_mesh (
t
->
dsinfo_elems
.
type_id
=
t
->
dtypes
.
h5_tet_t
;
t
->
methods
=
tet_funcs
;
t
->
ref_elem
=
&
h5t_tet_ref_elem
;
TRY
(
open_tetmesh_group
(
f
,
id
));
if
(
id
==
-
1
)
{
// append new
id
=
t
->
num_meshes
;
t
->
num_meshes
++
;
t
->
mesh_changed
=
id
;
if
(
id
==
-
1
)
{
// add new
id
=
0
;
t
->
num_meshes
=
1
;
t
->
cur_mesh
=
0
;
t
->
mesh_changed
=
0
;
t
->
leaf_level
=
0
;
t
->
num_leaf_levels
=
0
;
TRY
(
open_tetmesh_group
(
f
,
id
));
}
else
{
// read existing
TRY
(
open_tetmesh_group
(
f
,
id
));
TRY
(
h5tpriv_read_mesh
(
f
));
t
->
leaf_level
=
0
;
}
H5_CORE_API_RETURN
(
H5_SUCCESS
);
}
...
...
src/h5core/h5t_model_trim.c
View file @
7baf635b
...
...
@@ -9,7 +9,9 @@ static struct h5t_methods tri_funcs = {
&
h5tpriv_trim_adjacency_methods
};
/*
Open container of triangle meshes
*/
static
inline
h5_err_t
open_trimeshes_group
(
h5_file_t
*
const
f
...
...
@@ -30,7 +32,7 @@ open_trimeshes_group (
}
/*
open HDF5 group with data of specific mesh.
Open container of specific triangle mesh
*/
static
inline
h5_err_t
open_trimesh_group
(
...
...
@@ -73,16 +75,20 @@ h5t_open_triangle_mesh (
t
->
dsinfo_elems
.
type_id
=
t
->
dtypes
.
h5_triangle_t
;
t
->
methods
=
tri_funcs
;
t
->
ref_elem
=
&
h5t_tri_ref_elem
;
TRY
(
open_trimesh_group
(
f
,
id
));
if
(
id
==
-
1
)
{
// add new
id
=
t
->
num_meshes
;
t
->
num_meshes
++
;
t
->
mesh_changed
=
id
;
id
=
0
;
t
->
num_meshes
=
1
;
t
->
cur_mesh
=
0
;
t
->
mesh_changed
=
0
;
t
->
leaf_level
=
0
;
t
->
num_leaf_levels
=
0
;
TRY
(
open_trimesh_group
(
f
,
0
));
}
else
{
// read existing
TRY
(
open_trimesh_group
(
f
,
0
));
TRY
(
h5tpriv_read_mesh
(
f
));
}
t
->
leaf_level
=
0
;
}
H5_CORE_API_RETURN
(
H5_SUCCESS
);
}
...
...
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