nonlin 1.5.2
A library that provides routines to compute the solutions to systems of nonlinear equations.
Loading...
Searching...
No Matches
nonlin_equation_solver_1var.f90
1! nonlin_equation_solver_1var.f90
2
3submodule(nonlin_core) nonlin_equation_solver_1var
4 implicit none
5contains
6! ------------------------------------------------------------------------------
7 pure module function es1_get_max_eval(this) result(n)
8 class(equation_solver_1var), intent(in) :: this
9 integer(int32) :: n
10 n = this%m_maxEval
11 end function
12
13! --------------------
14 module subroutine es1_set_max_eval(this, n)
15 class(equation_solver_1var), intent(inout) :: this
16 integer(int32), intent(in) :: n
17 this%m_maxEval = n
18 end subroutine
19
20! ------------------------------------------------------------------------------
21 pure module function es1_get_fcn_tol(this) result(x)
22 class(equation_solver_1var), intent(in) :: this
23 real(real64) :: x
24 x = this%m_fcnTol
25 end function
26
27! --------------------
28 module subroutine es1_set_fcn_tol(this, x)
29 class(equation_solver_1var), intent(inout) :: this
30 real(real64), intent(in) :: x
31 this%m_fcnTol = x
32 end subroutine
33
34! ------------------------------------------------------------------------------
35 pure module function es1_get_var_tol(this) result(x)
36 class(equation_solver_1var), intent(in) :: this
37 real(real64) :: x
38 x = this%m_xtol
39 end function
40
41! --------------------
42 module subroutine es1_set_var_tol(this, x)
43 class(equation_solver_1var), intent(inout) :: this
44 real(real64), intent(in) :: x
45 this%m_xtol = x
46 end subroutine
47
48! ------------------------------------------------------------------------------
49 pure module function es1_get_print_status(this) result(x)
50 class(equation_solver_1var), intent(in) :: this
51 logical :: x
52 x = this%m_printStatus
53 end function
54
55! --------------------
56 module subroutine es1_set_print_status(this, x)
57 class(equation_solver_1var), intent(inout) :: this
58 logical, intent(in) :: x
59 this%m_printStatus = x
60 end subroutine
61
62! ------------------------------------------------------------------------------
63 pure module function es1_get_diff_tol(this) result(x)
64 class(equation_solver_1var), intent(in) :: this
65 real(real64) :: x
66 x = this%m_difftol
67 end function
68
69! --------------------
70 module subroutine es1_set_diff_tol(this, x)
71 class(equation_solver_1var), intent(inout) :: this
72 real(real64), intent(in) :: x
73 this%m_difftol = x
74 end subroutine
75end submodule
nonlin_core