mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Allow + in region specification
This commit is contained in:
parent
61cb6f2319
commit
70b4bf3118
2 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ class Region(object):
|
|||
i_start = -1
|
||||
else:
|
||||
# Check for invalid characters
|
||||
if expression[i] not in '-0123456789':
|
||||
if expression[i] not in '-+0123456789':
|
||||
raise SyntaxError("Invalid character '{}' in expression"
|
||||
.format(expression[i]))
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ contains
|
|||
i_start = 0
|
||||
else
|
||||
! Check for invalid characters
|
||||
if (index('-0123456789', string_(i:i)) == 0) then
|
||||
if (index('-+0123456789', string_(i:i)) == 0) then
|
||||
call fatal_error("Invalid character '" // string_(i:i) // "' in &
|
||||
®ion specification.")
|
||||
end if
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue