Hi, everyone
I hope you had a wonderful holiday season, and I appreciate your interest in my topic.
I am currently using deal.II to implement a "second-order scheme" for solving the Allen-Cahn equation, based on the approach from the paper “An unconditionally energy stable second-order finite element method for solving the Allen–Cahn equation.” I have uploaded my code to GitHub for anyone interested.


For testing purposes, I’m using the function as the exact solution, so the corresponding forcing term is modified to:

and the initial condition is .
However, I'm encountering an issue where the results do not match expectations. I tried debugging by modifying the term to:

and while this change produced more accurate results, they only exhibit first-order accuracy instead of the desired second-order accuracy.

I would greatly appreciate any insights or suggestions you might have regarding this issue. Here are a few things I suspect could be contributing to the problem:
If anyone has experience with this kind of problem or has suggestions on potential fixes (perhaps related to time-stepping or nonlinear term handling), I would be incredibly grateful.
Thank you so much for your time and help. Looking forward to your feedback!
Best regards
Zoe