devito icon indicating copy to clipboard operation
devito copied to clipboard

Why does the symbol $dt$ disappear in C/C++ code?

Open jiwei08 opened this issue 1 year ago • 12 comments

I wanna use the symbol dt given by model.grid.stepping_dim.spacing in the index of the matrix. But the symbol dt disappears in the C/C++ code when I check it using print(op). So what should I do to fix it? I am also confused with model.grid.stepping_dim.spacing and model.grid.time_dim.spacing. It seems like they both represent dt.

Any suggestions are appreciated!

捕获 捕获1

jiwei08 avatar Mar 01 '23 08:03 jiwei08