H5G_GROUP_F = H5G_DATASET_F ???

Does H5G_GROUP_F and H5G_DATASET_F has the same value? I have printed
them out, they are all zero!!!

DONG Li wrote:

Does H5G_GROUP_F and H5G_DATASET_F has the same value? I have printed
them out, they are all zero!!!
  

or may be not?

I have written a Fortran module <M> that will deal with HDF5 stuffs, and
another file <F> will call <M> to handle file IO. I have tested <M> in a
test program, and printed them out, the result is:
"
H5G_GROUP_F = 0
H5G_DATASET_F = 1
--> input_1d.h5
num_folder = 1
--> dynamic_quantities
num_card = 3
--> h
initial
--> u
initial
--> x
initial

"
and then test <F>, the result is:
"
H5G_GROUP_F = 0
H5G_DATASET_F = 0
--> input_1d.h5
num_folder = 1
--> dynamic_quantities
num_card = 3
--> h
initial
"
What is the problem?

Thanks for help!

���� �:

DONG Li wrote:

Does H5G_GROUP_F and H5G_DATASET_F has the same value? I have printed
them out, they are all zero!!!
  

or may be not?

I have written a Fortran module <M> that will deal with HDF5 stuffs,
and another file <F> will call <M> to handle file IO. I have tested
<M> in a test program, and printed them out, the result is:
"
H5G_GROUP_F = 0
H5G_DATASET_F = 1
--> input_1d.h5
num_folder = 1
--> dynamic_quantities
num_card = 3
--> h
initial
--> u
initial
--> x
initial

"
and then test <F>, the result is:
"
H5G_GROUP_F = 0
H5G_DATASET_F = 0
--> input_1d.h5
num_folder = 1
--> dynamic_quantities
num_card = 3
--> h
initial
"
What is the problem?

Thanks for help!

Ahha, I found where is the problem! I forgot to call initialization of
<M> to call "h5open_f"! :stuck_out_tongue: