<div dir="ltr">Hi Klaus,<div><br></div><div>It works with -DH5_USE_16_API. I just happened to remove that.</div><div><br></div><div>Yingchao</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 16, 2018 at 11:18 AM Klaus Weide <<a href="mailto:klaus@flash.uchicago.edu">klaus@flash.uchicago.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 14 Oct 2018, Yingchao Lu wrote:<br>
<br>
> Hi,<br>
> <br>
> On edison.nersc, I got the error compiling eos_tabBrowsehdf5. The error<br>
> message is<br>
> <br>
> cc -fopenmp -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2<br>
> -DFLASH_OPENMP=1 -DFLASH_3T -DMAXBLOCKS=130 -DNXB=16 -DNYB=16 -DNZB=16<br>
> -DN_DIM=3 eos_tabBrowsehdf5.c<br>
<br>
> /opt/cray/pe/hdf5-parallel/<a href="http://1.10.1.1/GNU/5.1/include/H5version.h:417:19" rel="noreferrer" target="_blank">1.10.1.1/GNU/5.1/include/H5version.h:417:19</a>:<br>
> error: too few arguments to function 'H5Gopen2'<br>
> #define H5Gopen H5Gopen2<br>
> ^<br>
> eos_tabBrowsehdf5.c:50:11: note: in expansion of macro 'H5Gopen'<br>
> group = H5Gopen(oppf, groupName); //open groupName<br>
> ^~~~~~~<br>
> In file included from /opt/cray/pe/hdf5-parallel/<br>
> <a href="http://1.10.1.1/GNU/5.1/include/hdf5.h:29:0" rel="noreferrer" target="_blank">1.10.1.1/GNU/5.1/include/hdf5.h:29:0</a>,<br>
> from eos_tabBrowsehdf5.c:33:<br>
> /opt/cray/pe/hdf5-parallel/<a href="http://1.10.1.1/GNU/5.1/include/H5Gpublic.h:76:14" rel="noreferrer" target="_blank">1.10.1.1/GNU/5.1/include/H5Gpublic.h:76:14</a>:<br>
> note: declared here<br>
> H5_DLL hid_t H5Gopen2(hid_t loc_id, const char *name, hid_t gapl_id);<br>
> ^~~~~~~~<br>
<br>
Hello Yingchao,<br>
<br>
You compiler flags should include -DH5_USE_16_API to compile FLASH with <br>
HDF5, apparently that is not the case in this compilation.<br>
<br>
I think you will need to adjust the Makefile.h.<br>
<br>
> The system removed 1.8.x, which worked with no error before. What should I<br>
> do?<br>
<br>
Not sure how his relates to your error - the interface to the function <br>
H5Gopen appears to have changed earlier, before release 1.8.0, according <br>
to <a href="https://support.hdfgroup.org/HDF5/doc/RM/RM_H5G.html#Group-Open" rel="noreferrer" target="_blank">https://support.hdfgroup.org/HDF5/doc/RM/RM_H5G.html#Group-Open</a> .<br>
<br>
Klaus<br>
</blockquote></div>