I am trying to use the solvePressure function without a Preconditioner (PcNone or 0).
solvePressure(
flags=flags,
vel=velocity,
pressure=pressure,
cgAccuracy=1e-6,
cgMaxIterFac=6000 / self.opt.res,
retRhs=rhs,
preconditioner=0,
)
I think the error is in source/plugin/pressure.cpp#L407. I would make a PR to fix it, but only if this repo is active and someone is going to look at it :D