Minimizer object
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | initialized |
whether the object is initialized or ot |
|||
| integer, | public | :: | MinType |
gradient descent = 0, accelerated gradient descent = 10 |
|||
| class(a_minimizer_vars), | public, | ALLOCATABLE | :: | vars |
! depend on the MinimizerType |
Core minimization routine
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_minimizer_mhd3d), | intent(inout) | :: | sf |
minimizer |
||
| real(kind=wp), | intent(in) | :: | abstol |
tolerance on the forces. If reached terminaters the minimization |
||
| integer, | intent(in) | :: | maxIter_in |
maximum number of iterations after which the iterations are terminated |
Reset the minimizer state
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_minimizer_mhd3d), | intent(inout) | :: | sf |
minimizer |
Initialization of the Logging
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_minimizer_mhd3d), | intent(inout) | :: | sf |
minimizer |
Log the current minimizer and functional state
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_minimizer_mhd3d), | intent(inout) | :: | sf | |||
| logical, | intent(in) | :: | quiet |
Finalization method for a minimizer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_minimizer_mhd3d), | intent(inout) | :: | sf |
minimizer |
TYPE :: t_minimizer_mhd3d !------------------------------------------------------------------------------------------------------------------------------- LOGICAL :: initialized !! whether the object is initialized or ot INTEGER :: MinType !! gradient descent = 0, accelerated gradient descent = 10 CLASS(a_minimizer_vars), ALLOCATABLE :: vars !!! depend on the MinimizerType !------------------------------------------------------------------------------------------------------------------------------- CONTAINS PROCEDURE :: minimize => MinimizeMHD3D_descent PROCEDURE :: reset => MinimizeMHD3d_ResetDescent PROCEDURE :: StartLogging => StartLogging_MHD3D PROCEDURE :: Logging => Logging_MHD3D PROCEDURE :: free => Free_minimizer END TYPE t_minimizer_mhd3d