[Flash-X-users] BlastMHD Compilation Issues

Buffaloe, Jesse jbuffal1 at vols.utk.edu
Wed Jun 29 14:02:20 CDT 2022


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


More information about the Flash-X-users mailing list