[FLASH-USERS] Issues Running make in FLASH on Ubuntu (WSL)
Ryan Farber
rjfarber at umich.edu
Wed Jan 29 20:11:34 EST 2025
Hi Ruhaan,
You can find the answer to the two issues you ran into by looking at the
FLASH-users mailing list archives (although good job perhaps
independently solving the iso_c_bindings issue).
You can do so by, for example. googling:
site:https://flash.rochester.edu/pipermail/flash-users/ type mismatch
The first link has the fix:
https://flash.rochester.edu/pipermail/flash-users/2023-June/004055.html
Best wishes,
--------
Ryan
On Wed, Jan 29, 2025 at 4:48 PM Ruhaan Gupta <ruhaangupta3 at gmail.com> wrote:
> Hello Flash users,
>
> 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:
>
> sudo apt install libopenmpi-dev libhdf5-openmpi-dev openmpi-bin gfortran
> python3 (and i've installed PnetCDF)
>
> In my Makefile.h (inside the object directory), I have set:
> MPI_PATH = /usr
> HDF5_PATH = /usr/local/hdf5
>
> The first error I encounter is:
> f951: Fatal Error: Reading module ‘iso_c_binding.mod’ at line 1 column 1:
> Unexpected EOF
>
> I temporarily bypass this by commenting out the fake existence of
> iso_c_binding, but then I run into:
>
> 536 | call MPI_Bcast(dtMinLoc(1), 5, MPI_INTEGER, pgmin,
> dr_globalComm, error)
> | 2
> ......
> 544 | call MPI_Bcast(extraHydroInfo, 1, FLASH_REAL, pgmin,
> dr_globalComm, error)
> | 1
> Error: Type mismatch between actual argument at (1) and actual argument at
> (2) (REAL(8)/INTEGER(4)).
> Driver_computeDt.F90:549:20:
>
> 536 | call MPI_Bcast(dtMinLoc(1), 5, MPI_INTEGER, pgmin,
> dr_globalComm, error)
> | 2
> ......
> 549 | call MPI_Bcast(extraHydroInfo, 1, FLASH_REAL, pgmin,
> dr_globalComm, error)
> | 1
> Error: Type mismatch between actual argument at (1) and actual argument at
> (2) (REAL(8)/INTEGER(4)).
> make: *** [Makefile:132: Driver_computeDt.o] Error 1
>
> 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.
>
> 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'?
>
> Thank you for your help!
> Ruhaan
> _______________________________________________
> flash-users mailing list
> flash-users at flash.rochester.edu
>
> For list info, including unsubscribe:
> https://flash.rochester.edu/mailman/listinfo/flash-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20250129/b0167717/attachment-0001.htm>
More information about the flash-users
mailing list