You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A macro expansion captures a variable wrongfully leading to code compilation errors.
The first expansion of CELL_MEMBAL(,) is okay, because shift is not defined, yet. The second expansion results in the error shown below.
The code is the generated code from the LJ_paper/Lennard Jones example.
The variable definition shift in line 73 masks the definition of the shift introduced by the macro CELL_MEMBRAL which is expanded to CellList_gen<dim, St, Process_keys_lin, Mem_bal<>, shift<dim, St> >.
We could change our code generator such that the definition of cell lists is always before user defined variables so there is no mismatch anymore. I applied this solution by hand and it is sufficient.
A macro expansion captures a variable wrongfully leading to code compilation errors.
The first expansion of
CELL_MEMBAL(,)
is okay, because shift is not defined, yet. The second expansion results in the error shown below.The code is the generated code from the LJ_paper/Lennard Jones example.
The text was updated successfully, but these errors were encountered: