~albertog/siesta/4.0-stm

Viewing all changes in revision 521.

  • Committer: Alberto Garcia
  • Date: 2017-06-02 15:48:55 UTC
  • Revision ID: albertog@icmab.es-20170602154855-4efxwb4a6ff7h734
Add a new interpolation option 'poly' to macroave

Macroave might be useful to determine automatically the right
point at which the vacuum potential gets flat.

The 'spline' interpolation option can cause oscillations for
functions with discontinuous derivatives. In these cases the
'linear' option is more robust.

The current implementation of the 'linear' option is quite obscure. A
new option 'poly' has been introduced. It uses a routine derived from
code by D.R. Hamann which implements general polynomial interpolation.
For order=1, it can replace the 'linear' option. For now, pending an
upgrade of the interface, 'poly' implements quadratic polynomial
interpolation (subject to the same oscillations for non-smooth
functions).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: