<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I see this too. This seems to stem from the top of that file.</p>
<p><br>
</p>
<p>#ifdef HAVE_HDF5_FORTRAN</p>
<p>#define IO_USE_HDF5_MOD HAVE_HDF5_FORTRAN</p>
<p>#else</p>
<p>#ifdef FLASH_HAVE_HDF5_MOD</p>
<p>#define IO_USE_HDF5_MOD FLASH_HAVE_HDF5_MOD</p>
<p>#endif</p>
<p>#endif</p>
<p><br>
</p>
<p>the variable <font size="3">FLASH_HAVE_HDF5_MOD is defined in </font>the Flash.h file but it is not set to anything (the line is just #define FLASH_HAVE_HDF5_MOD) so then the variable <span style="font-size: 12pt;">IO_USE_HDF5_MOD is defined, but not set
to anything. That is why there are issues on line 47 and 60. A quick fix (caveat: I don't know the full details of the difference between </span><span style="font-size: 12pt;">HAVE_HDF5_FORTRAN and </span><span style="font-size: 12pt;">FLASH_HAVE_HDF5_MOD)
is to just replace</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p>#define IO_USE_HDF5_MOD FLASH_HAVE_HDF5_MOD<span style="font-size: 12pt;"><br>
</span></p>
<p><br>
</p>
<p>with</p>
<p><br>
</p>
<p>#define IO_USE_HDF5_MOD 1<br>
</p>
<p><br>
</p>
<p>with that I can get ccsn1d to build successfully in 4.6.2</p>
<p><br>
</p>
<p>Evan</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> flash-users <flash-users-bounces@flash.rochester.edu> on behalf of kiyarash Taghiniyarami <kiyarash.niyarami@gmail.com><br>
<b>Sent:</b> Monday, February 7, 2022 9:50:11 PM<br>
<b>To:</b> flash-users@flash.rochester.edu<br>
<b>Subject:</b> [FLASH-USERS] Fortran interface of the HDF5 library for CCSN1d</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear all FLASH users,<br>
<br>
I tried to compile a core collapse supernova in 1D but still do not want to change the <span style="color:rgb(0,0,0);white-space:pre-wrap"><b>source/physics/Eos/EosNuclear/Config
</b>because I need to work with EosNuclear as well. To do so, the HDF5 needs Fortran bindings and I build it with the following command:
</span><b>CC=/home/taghinia/FLASH/MPICH/mpich-install/bin/mpicc /home/taghinia/FLASH/HDF5/hdf5-1.10.5/configure --prefix=/home/taghinia/FLASH/HDF5/HDF5-install-oldversion/ --enable-fortran --enable-parallel --enable-shared --with-pic --with-default-api-version=v16
--with-zlib=/home/taghinia/FLASH/zlib/zlib-install/include,/home/taghinia/FLASH/zlib/zlib-install/lib<br>
</b><br>
but it seems not working properly because after CCSN1D compilation I get the following error:<br>
<b>io_intfTypesModule.F90:47:0:<br>
<br>
47 | #if IO_USE_HDF5_MOD == 0<br>
| <br>
Error: operator '==' has no left operand<br>
io_intfTypesModule.F90:60:0:<br>
<br>
60 | #if (IO_USE_HDF5_MOD != 0)<br>
| <br>
Error: operator '!=' has no left operand<br>
/home/taghinia/FLASH/MPICH/mpich-install/bin/mpif90 -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized -g -O2 -Wno-argument-mismatch -DMAXBLOCKS=1000 -DNXB=16 -DNYB=1 -DNZB=1 -DN_DIM=1 Logfile_data.F90<br>
io_intfTypesModule.F90:66:42:</b><br>
<br>
<b> 66 | integer,parameter :: io_fileID_t = FLASH_IO_FILEID_T<br>
| 1<br>
Error: Symbol ‘hid_t’ at (1) has no IMPLICIT type<br>
make: *** [Makefile:115: io_intfTypesModule.mod] Error 1<br>
make: *** Waiting for unfinished jobs....</b><br>
<span style="color:rgb(0,0,0);white-space:pre-wrap">I also made some changes to the Makefile.h as:
</span>
<pre style="white-space:pre-wrap;color:rgb(0,0,0)">F90FLAGS = -I ${HDF5_PATH}/include -DH5_USE_16_API
LIB_HDF5 = -L${HDF5_PATH}/lib -lhdf5_fortran -lhdf5 -lz </pre>
<span style="color:rgb(0,0,0);white-space:pre-wrap">but got the same error. Could anyone help me with that? Kind Regards, Khodayar
</span></div>
</div>
</body>
</html>