Make SPH operations raise sensible exceptions on failure
Set warnings flag at start of all smooth operations