PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Finds the zero of a function using Householder iteration. More...
Public Member Functions | |
character(len=max_str_ln) function | calc_zero_hh_0d (zero, fun, ord, guess, max_nr_backtracks, output) |
0-D version More... | |
character(len=max_str_ln) function | calc_zero_hh_3d (dims, zero, fun, ord, guess, max_nr_backtracks, output) |
3-D version More... | |
Finds the zero of a function using Householder iteration.
If something goes wrong, by default multiple tries can be attempted, by backtracking on the correction by multiplying it by a relaxation factor. This can be done max_nr_backtracks
times.
If still nothing is achieved, an error message is returned, that is empty otherwise.
Definition at line 35 of file num_ops.f90.
character(len=max_str_ln) function num_ops::calc_zero_hh::calc_zero_hh_0d | ( | real(dp), intent(inout) | zero, |
fun, | |||
integer, intent(in) | ord, | ||
real(dp), intent(in) | guess, | ||
integer, intent(in), optional | max_nr_backtracks, | ||
logical, intent(in), optional | output | ||
) |
0-D version
[in,out] | fun | fun(x,ord) with
|
[in,out] | zero | output |
[in] | ord | order of solution |
[in] | guess | first guess |
[in] | max_nr_backtracks | max nr. of tries with different relaxation factors |
[in] | output | give output on convergence |
Definition at line 50 of file num_ops.f90.
character(len=max_str_ln) function num_ops::calc_zero_hh::calc_zero_hh_3d | ( | integer, dimension(3), intent(in) | dims, |
real(dp), dimension(dims(1),dims(2),dims(3)), intent(inout) | zero, | ||
fun, | |||
integer, intent(in) | ord, | ||
real(dp), dimension(dims(1),dims(2),dims(3)), intent(in) | guess, | ||
integer, intent(in), optional | max_nr_backtracks, | ||
logical, intent(in), optional | output | ||
) |
3-D version
[in,out] | fun | fun(dims,x,ord) with
|
[in] | dims | dimensions of the problem |
[in,out] | zero | output |
[in] | ord | order of solution |
[in] | guess | first guess |
[in] | max_nr_backtracks | max nr. of backtracks |
[in] | output | give output on convergence |
Definition at line 243 of file num_ops.f90.