[FLASH-USERS] Compilation Error in LaserSlab with rt_useMGD

Denis Ring denisring at tecnico.ulisboa.pt
Sun Dec 1 13:16:56 EST 2024


Dear Flash Users,

I am encountering a compilation error in the LaserSlab simulation 
related to RuntimeParameters_add during the make process. Despite 
efforts to configure and debug the setup, I have been unable to resolve 
the issue.

I am following the LaserSlab setup guide found at 
https://flash.rochester.edu/site/flashcode/user_support/tutorial_talks/RAL_May2012/lasermgd.pdf, 
and I am running FLASH4.8.

The compilation fails with the following error:

mpif90 -I/data/dring/hypre/include -ggdb -c -O2 -fdefault-real-8 
-fdefault-double-8 -Wuninitialized -fPIC  -DFLASH_3T -DMAXBLOCKS=1000 
-DNXB=16 -DNYB=16 -DNZB=1 -DN_DIM=2 rp_initParameters.F90
rp_initParameters.F90:1306:43:
    call RuntimeParameters_add( "rt_useMGD", ..true..)
                                            1
Error: Syntax error in argument list at (1)
rp_initParameters.F90:1168:108:
   "rt_mgdBounds", 1.0e-01, 1.0e+00, 1.0e+01, 1.0e+02, 1.0e+03, 1.0e+04, 
1.0e+05)
                                                                          
       1
Error: There is no specific subroutine for the generic 
‘runtimeparameters_add’ at (1)
make: *** [Makefile:132: rp_initParameters.o] Error 1

I am running:
./setup -auto LaserSlab -2d +cylindrical -nxb=16 -nyb=16 +hdf5typeio 
species=cham,targ +mtmmmt +laser +uhd3t +mgd mgd_meshgroups=6 
-parfile=flash.par

I have added the following entries to the Config and flash.par files:

Config
PARAMETER rt_useMGD BOOLEAN .true. [.true., .false.]
PARAMETER rt_mgdBounds REAL 1.0e-01, 1.0e+00, 1.0e+01, 1.0e+02, 1.0e+03, 
1.0e+04, 1.0e+05

flash.par
rt_useMGD = .true.
rt_mgdBounds_1 = 1.0e-01
rt_mgdBounds_2 = 1.0e+00
rt_mgdBounds_3 = 1.0e+01
rt_mgdBounds_4 = 1.0e+02
rt_mgdBounds_5 = 1.0e+03
rt_mgdBounds_6 = 1.0e+04
rt_mgdBounds_7 = 1.0e+05

Both files are included as attachments to this email for reference.

I have searched for rt_useMGD across the source tree and confirmed its 
presence in multiple modules, such as RadTrans and MGD. However, its 
connection to LaserSlab seems unclear. I also verified rt_useMGD 
declarations and parameter configurations in LaserSlab/Config and 
flash.par, ensuring no syntax errors.

I would greatly appreciate any guidance or suggestions for resolving 
this issue, especially if you have gotten LaserSlab running in the past.

Best Regards,

Denis Ring
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flash.par
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241201/23d6efb2/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Config
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241201/23d6efb2/attachment-0001.ksh>


More information about the flash-users mailing list