Phonon Band Structure Γ Point Discontinuities with Abinit
The process for calculating Γ point discontinuities with Abinit is very similar to that for calculating LO-TO splitting with Abinit. One must explicitly list the approach directions to the Γ point to be used in the non-analytic calculation, and then be aware that the provided bands2eps code will ignore these separately-reported results. Again, using abipy is a sensible alternative to the below.
One extra inconvenience is that the approach directions need to be listed in Cartesian co-ordinates, whereas the band path is listed in fractional reciprocal space co-ordinates.
AlN.abi
AlN_2.abi
AlN_3.abi
AlN_4.abi
are the input files for abinit (twice), mrgddb and anaddb. As usual, some files need renaming between the first and second calculations.
$ mv AlNo_DS1_WFK AlN_2o_DS999_WFK $ mv AlNo_DS2_1WF13 AlN_2o_DS998_1WF13 $ mv AlNo_DS2_1WF14 AlN_2o_DS998_1WF14 $ mv AlNo_DS2_1WF15 AlN_2o_DS998_1WF15
Then c2x can be run as
$ c2x --phbands_gnu_dcross AlN_4.abo out.gnu $ gnuplot -p out.gnu

One way of finding the required directions is first to run anaddb with no non-analytic corrections, and then to run c2x as
$ c2x -v --phbands_gnu AlN_4.abo out.gnu
[...]
Section for non-analytic directions for anaddb
nph2l 3
qph2l 0.8660254 0.5000000 0.0000000
0.5000000 0.8660254 0.0000000
0.0000000 0.0000000 1.0000000
[...]
As runs of anaddb take just a few seconds, this takes little extra time. Note that c2x may give the same direction multiple times, which is not necessary.