Formatting cleanups.

这个提交包含在:
Craig Warren
2017-02-21 12:50:55 +00:00
父节点 6db9a7a6ba
当前提交 b632946d54

查看文件

@@ -16,15 +16,12 @@
# You should have received a copy of the GNU General Public License
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
from collections import OrderedDict
from importlib import import_module
import numpy as np
from tqdm import tqdm
from gprMax.constants import e0, z0, floattype
import gprMax.pml_1order_update
import gprMax.pml_2order_update
class CFSParameter(object):
@@ -141,7 +138,7 @@ class CFS(object):
class PML(object):
"""PML - the implementation comes from the derivation in: http://dx.doi.org/10.1109/TAP.2011.2180344"""
# IDs for default PML slabs at boundaries of domain
# PML slabs IDs at boundaries of domain.
boundaryIDs = ['x0', 'y0', 'z0', 'xmax', 'ymax', 'zmax']
# Indicates direction of increasing absorption
@@ -170,8 +167,7 @@ class PML(object):
self.ny = yf - ys
self.nz = zf - zs
# Spatial discretisation and thickness
# (one extra cell of thickness required for interpolation of electric and magnetic scaling values)
# Spatial discretisation and thickness (one extra cell of thickness required for interpolation of electric and magnetic scaling values)
if self.direction[0] == 'x':
self.d = G.dx
self.thickness = self.nx + 1