@@ -59,13 +59,13 @@ const niter_max = 20 # Maximum number of fixed-point iterations to solve A*x =
5959"""
6060 leq = LinearEquations{FloatType}(vTear_names::Vector{String}, vTear_lengths::Vector{Int},
6161 nResiduals::Int, A_is_constant::Bool;
62- nxRecursiveFactorization = 0)
62+ useRecursiveFactorizationUptoSize = 0)
6363
6464Define linear equation system "A*x=b" with `length(x) = sum(vTear_lengths)`.
6565If `A_is_constant = true` then `A` is a matrix that is constant after
6666initialization.
6767
68- If length(x) <= nxRecursiveFactorization , then linear equation systems will be solved with
68+ If length(x) <= useRecursiveFactorizationUptoSize , then linear equation systems will be solved with
6969`RecursiveFactorization.jl` instead of the default `lu!(..)` and `ldiv!(..)`.
7070
7171For details of its usage for code generation see [`LinearEquationsIteration`](@ref).
@@ -97,24 +97,24 @@ mutable struct LinearEquations{FloatType <: Real}
9797 # Constructed during initialization
9898 residual_unitRanges:: Vector{UnitRange{Int}} # residuals[residual_unitRanges[i]] = residual_value[i], if residual is a vector
9999 residual_indices:: Vector{Int} # residuals[residual_indices[i]] = residual_value[i], if residual is a scalar
100- recursiveFactorization :: Bool # = true, if RecursiveFactorization.jl shall be used to solve the linear equation system
100+ useRecursiveFactorization :: Bool # = true, if RecursiveFactorization.jl shall be used to solve the linear equation system
101101
102102 luA:: LU{FloatType,Array{FloatType,2}} # lu-Decomposition of A
103103
104104 function LinearEquations {FloatType} (vTear_names:: Vector{String} , vTear_lengths:: Vector{Int} ,
105105 nResiduals:: Int , A_is_constant:: Bool ;
106- nxRecursiveFactorization :: Int = 0 ) where {FloatType <: Real }
106+ useRecursiveFactorizationUptoSize :: Int = 0 ) where {FloatType <: Real }
107107 @assert (length (vTear_names) > 0 )
108108 @assert (length (vTear_names) == length (vTear_lengths))
109109 nx = sum (vTear_lengths)
110110 @assert (nx > 0 )
111111 state = - 1
112- recursiveFactorization = nx <= nxRecursiveFactorization
112+ useRecursiveFactorization = nx <= useRecursiveFactorizationUptoSize
113113
114114 new (A_is_constant, vTear_names, vTear_lengths, zeros (FloatType,nx), nResiduals,
115115 zeros (FloatType,nx,nx), zeros (FloatType,nx), fill (0 ,nx), zeros (FloatType,nx),
116116 Vector {Any} (undef,nResiduals), - 4 , - 1 , niter_max, false , String[], String[],
117- fill (0 : 0 ,nResiduals), fill (0 ,nResiduals), recursiveFactorization )
117+ fill (0 : 0 ,nResiduals), fill (0 ,nResiduals), useRecursiveFactorization )
118118 end
119119end
120120LinearEquations (args... ) = LinearEquations {Float64} (args... )
0 commit comments