diff --git a/src/preprocess_abaqus_reader.jl b/src/preprocess_abaqus_reader.jl index ea5a8b4..90c8af2 100644 --- a/src/preprocess_abaqus_reader.jl +++ b/src/preprocess_abaqus_reader.jl @@ -145,7 +145,13 @@ function parse_section(model, lines, key, idx_start, idx_end, ::Union{Type{Val{: if !(empty_or_comment_line(line)) m = matchall(r"[0-9]+", line) set_ids = map(s -> parse(Int, s), m) - push!(data, set_ids...) + try + push!(data, set_ids...) + catch err + if isa(err, MethodError) + warn("Problems with element set creation") + end + end end end end diff --git a/test/testdata/nx_export_problem.inp b/test/testdata/nx_export_problem.inp index 8c01c6e..a152930 100644 --- a/test/testdata/nx_export_problem.inp +++ b/test/testdata/nx_export_problem.inp @@ -3,3 +3,6 @@ 1, 2.448719E+00,-5.781690E+01,-5.904056E+00 2, 1.812015E+00,-6.871083E+01, 9.743510E+00 ** +*ELSET, ELSET=EALL + conrod, +**