ML_IERR

From VASP Wiki

ML_IERR = [integer]
Default: ML_IERR = 0 

Description: Calculation and output frequency of error estimates for ML_MODE=RUN computations.


This tag sets the interval in units of molecular-dynamics steps at which the error estimates are written to the ML_LOGFILE. The error estimate is computed by utilizing the spilling factor if a refit with ML_MODE=REFIT was done. The spilling factor is calculated for each atom in the current structure and the maximum among all atoms is written to the ML_LOGFILE file marked with SFF.

The spilling factor measures the similarity of the local environment of each atom in the current structure to that of the local reference configurations of the force field. The values of the spilling factor are in the range . If the atomic environment is "properly" represented by the local reference configurations the spilling factor approaches 0. Vice versa the spilling factor quickly approaches 1, if the force field is extrapolating. Still, molecular dynamics trajectories in which the spilling factor is mostly 1 might be usable, but the results should be checked carefully.

The calculation of the spilling factor scales quadratically with the number of local reference configurations and linearly with the number of species. For force fields containing many species and/or local reference configurations, the evaluation time of the spilling factor becomes of the order of the evaluation of a single force computation or more. Since it is sufficient to monitor the error every ML_IERR MD steps, the total time consumed by the evaluation of the spilling factor can become insignificantly compared to the total time.

In long molecular dynamics calculations, we recommend to use at least ML_IERR=20-100.

ML_IERR can be freely chosen only if ML_MODE=RUN. In any other calculation mode, if ML_IERR is not equal to 1, the code will exit with an error and provide an error description.

For calculations using force fields obtained by ML_MODE=REFITBAYESIAN or without any refitting, the Bayesian error estimates of energy, forces and stress (BEFF) are additionally written out to the ML_LOGFILE file and their output frequency is also controlled by ML_IERR. Albeit having the advantage of an additional error estimate we still do not recommend using these force fields, since they are significantly slower than force fields obtained by ML_MODE=FAST.

Related tags and articles

ML_LMLFF, ML_MODE, ML_LFAST, ML_OUTBLOCK, ML_OUTPUT_MODE, ML_CALGO