Commit 06fa3dca authored by Frédéric Dubois's avatar Frédéric Dubois
Browse files

adding restart option to lmgc90Interface

parent c5fcf924
Pipeline #4576 passed with stage
in 2 minutes and 3 seconds
......@@ -50,7 +50,7 @@ class ParticleProblem(object):
- writeHeader() : write header file for plot
"""
def __init__(self,dim,period=0,xp=0,yp=0) :
def __init__(self,dim,period=0,xp=0,yp=0,restart=0) :
"""
Initialize lmgc90
"""
......@@ -75,7 +75,7 @@ class ParticleProblem(object):
chipy.LoadBehaviours()
chipy.utilities_logMes('READ INI DOF')
chipy.ReadIniDof()
chipy.ReadIniDof(restart)
chipy.utilities_logMes('READ DRIVEN DOF')
chipy.ReadDrivenDof()
......@@ -84,7 +84,7 @@ class ParticleProblem(object):
chipy.LoadTactors()
chipy.utilities_logMes('READ INI Vloc Rloc')
chipy.ReadIniVlocRloc()
chipy.ReadIniVlocRloc(restart)
if (period):
chipy.SetPeriodicCondition(xperiod=xp,yperiod=yp)
......@@ -92,7 +92,7 @@ class ParticleProblem(object):
chipy.PRPRx_UseCpCundallDetection(30)
chipy.OpenPostproFiles()
chipy.OpenDisplayFiles()
chipy.OpenDisplayFiles(restart+1)
chipy.WriteDisplayFiles()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment