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
Avoid a warning about an unused variable. #808
Conversation
This is already addressed in #783. It guess it was a copy-paste issue, because it is declared in |
This would also create conflicts with #775, which is a much larger change. Maybe we can postpone this after that one is merged? |
You're right - |
I see. @spco -- is this because you always use an implicit Euler or Crank-Nicolson scheme for the boundary terms? Could things be made more accurate if one switched to a BDF-2 scheme? Or is this simply not an option for the face terms? |
The only term that needs any timestepping is the time-derivative, which is a cell-only term. The weighting of the face terms by |
I think what I meant is something like this: Let's say you had an equation of the form But you could also replace Does any of this ring any bells? I guess I should read the documentation to understand what terms you actually do assemble, unless you have the answer to the questions above ready right away. |
Ah, I misunderstood! I do indeed handle everything implicitly. I think this largely was just to be in line with the fact that the convection term in the cell is implicit - please correct me if I have also misunderstood the role of |
On 04/07/2016 01:09 PM, Sam Cox wrote:
Ah, excellent point. Yes, we do want to treat advection implicitly. |
(The discussion above is related to #661, for reference.) |
This is in one of the temperature assembly functions, where we now apparently no longer
need to check whether we use the BDF2 formula or a backward Euler for the first
time step. It would actually be interesting to know why we no longer need to check this,
i.e., whether we accidentally lost some functionality in the transition, or whether the
function was just split into two and the variable is only needed in one.