Skip to content

Crash if preconditioner is set to PcNone in 3d #4

@alexus37

Description

@alexus37

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions