The attached cif file with this script:
using DFTK
using PseudoPotentialData
using GeometryOptimization
using AtomsIO
system = load_system("AlN_mp-661_conventional.cif")
pseudopotentials = PseudoFamily("dojo.nc.sr.pbe.v0_4_1.standard.upf")
calc = DFTKCalculator(; model_kwargs = (;functionals=PBE(), pseudopotentials, symmetries=true),
basis_kwargs = (; Ecut=30, kgrid=(4,4,4) ))
results = minimize_energy!(system, calc;
tol_forces=1.e-4, tol_virial=Inf, verbosity=2, variablecell=true, maxstep=Inf, )
does not converge. With variablecell=false it converges in 2 steps.
The attached cif file with this script:
does not converge. With
variablecell=falseit converges in 2 steps.