From 2de8dccfb210b2bf74462ff846dd8c3285851d7e Mon Sep 17 00:00:00 2001 From: Ben Zwick Date: Fri, 13 Dec 2019 13:30:42 +0800 Subject: [PATCH] Read mixed case GENERATE parameter for NSET and ELSET keyword Previously the GENERATE parameter was ignored if it was not uppercase and the data was treated as an ordinary NSET or ELSET. --- src/parse_mesh.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_mesh.jl b/src/parse_mesh.jl index da74569..7093350 100644 --- a/src/parse_mesh.jl +++ b/src/parse_mesh.jl @@ -186,7 +186,7 @@ function parse_section(model, lines, key, idx_start, idx_end, ::Union{Type{Val{: set_name = regex_match(regex_string, definition, 1) @info("Creating $(lowercase(string(key))) $set_name") - if endswith(strip(definition), "GENERATE") + if endswith(strip(uppercase(definition)), "GENERATE") line = lines[idx_start + 1] first_id, last_id, step_ = parse_numbers(line, Int) set_ids = collect(first_id:step_:last_id)