Portable C library of density functionals with van der Waals interactions for density functional theory