<div dir="ltr">Thanks a lot Evan!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 14, 2022 at 11:12 PM Evan Patrick O'Connor <<a href="mailto:evan.oconnor@astro.su.se">evan.oconnor@astro.su.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi,<br>
<br>
You can find many tables in this format here: <a href="https://ttt.astro.su.se/~eoco/eos.html" target="_blank">https://ttt.astro.su.se/~eoco/eos.html</a><br>
<br>
Set the eos_table variable in the par file to the path to one of these tables. <br>
<br>
If you have any questions about them, please do ask. <br>
<br>
Evan
<hr style="display:inline-block;width:98%">
<div id="gmail-m_64847846185562064divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> kiyarash Taghiniyarami <<a href="mailto:kiyarash.niyarami@gmail.com" target="_blank">kiyarash.niyarami@gmail.com</a>><br>
<b>Sent:</b> Monday, February 14, 2022 8:29:11 PM<br>
<b>To:</b> Evan Patrick O'Connor; <a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a><br>
<b>Subject:</b> Re: [FLASH-USERS] Fortran interface of the HDF5 library for CCSN1d</font>
<div> </div>
</div>
<div>
<div dir="ltr"> Dear Evan,<br>
Thank you, that resolves the issue, but now there is another problem with running the code. I attached it as a note file to the email.<br>
It seems due to the Shen et al Nuclear EoS table.<br>
In the EosNuclear/config there is a line:<br>
D eos_file Filename of the table. Data may be found at <a href="http://stellarcollapse.org/equationofstate" target="_blank">
stellarcollapse.org/equationofstate</a>.<br>
PARAMETER eos_file STRING "myshen_test_220r_180t_50y_extT_analmu_20100322_SVNr28.h5"<br>
<br>
So do you know how to resolve this?<br>
<br>
Best,<br>
Khodayar</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Feb 9, 2022 at 11:21 PM Evan Patrick O'Connor <<a href="mailto:evan.oconnor@astro.su.se" target="_blank">evan.oconnor@astro.su.se</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div id="gmail-m_64847846185562064gmail-m_-4193296827410857882divtagdefaultwrapper" 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%">
<div id="gmail-m_64847846185562064gmail-m_-4193296827410857882divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> flash-users <<a href="mailto:flash-users-bounces@flash.rochester.edu" target="_blank">flash-users-bounces@flash.rochester.edu</a>>
on behalf of kiyarash Taghiniyarami <<a href="mailto:kiyarash.niyarami@gmail.com" target="_blank">kiyarash.niyarami@gmail.com</a>><br>
<b>Sent:</b> Monday, February 7, 2022 9:50:11 PM<br>
<b>To:</b> <a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a><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>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>