Skip to content

Commit

Permalink
Merge pull request #55 from benzwick/bz/mixed-case-generate
Browse files Browse the repository at this point in the history
Read mixed case GENERATE parameter for NSET and ELSET keyword
  • Loading branch information
ahojukka5 authored Dec 13, 2019
2 parents 0ba1b2f + 2de8dcc commit 37dbe82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse_mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37dbe82

Please sign in to comment.