From fa49e358a1dde3a73c187ace5d313ef207294c01 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 26 Jan 2016 15:18:58 +0000 Subject: [PATCH] Corrected checking that number of PML cells fits within domain size. --- gprMax/input_cmds_singleuse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gprMax/input_cmds_singleuse.py b/gprMax/input_cmds_singleuse.py index e36ae05a..250a6932 100644 --- a/gprMax/input_cmds_singleuse.py +++ b/gprMax/input_cmds_singleuse.py @@ -183,8 +183,8 @@ def process_singlecmds(singlecmds, multicmds, G): G.pmlthickness = (int(tmp[0]), int(tmp[0]), int(tmp[0]), int(tmp[0]), int(tmp[0]), int(tmp[0])) else: G.pmlthickness = (int(tmp[0]), int(tmp[1]), int(tmp[2]), int(tmp[3]), int(tmp[4]), int(tmp[5])) - if 2*G.pmlthickness[0] >= G.nx or 2*G.pmlthickness[1] >= G.ny or 2*G.pmlthickness[2] >= G.nz or 2*G.pmlthickness[3] >= G.nx or 2*G.pmlthickness[4] >= G.ny or 2*G.pmlthickness[5] >= G.nz: - raise CmdInputError(cmd + ' has too many cells for the domain size') + if 2*G.pmlthickness[0] >= G.nx or 2*G.pmlthickness[1] >= G.ny or 2*G.pmlthickness[2] >= G.nz or 2*G.pmlthickness[3] >= G.nx or 2*G.pmlthickness[4] >= G.ny or 2*G.pmlthickness[5] >= G.nz: + raise CmdInputError(cmd + ' has too many cells for the domain size') # src_steps