<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Ruhaan,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Try the solution found here</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://flash.rochester.edu/pipermail/flash-users/2023-June/004054.html" id="LPlnk">https://flash.rochester.edu/pipermail/flash-users/2023-June/004054.html</a></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Good luck!</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Graeme</div>
<div id="appendonsend"></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 Ruhaan Gupta <ruhaangupta3@gmail.com><br>
<b>Sent:</b> Wednesday, January 29, 2025 4:48 PM<br>
<b>To:</b> flash-users@flash.rochester.edu <flash-users@flash.rochester.edu><br>
<b>Subject:</b> [FLASH-USERS] Issues Running make in FLASH on Ubuntu (WSL)</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hello Flash users,
<div><br>
</div>
<div>I’m running FLASH4.8 on Ubuntu (WSL) on my Windows laptop and encountering persistent issues with make. I believe I have the necessary libraries installed:</div>
<div><br>
</div>
<div>sudo apt install libopenmpi-dev libhdf5-openmpi-dev openmpi-bin gfortran python3 (and i've installed PnetCDF)</div>
<div><br>
</div>
<div>In my Makefile.h (inside the object directory), I have set:<br>
</div>
MPI_PATH = /usr <br>
HDF5_PATH = /usr/local/hdf5<br>
<div><br>
</div>
<div>The first error I encounter is: <br>
</div>
<div>f951: Fatal Error: Reading module ‘iso_c_binding.mod’ at line 1 column 1: Unexpected EOF</div>
<div><br>
</div>
<div>I temporarily bypass this by commenting out the fake existence of iso_c_binding, but then I run into:</div>
<div><br>
</div>
<div> 536 | call MPI_Bcast(dtMinLoc(1), 5, MPI_INTEGER, pgmin, dr_globalComm, error)<br>
| 2<br>
......<br>
544 | call MPI_Bcast(extraHydroInfo, 1, FLASH_REAL, pgmin, dr_globalComm, error)<br>
| 1<br>
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).<br>
Driver_computeDt.F90:549:20:<br>
<br>
536 | call MPI_Bcast(dtMinLoc(1), 5, MPI_INTEGER, pgmin, dr_globalComm, error)<br>
| 2<br>
......<br>
549 | call MPI_Bcast(extraHydroInfo, 1, FLASH_REAL, pgmin, dr_globalComm, error)<br>
| 1<br>
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).<br>
make: *** [Makefile:132: Driver_computeDt.o] Error 1</div>
<div><br>
</div>
<div>Then, I fix this error by replacing the FLASH_REAL with MPI_DOUBLE_PRECISION in Driver_computeDt.F90. However, it just leads to more errors. As I try to fix each error, I end up getting more errors. </div>
<div><br>
</div>
<div>Is there something that I am doing wrong with the whole set up process? Is it normal to manually fix multiple errors to run 'make'? </div>
<div><br>
</div>
<div>Thank you for your help!</div>
<div>Ruhaan</div>
</div>
</div>
</div>
</div>
</body>
</html>