From 5cf93b0d51b4738bce4db8f77634fba9c7da8c60 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Mon, 9 Jan 2017 12:21:55 +0200 Subject: [PATCH] boundary condition returns always 1-dimensional array for elements, not 0-dimensional --- src/abaqus.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/abaqus.jl b/src/abaqus.jl index e993a5c..971e15f 100644 --- a/src/abaqus.jl +++ b/src/abaqus.jl @@ -397,10 +397,10 @@ function create_boundary_problem(model::Model, bc::AbstractBoundaryCondition, :: if isa(row[1], AbstractString) # node set given nodes = model.mesh.node_sets[bc_name] else # single node given - nodes = row[1] + nodes = [row[1]] end - elements = Element[Element(Poi1, [id]) for id in nodes] + elements = [Element(Poi1, [id]) for id in nodes] update!(elements, "geometry", model.mesh.nodes) for dof in row[2]:row[end]