mbdevpl / transpyle-flash

0 stars 1 forks source link

NotImplementedError in hy_8wv_sweep (B) #5

Open chaw0023 opened 6 years ago

chaw0023 commented 6 years ago

Error::

NotImplementedError: cannot convert intrinsic call from raw AST: TINY(1.0)

in file: (B) source/physics/Hydro/HydroMain/split/MHD_8Wave/hy_8wv_sweep

A test case which uses this file is mhd rotor problem. i.e. ./setup magnetoHD/CurrentSheet -auto -2d -objdir=mhdrotor -site=sauc.xps -gridinterpolation=native -debug

mbdevpl commented 6 years ago

Saurabh, I've resolved the issue of tiny (and several other issues) with regard to transpiling this kernel, however, I'm still unable to make this case run. And actually, even if I try to build FLASH using the command you provided without transpiling it, I have the following problem. Do you also see it on your machine?

For clarity: I'm using flash-subset, current master branch.

user@transmachine:~/Projects/flash-subset/FLASH4.4$ ./setup magnetoHD/CurrentSheet -auto -2d -objdir=mhdrotor -gridinterpolation=native -debug

Succeeds.

user@transmachine:~/Projects/flash-subset/FLASH4.4$ cd mhdrotor/
user@transmachine:~/Projects/flash-subset/FLASH4.4/mhdrotor$ make

And make fails. Full log is too long to post here, but here is where errors start:

Error: Type mismatch in argument 'block' at (1); passed INTEGER(4) to TYPE(block_metadata_t)
hy_8wv_sweep.F90:456:87:

                  do sp = SPECIES_BEGIN, SPECIES_END
                                                                                       1
Warning: DO loop at (1) will be executed zero times [-Wzerotrip]
hy_8wv_sweep.F90:479:59:

            call Grid_putFluxData(blockID,JAXIS,totFlx,dataSize)
                                                           1
Error: Type mismatch in argument 'block' at (1); passed INTEGER(4) to TYPE(block_metadata_t)
hy_8wv_sweep.F90:651:57:

            call Grid_renormAbundance(blockID,blkLimits,U)
                                                         1
Error: Type mismatch in argument 'blockdesc' at (1); passed INTEGER(4) to TYPE(block_metadata_t)
hy_8wv_sweep.F90:730:59:

            call Grid_getFluxData(blockID,IAXIS,totFlx,dataSize)
                                                           1
Error: Type mismatch in argument 'block' at (1); passed INTEGER(4) to TYPE(block_metadata_t)
hy_8wv_sweep.F90:757:59:

            call Grid_getFluxData(blockID,JAXIS,totFlx,dataSize)
                                                           1
Error: Type mismatch in argument 'block' at (1); passed INTEGER(4) to TYPE(block_metadata_t)
hy_8wv_sweep.F90:842:57:

            call Grid_renormAbundance(blockID,blkLimits,U)
                                                         1
Error: Type mismatch in argument 'blockdesc' at (1); passed INTEGER(4) to TYPE(block_metadata_t)
Makefile:115: recipe for target 'hy_8wv_sweep.o' failed
make: *** [hy_8wv_sweep.o] Error 1
chaw0023 commented 6 years ago

All of the bugs reported were for the released version of flash 4.5 or 4.4. Sorry for the confusion with nomenclature here but the anything which is in "flash-subset" is sort of hacked version with AMReX implementation (only on a subset) and, in general, very few cases run with it. Even though it says FLASH4.4, it is very different from the release versions.