ammarhakim / gkyl

This is the main source repo for the Gkeyll 2.0 code. Please see gkeyll.rtfd.io for details.
https://gkeyll.readthedocs.io/en/latest/
56 stars 15 forks source link

-e and -g flags don't work together #103

Open manauref opened 1 year ago

manauref commented 1 year ago

mpirun -n 1 gkyl -g -e "tFinal=2.e-6;numFrames=8;wallTime=172800." input-file.lua

produces

LOAD ERROR [string "GKYL_USE_GPU = truetFinal=2.e-6;numFrames=8;w..."]:1: unexpected symbol near '='

ammarhakim commented 1 year ago

You can fix this pretty easily on the CLI itself. Just do:

mpirun -n 1 gkyl -g -e ";tFinal=2.e-6;numFrames=8;wallTime=172800." input-file.lua

Notice the ";" before tFinal. If this works, please change the line 146 of gkyl.cxx to something like:

std::string luaExpr(";");

Just fix it in your branch as it will be faster.