Git reference: Tutorial example 05-gross-pitaevski-adapt.
The problem solved here is the same as in P03-timedep/08-gross-pitaevski. The source code of the main.cpp function is an identical copy of the one in P03-timedep/01-timedep-adapt-space-only.
Initial condition and initial mesh:
Solution and mesh at t = 0.025:
Solution and mesh at t = 0.05:
Solution and mesh at t = 0.075:
Solution and mesh at t = 0.01: