Circuitscape / Circuitscape.jl

Algorithms from circuit theory to predict connectivity in heterogeneous landscapes
https://circuitscape.org
MIT License
128 stars 35 forks source link

AssertErrors for several users -- norm(G * v - curr) < 1e-6 check failing #305

Closed vlandau closed 3 years ago

vlandau commented 3 years ago

I've had at least three Omniscape users confront errors related to the @assert norm(G * v - curr) < <some tolerance> check after Circuitscape gets a solution. There are currently two open issues in Omniscape.jl, here, and here. Something must be going on with the solvers that Circuitscape is using. The error occurs regardless of whether the user specifies CG+AMG or CHOLMOD as the solver.

A few things are still needed:

I wanted to open this issue despite the above not being resolved just to get things in motion. Hopefully we can figure this out!

vlandau commented 3 years ago

Omniscape is indeed correctly using the CHOLMOD solver. Solve times were much faster.

ranjanan commented 3 years ago

@vlandau I just need the files so I can reproduce this issue locally and debug. I have commented on both those threads.

vlandau commented 3 years ago

Sounds good -- a colleague of mine ran into the same issue as well, so I can also try to track down his inputs. He was out this week but back Monday.

ranjanan commented 3 years ago

Closing this because both related Omniscape issues are now closed.