Skip to content

Commit b6f4871

Browse files
committed
Add defaults for element string ids
This is needed for EMS. If the element string does not specify a number of nodes, the default is the lowest number of nodes for that element type. For example, TETRA means TETRA4, TRI means TRI3, etc.
1 parent 4bc90e5 commit b6f4871

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/interpolation.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,17 +257,17 @@ function lagrangian(::Val{D}, ::Val{N}, ::Val{G}) where {D,N,G}
257257
end
258258

259259
function element_type_from_string(s::AbstractString)::ElementType
260-
if s == "BAR2"
260+
if s == "BAR2" || s == "BAR"
261261
return BAR2
262-
elseif s == "TRI3"
262+
elseif s == "TRI3" || s == "TRI"
263263
return TRI3
264-
elseif s == "QUAD4"
264+
elseif s == "QUAD4" || s == "QUAD"
265265
return QUAD4
266-
elseif s == "TETRA4"
266+
elseif s == "TETRA4" || s == "TETRA"
267267
return TETRA4
268268
elseif s == "TETRA10"
269269
return TETRA10
270-
elseif s == "HEX8"
270+
elseif s == "HEX8" || s == "HEX"
271271
return HEX8
272272
else
273273
norma_abort("Unknown element type string: $s")

0 commit comments

Comments
 (0)