Skip to content

Commit

Permalink
Merge pull request #1 from mbakker7/master
Browse files Browse the repository at this point in the history
update fork from mbakker7/ttim
  • Loading branch information
Davíd Brakenhoff authored Nov 2, 2018
2 parents f1e5173 + eb3c116 commit 5888e55
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions ttim/linesink.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,19 @@ def __init__(self, model, xy=[(-1, 0), (1, 0)], tsandh=[(0, 1)], \
self.x = xy[:, 0]
self.y = xy[:, 1]
self.nls = len(self.x) - 1
for i in range(self.nls):
self.lslist.append(HeadLineSink(model, x1=self.x[i], y1=self.y[i], \
x2=self.x[i + 1], y2=self.y[i + 1], \
tsandh=tsandh, res=res, wh=wh, \
layers=layers, label=None, \
addtomodel=False) )
self.tsandh = tsandh
self.res = np.atleast_1d(float(res))
self.wh = wh
self.model.addelement(self)

def initialize(self):
self.lslist = []
for i in range(self.nls):
self.lslist.append(HeadLineSink(self.model, x1=self.x[i], y1=self.y[i], \
x2=self.x[i + 1], y2=self.y[i + 1], \
tsandh=self.tsandh, res=self.res, wh=self.wh, \
layers=self.layers, label=None, \
addtomodel=False) )
LineSinkStringBase.initialize(self)
self.pc = np.zeros(self.nls * self.nlayers)
for i in range(self.nls):
Expand Down

0 comments on commit 5888e55

Please sign in to comment.