From ddcd57348d2120df707efb61f8bb2cd10041cd82 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Thu, 14 Jan 2016 18:08:37 +0000 Subject: [PATCH] Changed roundvalue function to round_value. --- gprMax/sources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gprMax/sources.py b/gprMax/sources.py index faba304b..7de73f54 100644 --- a/gprMax/sources.py +++ b/gprMax/sources.py @@ -20,7 +20,7 @@ import numpy as np from gprMax.constants import c, floattype from gprMax.grid import Ix, Iy, Iz -from gprMax.utilities import roundvalue +from gprMax.utilities import round_value class VoltageSource: @@ -182,7 +182,7 @@ class TransmissionLine: 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 - 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 self.srcpos = 5