This commit is contained in:
Olli Väinölä
2015-12-06 17:22:57 +02:00
parent 6626d9e310
commit 3353122a3b
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -5,10 +5,16 @@ function add_boundary_condition!(case::Simulation, bc::NeumannBC)
push!(case.neumann_boundary_conditions, bc)
end
"""
Add node to model and renumber for output
"""
function add_node!(model::Model, index::Union{Int64, ASCIIString},
coords::Vector{Float64})
node = Node(index, coords)
model.nodes[index] = node
node_number = length(model.nodes)
model.renum_nodes[index] = node_number
end