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
I want to use Kranc to calculate some model contains ODE equation, and I tried the SimpleWaveODE.m. But it cannot pass the build process of Cactus. Below is the error message
This looks to me like there is a function index with prototype
char * index(const char*, int)
in your code that somehow messes up Kranc's use of the name index for a local variable.
Looking at the calc_rhs.cc in Kranc's repo for the SimpleWaveODE example the code seems to be just wrong as it tries to use index in line 88 before it has been properly declared:
this seems to be bug in the generated code. Re-running SimpleWaveODE.m through Kranc
rm -rf SimpleWaveODE
make SimpleWaveODE
does not fix the issue. So this seems to be a bug in how Kranc generates code for ODEGroups type groups that would seem to try and allow ODEs for simple grid arrays rather than grid functions.
For the example you may just want to remove all mention of the variables a and b and eg replace them both by the value 1.
I want to use Kranc to calculate some model contains ODE equation, and I tried the
SimpleWaveODE.m
. But it cannot pass the build process of Cactus. Below is the error messageThe text was updated successfully, but these errors were encountered: