The functions polyfit, polyfit_0_boundaries and polyval are currently in STELLOPTV2/Sources/Modules/equil_utils.f90. Due to their usefulness, they should be moved somewhere in LIBSTELL, such that they are easily accessed by other codes.
The function polyval should be generalized and vectorized in order to receive an array of values at which the polynomial is to be evaluated. The function polyval_der could also be created; this would compute the derivative (of given order) of a polynomial.
The functions
polyfit,polyfit_0_boundariesandpolyvalare currently inSTELLOPTV2/Sources/Modules/equil_utils.f90. Due to their usefulness, they should be moved somewhere in LIBSTELL, such that they are easily accessed by other codes.The function
polyvalshould be generalized and vectorized in order to receive an array of values at which the polynomial is to be evaluated. The functionpolyval_dercould also be created; this would compute the derivative (of given order) of a polynomial.