Getting a few of the examples to work.

Asked by Will

A couple of the examples that use the StokesProblemCartesian solution seem to give me some trouble. I've just tried to run the examples without any changes.

fluid.py tells me the variable useUzawa might not exist anymore?
----------------------------
File "fluid.py", line 55, in <module>
    velocity,pressure=solution.solve(velocity,pressure,max_iter=max_iter,verbose=verbose,useUzawa=useUzawa)
TypeError: solve() got an unexpected keyword argument 'useUzawa'
----------------------------

And - lit_driven_cavity.py seems to hit some sort of correction issue?
----------------------------
File "lit_driven_cavity.py", line 35, in <module>
    v,p=sc.solve(v,p, verbose=True)
  File "escript/py_src/pdetools.py", line 1622, in solve
esys.escript.pdetools.CorrectionFailed: Given up after 11 correction steps.
----------------------------

I am using release_2.0.0 checked out from svn. Thanks for any help in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Lutz Gross
Solved:
Last query:
Last reply:
Revision history for this message
Best Lutz Gross (l-gross) said :
#1

Both codes use the Model module which is not part of the 2.0 release but unfortunatly have put into the example directory.
The fluid problem may run if you remove the useUzawa argument. The Model module will be avaiable in
version 2.1.
If you check out the newest version from svn both examples should work.

Revision history for this message
Will (will-hancock) said :
#2

Thanks Lutz Gross, that solved my question.