[FLASH-USERS] Compilation Error in LaserSlab with rt_useMGD

Ryan Farber rjfarber at umich.edu
Sun Dec 1 17:30:28 EST 2024


Hi Denis,

Your syntax error is due to "..true.." whereas you should only have
".true." in rp_initParameters.F90 -- and the reason for that issue is that
Config boolean parameters should have values of TRUE or FALSE (not ".true."
like in Fortran -- also note the use of "BOOLEAN" instead of "logical").

Best wishes,
--------
Ryan


On Sun, Dec 1, 2024 at 10:27 AM Denis Ring <denisring at tecnico.ulisboa.pt>
wrote:

> 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_______________________________________________
> 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/20241201/a62c8db6/attachment.htm>


More information about the flash-users mailing list