mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-19 17:58:53 +00:00
bugfix: maximum dimension of problem was miscalculated nnodes*dim, correct way is max_node_id*dim, this was causing bugs when node ids is not starting from 1
This commit is contained in:
+1
-1
@@ -387,7 +387,7 @@ function initialize!(solver::Solver; show_info=true)
|
||||
end
|
||||
nnodes = length(nodes)
|
||||
info("Total number of nodes in problems: $nnodes")
|
||||
maxdof = maximum(nnodes)*field_dim
|
||||
maxdof = maximum(nodes)*field_dim
|
||||
info("# of max dof (=size of solution vector) is $maxdof")
|
||||
solver.u = zeros(maxdof)
|
||||
solver.la = zeros(maxdof)
|
||||
|
||||
Reference in New Issue
Block a user