dftlibs / xcfun

XCFun: A library of exchange-correlation functionals with arbitrary-order derivatives
https://dftlibs.org/xcfun/
Mozilla Public License 2.0
58 stars 32 forks source link

fixed grad reg for SCAN functionals, calculate p directly #146

Closed JFurness1 closed 3 years ago

JFurness1 commented 3 years ago

Description

Fixed regularisation of SCAN-like functionals for small gradients.

Motivation and Context

This solves the issue of SCAN-like functionals returning NaN when the gradient is small. See issue #144.

How Has This Been Tested?

Updated code passes previously set tests.

Screenshots (if appropriate):

Todos

N/A

Types of changes

Questions

Status