I am following example 52 for writing code which should solve a system of
three equations. In it I can rewrite my equations such that my source term
is zero, but my matrices on the left side are depending on time, which
means that I have to reassemble the system matrix and the inverse system
matrix at every time step. Is that a good idea, or rather
performance-degrading? The function
assemble_system()
has been rewritten to
assemble_system(const double time)
Furthermore I then have to call
assemble_system(time)
in the function
evaluate_diffusion(const double time, const Vector<double> &y)
but compilation fails with
error: passing ‘const Step52::Diffusion<3>’ as ‘this’ argument discards
qualifiers [-fpermissive]
assemble_system(time);
but why? And how can I fix that?
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.