From d4a94bdf22033c6a39fa2bfc059aab926747e89d Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Fri, 14 Oct 2016 14:11:06 +0100 Subject: [PATCH] Changed PML thickness from tuple into ordered dictionary. --- gprMax/grid.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gprMax/grid.py b/gprMax/grid.py index 1f964aa2..4cfe56d3 100644 --- a/gprMax/grid.py +++ b/gprMax/grid.py @@ -16,12 +16,15 @@ # You should have received a copy of the GNU General Public License # along with gprMax. If not, see . +from collections import OrderedDict + from colorama import init, Fore, Style init() import numpy as np from gprMax.constants import c, floattype, complextype from gprMax.materials import Material +from gprMax.pml import PML from gprMax.utilities import round_value @@ -92,7 +95,7 @@ class FDTDGrid(Grid): self.timewindow = 0 self.nthreads = 0 self.cfs = [] - self.pmlthickness = 10 + self.pmlthickness = OrderedDict((key, 10) for key in PML.slabs) self.pmls = [] self.materials = [] self.mixingmodels = []