Hello,
I tried to use CBC.Block and I already built PETSc with ML.
I got this message (example stokes.py) :
python stokes.py
ml
Traceback (most recent call last):
File "stokes.py", line 64, in
BB = block_mat([[ML(A), 0],
File "/Users/stephanepagano/Desktop/work/Fenics/install/lib/python2.7/site-packages/block/algebraic/petsc/precond.py", line 88, in init
precond.init(self, A, PETSc.PC.Type.ML, parameters, pdes, nullspace)
File "/Users/stephanepagano/Desktop/work/Fenics/install/lib/python2.7/site-packages/block/algebraic/petsc/precond.py", line 29, in init
self.petsc_prec.setType(prectype)
File "PETSc/PC.pyx", line 143, in petsc4py.PETSc.PC.setType (src/petsc4py.PETSc.c:134516)
petsc4py.PETSc.Error: error code 86
[0] PCSetType() line 71 in /opt/local/var/macports/build/_opt_mports_dports_math_petsc/petsc/work/v3.6.3/src/ksp/pc/interface/pcset.c
[0] Unknown type. Check for miss-spelling or missing package: http://www.mcs.anl.gov/petsc/documentation/installation.html#external
[0] Unable to find requested PC type ml
Thanks