Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Removed melement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilawar Singh committed Apr 6, 2020
1 parent 8baffdc commit 3116b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/moose/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,9 @@ def setDefaultDt(elecdt=1e-5, chemdt=0.01, tabdt=1e-5, plotdt1=1.0, plotdt2=0.25
moose.setClock(9, plotdt2) # electrical sim

def assignDefaultTicks(modelRoot='/model', dataRoot='/data', solver='hsolve'):
if isinstance(modelRoot, moose.melement) or isinstance(modelRoot, moose.vec):
if not isinstance(modelRoot, str):
modelRoot = modelRoot.path
if isinstance(dataRoot, moose.melement) or isinstance(dataRoot, moose.vec):
if not isinstance(dataRoot, str):
dataRoot = dataRoot.path
if solver != 'hsolve' or len(moose.wildcardFind('%s/##[ISA=HSolve]' % (modelRoot))) == 0:
moose.useClock(0, '%s/##[ISA=Compartment]' % (modelRoot), 'init')
Expand Down

0 comments on commit 3116b05

Please sign in to comment.