From 70b4bf3118c3e1143612096f73bfcd4b41b6dac7 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 6 Oct 2015 09:19:06 +0700 Subject: [PATCH] Allow + in region specification --- openmc/region.py | 2 +- src/string.F90 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/region.py b/openmc/region.py index f8f3a73781..97069d797b 100644 --- a/openmc/region.py +++ b/openmc/region.py @@ -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])) diff --git a/src/string.F90 b/src/string.F90 index 45db59c875..9ca630e295 100644 --- a/src/string.F90 +++ b/src/string.F90 @@ -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