mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-30 22:03:56 +08:00
update example to work with new problem formulation in simpeg
This commit is contained in:
@@ -16,7 +16,8 @@ h = np.zeros(M.nC) + bc[0]
|
||||
|
||||
|
||||
def getFields(timeStep,method):
|
||||
prob = Richards.RichardsProblem(M, mapping=E, timeStep=timeStep, timeEnd=360,
|
||||
timeSteps = np.ones(360/timeStep)*timeStep
|
||||
prob = Richards.RichardsProblem(M, mapping=E, timeSteps=timeSteps,
|
||||
boundaryConditions=bc, initialConditions=h,
|
||||
doNewton=False, method=method)
|
||||
return prob.fields(params['Ks'])
|
||||
|
||||
Reference in New Issue
Block a user