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
8f31d8dd
Commit
8f31d8dd
authored
Sep 20, 2006
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/H5BlockTestAttributesF.f90
- added
parent
011128ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
0 deletions
+63
-0
.gitattributes
.gitattributes
+1
-0
test/H5BlockTestAttributesF.f90
test/H5BlockTestAttributesF.f90
+62
-0
No files found.
.gitattributes
View file @
8f31d8dd
...
...
@@ -100,6 +100,7 @@ test/H5BlockDissolveGhosts.c -text
test/H5BlockParTestScalarField.c -text
test/H5BlockParTestScalarField.pbs -text
test/H5BlockTestAttributes.c -text
test/H5BlockTestAttributesF.f90 -text
test/H5ParallelTest.cc -text
test/H5PartAndreasTest.cc -text
test/H5PartTest.cc -text
...
...
test/H5BlockTestAttributesF.f90
0 → 100644
View file @
8f31d8dd
PROGRAM
H5BlockTestAttributesF
IMPLICIT
NONE
INCLUDE
'mpif.h'
INCLUDE
'H5PartF90.inc'
INTERFACE
INTEGER
*
8
FUNCTION
write_file
(
fname
,
myproc
,
comm
,
layout
)
CHARACTER
(
LEN
=*
),
INTENT
(
IN
)
::
fname
INTEGER
,
INTENT
(
IN
)
::
myproc
INTEGER
,
INTENT
(
IN
)
::
comm
INTEGER
*
8
,
INTENT
(
IN
)
::
layout
(
6
)
END
FUNCTION
INTEGER
*
8
FUNCTION
read_file
(
fname
,
myproc
,
comm
,
layout
)
CHARACTER
(
LEN
=*
),
INTENT
(
IN
)
::
fname
INTEGER
,
INTENT
(
IN
)
::
myproc
INTEGER
,
INTENT
(
IN
)
::
comm
INTEGER
*
8
,
INTENT
(
IN
)
::
layout
(
6
)
END
FUNCTION
END
INTERFACE
INTEGER
::
myproc
INTEGER
::
nprocs
INTEGER
::
mpi_err
INTEGER
*
8
::
h5pt_err
INTEGER
::
comm
INTEGER
::
i
CHARACTER
(
LEN
=
32
)
::
arg_str
LOGICAL
::
opt_read
LOGICAL
::
opt_write
INTEGER
*
8
::
layout
(
6
)
! = ( 0, 64, 0, 64, 0, 512 )
CALL
MPI_Init
(
mpi_err
)
comm
=
MPI_COMM_WORLD
CALL
MPI_Comm_rank
(
comm
,
myproc
,
mpi_err
)
CALL
MPI_Comm_size
(
comm
,
nprocs
,
mpi_err
)
DO
i
=
1
,
IARGC
()
CALL
GETARG
(
i
,
arg_str
,
32
)
IF
(
arg_str
==
"-r"
)
THEN
opt_read
=
.TRUE.
ELSE
IF
(
arg_str
==
"-w"
)
THEN
opt_write
=
.TRUE.
ELSE
PRINT
*
,
"Illegal option "
,
arg_str
,
"\n"
PRINT
*
,
"Usage: H5BlockTestAttributesF -w | -r"
END
IF
END
DO
h5pt_err
=
h5pt_set_verbosity_level
(
4_8
)
IF
(
opt_write
)
THEN
h5pt_err
=
write_file
(
"blockfile0.h5"
,
myproc
,
comm
,
layout
)
ELSE
IF
(
opt_read
)
THEN
h5pt_err
=
read_file
(
"blockfile0.h5"
,
myproc
,
comm
,
layout
)
ENDIF
CALL
MPI_Finalize
()
END
PROGRAM
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