> The thing is,both meshes come from the same coarse mesh. In fact, mesh # 2 > is obtained by coarsening and refinement directly from mesh #1. Moreover, > they both originate from my initial coarse mesh at the initial integration > time T0. My guess is that reading from a file will only initialize the > active cells at the moment the grid was written. The coarser "parents" are > unknown and hence the function is unable to determine that both grids stem > from the same parent. Is that true?
Yes. You need to initialize grids #1 and #2 from the same coarse mesh when you initialize the Triangulation object. After that, you can do with them whatever you want, but these coarsest cells have to exist in both meshes, otherwise the algorithm won't work. If you initialize the two meshes from two different files like you do, but the two different files result from refinement and coarsening of the same coarse mesh, why don't you just start with the coarse mesh and do the refinement and coarsening as the first step after reading in the same file into both triangulations? Best W. -- ------------------------------------------------------------------------- Wolfgang Bangerth email: [email protected] www: http://www.math.tamu.edu/~bangerth/ _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
