Skip to content

Commit

Permalink
TL: vicious detail
Browse files Browse the repository at this point in the history
  • Loading branch information
tlunet committed Jun 21, 2024
1 parent 5542b8e commit 271e25b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qmat/qdelta/timestepping.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@

class TimeStepping(QDeltaGenerator):

def __init__(self, nodes, **kwargs):
self.nodes = np.asarray(nodes)
def __init__(self, nodes, tLeft=0, **kwargs):
nodes = np.asarray(nodes)
deltas = nodes.copy()
deltas[0] = nodes[0] - tLeft
deltas[1:] = np.ediff1d(nodes)
self.deltas = deltas
M = self.nodes.size
M = nodes.size
self.QDelta = np.zeros((M, M), dtype=float)
self.nodes = nodes


@register
Expand Down

0 comments on commit 271e25b

Please sign in to comment.