source: issm/trunk-jpl/src/jl/solve/nodes.jl@ 26629

Last change on this file since 26629 was 26629, checked in by Mathieu Morlighem, 3 years ago

CHG: reorganized project to make it simpler

File size: 823 bytes
Line 
1#Node class definition
2mutable struct Node #{{{
3 id::Int64
4 sid::Int64
5 indexingupdate::Bool
6 gsize::Int64
7 gdoflist::Vector{Int64}
8 fdoflist::Vector{Int64}
9 sdoflist::Vector{Int64}
10 svalues::Vector{Float64}
11end# }}}
12
13#Node functions
14function Base.show(io::IO, this::Node)# {{{
15
16 println(io,"Node:")
17 println(io," id: ",this.id)
18 println(io," sid: ",this.sid)
19 println(io," indexingupdate: ",this.indexingupdate)
20 println(io," gsize: ",this.gsize)
21 println(io," gdoflist: ",this.gdoflist)
22 println(io," fdoflist: ",this.fdoflist)
23 println(io," sdoflist: ",this.sdoflist)
24 println(io," svalues: ",this.svalues)
25end# }}}
26function ApplyConstraint(node::Node,dof::Int8,value::Float64) #{{{
27
28 node.indexingupdate = true
29 node.fdoflist[dof] = -1
30 node.sdoflist[dof] = +1
31 node.svalues[dof] = value
32
33end# }}}
Note: See TracBrowser for help on using the repository browser.