[cc/staggered] Caching boundary volVars with time-dependend Dirichlet BCs is wrong
For the cc and staggered discretization, Dirichlet values are assigned to boundary volVars on the domain boundary. When caching is on, the volVars are updated after each Newton iteration. However, if time-depended Dirichlet values are used, the wrong Dirichlet (i.e. those of the previous time step) are still used within the first Newton iteration of the new time step.
One could update the volVars before each Newton step or, which might be more effective, not cache the boundary volVars at
all and build them ad hoc during bind()
.
Edited by Timo Koch