Change to the build PML function name.

这个提交包含在:
Craig Warren
2016-03-01 14:56:25 +00:00
父节点 555820befd
当前提交 7544726cab
共有 2 个文件被更改,包括 3 次插入3 次删除

查看文件

@@ -35,7 +35,7 @@ from gprMax.input_cmds_multiuse import process_multicmds
from gprMax.input_cmds_singleuse import process_singlecmds
from gprMax.materials import Material
from gprMax.output import prepare_output_file, write_output
from gprMax.pml import build_pml, update_electric_pml, update_magnetic_pml
from gprMax.pml import build_pmls, update_electric_pml, update_magnetic_pml
from gprMax.utilities import update_progress, logo, human_size
from gprMax.yee_cell_build import build_electric_components, build_magnetic_components
@@ -276,7 +276,7 @@ def run_model(args, modelrun, numbermodelruns, inputfile, usernamespace):
print('\nInput file processed in [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=int(tinputprocend - tinputprocstart))))
# Build the PML and calculate initial coefficients
build_pml(G)
build_pmls(G)
# Build the model, i.e. set the material properties (ID) for every edge of every Yee cell
tbuildstart = perf_counter()

查看文件

@@ -228,7 +228,7 @@ class PML:
self.HRF[x, :] = (2*Hsigma*G.dt) / (Hkappa * tmp)
def build_pml(G):
def build_pmls(G):
"""This function builds instances of the PML and calculates the initial parameters and coefficients including setting profile
(based on underlying material er and mr from solid array).
"""