> If I really need to separate these two problems in that way (yes, I do!), > then I should probably be writing two separate classes: > (1) ElasticProblem > (2) ElectrostaticProblem > and let these two clases share only the mesh and let > ElectrostaticProblem have read-only access to the solution vector from > ElasticProblem. Does that sound like a good start?
There are many ways to do this. step-31/32 uses a single class that has two DoFHandlers. I consider this slightly simpler, but it's a matter of taste I'd say. Best W. ------------------------------------------------------------------------- Wolfgang Bangerth email: [email protected] www: http://www.math.tamu.edu/~bangerth/ _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
