xnn.common.models.d4.enable_eeq_reuse#

xnn.common.models.d4.enable_eeq_reuse(model, enabled=True, **options)[source]#

Switch the EEQ reuse between steps on (or off) for every D4 term of a model.

The hook of the molecular-dynamics channels (ASE calculator, MDI engine): walks model for DFTD4 modules and calls their enable_eeq_reuse(). Returns the number of terms found (0 when the model has no D4 term, in which case the option has no effect).

Parameters:

enabled (bool)

Return type:

int