Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
manauref opened this issue Oct 14, 2022 · 1 comment
Open

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

manauref opened this issue Oct 14, 2022 · 1 comment
Assignees

Comments

@manauref
Copy link
Collaborator

manauref commented Oct 14, 2022

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 '='

@manauref manauref changed the title -e and -g flags dpn' -e and -g flags don't work together Oct 14, 2022
@ammarhakim
Copy link
Owner

ammarhakim commented Oct 14, 2022

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.

@ammarhakim ammarhakim assigned manauref and unassigned ammarhakim Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants