Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
src
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
db81cb3d
Commit
db81cb3d
authored
Jul 11, 2013
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attachment test moved to examples
parent
4a8eedd3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
17 deletions
+26
-17
.gitattributes
.gitattributes
+1
-1
Makefile.am
examples/H5/Makefile.am
+6
-5
attach_file.c
examples/H5/attach_file.c
+18
-3
file_attribs.c
examples/H5/file_attribs.c
+0
-7
Makefile.am
test/Makefile.am
+1
-1
No files found.
.gitattributes
View file @
db81cb3d
...
...
@@ -364,6 +364,7 @@ doc/tetrahedron_refinements/6-edges/edge_01-12-20-23-30-31_refined/output_file.j
doc/tetrahedron_refinements/README -text
doc/tetrahedron_refinements/text2vtk.py -text
examples/H5/Makefile.am -text
examples/H5/attach_file.c -text
examples/H5/file_attribs.c -text
examples/H5/openclose.c -text
examples/H5Block/H5BlockExample.pbs -text
...
...
@@ -547,7 +548,6 @@ src/include/h5core/h5t_tags.h -text
src/include/h5core/h5u_io.h -text
src/include/h5core/h5u_model.h -text
test/Makefile.am -text
test/h5_attach_test.c -text
test/h5b_read.c -text
test/h5b_test.c -text
test/h5b_write.c -text
...
...
examples/H5/Makefile.am
View file @
db81cb3d
...
...
@@ -15,16 +15,17 @@ noinst_PROGRAMS =
if
ENABLE_C
noinst_PROGRAMS
+=
\
openclose
\
file_attribs
file_attribs
\
attach_file
endif
if
ENABLE_FORTRAN
noinst_PROGRAMS
+=
endif
EXTRA_PROGRAMS
=
openclose
#
EXTRA_PROGRAMS = openclose
openclose_SOURCES
=
openclose.c
#
openclose_SOURCES = openclose.c
%.o
:
%.f90
$(FC)
$(FFLAGS)
-c
$<
#
%.o : %.f90
#
$(FC) $(FFLAGS) -c $<
test/h5_attach_test
.c
→
examples/H5/attach_file
.c
View file @
db81cb3d
...
...
@@ -3,18 +3,33 @@
#include <stdlib.h>
#include <sys/stat.h>
#define FNAME "
h5_attach
.h5"
#define ATTACHMENT "
h5_attach_test
"
#define FNAME "
attach_file
.h5"
#define ATTACHMENT "
attach_file
"
#if !defined (PARALLEL_IO)
#define MPI_Init(argc, argv)
#define MPI_Comm_size(comm, nprocs) { *nprocs = 1; }
#define MPI_Comm_rank(comm, myproc) { *myproc = 0; }
#define MPI_Finalize()
#define MPI_COMM_WORLD (0)
#endif
int
main
(
int
argc
,
char
*
argv
[]
)
{
MPI_Comm
comm
=
MPI_COMM_WORLD
;
int
myproc
;
int
nprocs
;
MPI_Init
(
&
argc
,
&
argv
);
MPI_Comm_size
(
comm
,
&
nprocs
);
MPI_Comm_rank
(
comm
,
&
myproc
);
H5SetErrorHandler
(
H5AbortErrorhandler
);
H5SetVerbosityLevel
(
255
);
h5_file_t
f
=
H5OpenFile
(
FNAME
,
H5_O_WRONLY
,
0
);
h5_file_t
f
=
H5OpenFile
(
FNAME
,
H5_O_WRONLY
,
comm
);
H5AddAttachment
(
f
,
ATTACHMENT
);
H5CloseFile
(
f
);
f
=
H5OpenFile
(
FNAME
,
H5_O_RDONLY
,
0
);
...
...
examples/H5/file_attribs.c
View file @
db81cb3d
#include "H5hut.h"
#if !defined (PARALLEL_IO)
#define MPI_Init(argc, argv)
#define MPI_Comm_size(comm, nprocs) { *nprocs = 1; }
#define MPI_Comm_rank(comm, myproc) { *myproc = 0; }
#define MPI_Finalize()
#define MPI_COMM_WORLD (0)
#endif
int
main
(
...
...
test/Makefile.am
View file @
db81cb3d
...
...
@@ -7,7 +7,7 @@ LDADD += -lH5hut
noinst_PROGRAMS
=
if
ENABLE_C
noinst_PROGRAMS
+=
h5u_test h5b_test
h5_attach_test
noinst_PROGRAMS
+=
h5u_test h5b_test
endif
TESTS_ENVIRONMENT
=
env
LD_LIBRARY_PATH
=
@HDF5_PREFIX@/lib:
$(LD_LIBRARY_PATH)
...
...
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