Step 12, rewritten using ScratchData and CopyData

44 views
Skip to first unread message

Maxi Miller

unread,
Apr 26, 2019, 4:43:53 PM4/26/19
to deal.II User Group
I tried to rewrite step-12 using the recently introduced classes ScratchData and CopyData. In the first iteration, the results are similar, in the second iteration the new version gives wrong results, though. I compared the generated matrices and right hand side vectors, and they were identical, but after the first mesh refinement the rewritten version results in wrong solutions. Thus I was wondering if I forgot to initialize something, or if I forgot to loop over/add some cells after the refinement?
Thanks!
step-12.cc
step-12_scratch.cc

Maxi Miller

unread,
Apr 29, 2019, 3:53:40 AM4/29/19
to deal.II User Group
After some tests it looks like as if the problem lies in the treatment of the subfaces. When refining the grid globally, everything works as expected, when refining adaptively, the ScratchData-Version fails. Thus I assume the problem lies there, but I can not see it in the code?
Reply all
Reply to author
Forward
0 new messages