possibility to manually remove dofs from problems by adding dof number to problem.assembly.removed_dofs vector

This commit is contained in:
Jukka Aho
2017-01-09 08:56:31 +02:00
parent 31d0771dd3
commit 9a382d9f7d
3 changed files with 19 additions and 3 deletions
+5 -3
View File
@@ -8,8 +8,8 @@ abstract MixedProblem <: AbstractProblem
"""
General linearized problem to solve
(K₁+K₂)Δu + C1*Δλ = f₁+f₂
C2Δu + D*Δλ = g
(K₁+K₂)Δu + C1'*Δλ = f₁+f₂
C2Δu + D*Δλ = g
"""
type Assembly
@@ -36,6 +36,7 @@ type Assembly
la_prev :: Vector{Float64} # previous solution vector u
la_norm_change :: Real # change of norm in la
removed_dofs :: Vector{Int64} # manually remove dofs from assembly
end
function Assembly()
@@ -51,7 +52,8 @@ function Assembly()
SparseMatrixCOO(),
SparseMatrixCOO(),
[], [], Inf,
[], [], Inf)
[], [], Inf,
[])
end
function empty!(assembly::Assembly)