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
29efcefa
Commit
29efcefa
authored
Sep 14, 2006
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/H5Block.c
- H5Block3dGetPartitionOfProc() H5Block3dGetProcOf() * added
parent
3873af56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
src/H5Block.c
src/H5Block.c
+58
-0
No files found.
src/H5Block.c
View file @
29efcefa
...
...
@@ -460,6 +460,64 @@ H5BlockDefine3DFieldLayout(
return
H5PART_SUCCESS
;
}
h5part_int64_t
H5Block3dGetPartitionOfProc
(
H5PartFile
*
f
,
h5part_int64_t
proc
,
h5part_int64_t
*
i_start
,
h5part_int64_t
*
i_end
,
h5part_int64_t
*
j_start
,
h5part_int64_t
*
j_end
,
h5part_int64_t
*
k_start
,
h5part_int64_t
*
k_end
)
{
SET_FNAME
(
"H5Block3dGetProcOf"
);
CHECK_FILEHANDLE
(
f
);
CHECK_TIMEGROUP
(
f
);
if
(
(
proc
<
0
)
||
(
proc
>=
f
->
nprocs
)
)
return
-
1
;
struct
H5BlockPartition
*
p
=
&
f
->
block
->
write_layout
[(
size_t
)
proc
];
*
i_start
=
p
->
i_start
;
*
i_end
=
p
->
i_end
;
*
j_start
=
p
->
j_start
;
*
j_end
=
p
->
j_end
;
*
k_start
=
p
->
k_start
;
*
k_end
=
p
->
k_end
;
return
H5PART_SUCCESS
;
}
h5part_int64_t
H5Block3dGetProcOf
(
const
H5PartFile
*
f
,
h5part_int64_t
i
,
h5part_int64_t
j
,
h5part_int64_t
k
)
{
SET_FNAME
(
"H5Block3dGetProcOf"
);
CHECK_FILEHANDLE
(
f
);
CHECK_TIMEGROUP
(
f
);
struct
H5BlockPartition
*
layout
=
f
->
block
->
write_layout
;
int
proc
;
for
(
proc
=
0
;
proc
<
f
->
nprocs
;
proc
++
,
layout
++
)
{
if
(
(
layout
->
i_start
<=
i
)
&&
(
i
<=
layout
->
i_end
)
&&
(
layout
->
j_start
<=
j
)
&&
(
j
<=
layout
->
j_end
)
&&
(
layout
->
k_start
<=
k
)
&&
(
k
<=
layout
->
k_end
)
)
return
(
h5part_int64_t
)
proc
;
}
return
-
1
;
}
/********************** helper functions for reading and writing *************/
static
h5part_int64_t
...
...
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