[Flash-X-users] BlastMHD Compilation Issues

Dubey, Anshu adubey at anl.gov
Wed Jun 29 16:18:12 CDT 2022


What most of these errors are telling me is that the code is not compatible with Flash-X. The interface for Grid_getCellCoords is different. The other issue is that variables for magnetic field are not defined.

On 6/29/22, 2:02 PM, "Flash-X-users on behalf of Buffaloe, Jesse" <flash-x-users-bounces at lists.cels.anl.gov on behalf of jbuffal1 at vols.utk.edu> wrote:

    All,

    While trying to compile the new BlastMHD test problem in the
    mhdBlastSetup branch, I receive the following error as a result of the
    '#include "Flash.h"' statement in Simulation_init.F90:

    "/usr/bin/mpif90 -I /usr/lib/x86_64-linux-gnu/hdf5/serial/include
    -DH5_USE_18_API -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8
    -ffree-line-length-none -Wuninitialized  -DMAXBLOCKS=1000 -DNXB=8
    -DNYB=8 -DNZB=1 -DN_DIM=2 Simulation_init.F90 -o Simulation_init.o
    Simulation_init.F90:34:2:

       34 |
          |  1
    Fatal Error: Flash.h: No such file or directory
    compilation terminated.
    make: *** [Makefile:116: Simulation_init.o] Error 1"

    There is also a similar include statement in Simulation_initBlock.F90.
    Based on the other test problems, I have tried replacing Flash.h with
    Simulation.h in these statements, but that leads to the following
    errors in Simulation_initBlock.F90:

    "/usr/bin/mpif90 -I /usr/lib/x86_64-linux-gnu/hdf5/serial/include
    -DH5_USE_18_API -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8
    -ffree-line-length-none -Wuninitialized  -DMAXBLOCKS=1000 -DNXB=8
    -DNYB=8 -DNZB=1 -DN_DIM=2 Simulation_initBlock.F90 -o
    Simulation_initBlock.o
    Simulation_initBlock.F90:42:48:

       42 |                              Grid_getCellCoords,     &
          |                                                1
    Error: Symbol ‘grid_getblkptr’ referenced at (1) not found in module
    ‘grid_interface’
    Simulation_initBlock.F90:43:44:

       43 |                              Grid_getBlkPtr,         &
          |                                            1
    Error: Symbol ‘grid_releaseblkptr’ referenced at (1) not found in
    module ‘grid_interface’
    Simulation_initBlock.F90:119:28:

      119 |            solnData(DIVB_VAR,i,j,k) = 0.
          |                            1
    Error: Symbol ‘divb_var’ at (1) has no IMPLICIT type
    Simulation_initBlock.F90:118:28:

      118 |            solnData(MAGP_VAR,i,j,k) = .5*(sim_magx**2 +
    sim_magy**2 + sim_magz**2)
          |                            1
    Error: Symbol ‘magp_var’ at (1) has no IMPLICIT type
    Simulation_initBlock.F90:115:28:

      115 |            solnData(MAGX_VAR,i,j,k) = sim_magx
          |                            1
    Error: Symbol ‘magx_var’ at (1) has no IMPLICIT type
    Simulation_initBlock.F90:116:28:

      116 |            solnData(MAGY_VAR,i,j,k) = sim_magy
          |                            1
    Error: Symbol ‘magy_var’ at (1) has no IMPLICIT type
    Simulation_initBlock.F90:117:28:

      117 |            solnData(MAGZ_VAR,i,j,k) = sim_magz
          |                            1
    Error: Symbol ‘magz_var’ at (1) has no IMPLICIT type
    Simulation_initBlock.F90:81:77:

       81 |   if (NDIM == 3) call Grid_getCellCoords(KAXIS, blockId,
    CENTER,sim_gCell, zCoord, sizeZ)
          |
                 1
    Error: There is no specific subroutine for the generic
    ‘grid_getcellcoords’ at (1)
    Simulation_initBlock.F90:82:77:

       82 |   if (NDIM >= 2) call Grid_getCellCoords(JAXIS, blockId,
    CENTER,sim_gCell, yCoord, sizeY)
          |
                 1
    Error: There is no specific subroutine for the generic
    ‘grid_getcellcoords’ at (1)
    Simulation_initBlock.F90:83:66:

       83 |   call Grid_getCellCoords(IAXIS, blockId, CENTER, sim_gCell,
    xCoord, sizeX)
          |                                                                  1
    Error: There is no specific subroutine for the generic
    ‘grid_getcellcoords’ at (1)
    make: *** [Makefile:116: Simulation_initBlock.o] Error 1"

    Regards,
    Jesse Buffaloe
    -- 
    Flash-X-users mailing list
    Flash-X-users at lists.cels.anl.gov
    https://lists.cels.anl.gov/mailman/listinfo/flash-x-users



More information about the Flash-X-users mailing list