Changed roundvalue function to round_value.

这个提交包含在:
Craig Warren
2016-01-14 18:08:37 +00:00
父节点 3f7e0318aa
当前提交 ddcd57348d

查看文件

@@ -20,7 +20,7 @@ import numpy as np
from gprMax.constants import c, floattype from gprMax.constants import c, floattype
from gprMax.grid import Ix, Iy, Iz from gprMax.grid import Ix, Iy, Iz
from gprMax.utilities import roundvalue from gprMax.utilities import round_value
class VoltageSource: class VoltageSource:
@@ -182,7 +182,7 @@ class TransmissionLine:
self.dl = c * G.dt self.dl = c * G.dt
# Number of nodes in the transmission line (initially a long line to calculate incident voltage and current); consider putting ABCs/PML at end # Number of nodes in the transmission line (initially a long line to calculate incident voltage and current); consider putting ABCs/PML at end
self.nl = roundvalue(0.667 * G.iterations) self.nl = round_value(0.667 * G.iterations)
# Nodal position of the one-way injector excitation in the transmission line # Nodal position of the one-way injector excitation in the transmission line
self.srcpos = 5 self.srcpos = 5