AMGX icon indicating copy to clipboard operation
AMGX copied to clipboard

coarser level matrix update during resetup process

Open lengfeih opened this issue 4 years ago • 1 comments

Hi,

I notice that if I update the matrix entries value and keep the matrix sparsity pattern the same, I may able to use the resetup function to reuse the previous step coarsening structure. The structure_reuse_levels option needs to be set to "-1".

My question is although the structure is reused, computeAOperator function will still re-compute the sparsity before fill the Ac matrix, is it possible to skip this sparsity recomputing?

Thanks Frank

lengfeih avatar Jan 06 '21 01:01 lengfeih

I completely agree that if resetup is redundantly re-computing the sparsity pattern then we could optimise here. I am planning to take a look through the setup phase over the coming months to isolate improvements of this manner: (a) aggressively caching and (b) improving the scaling of the resetup.

Once I have validated this is what is happening and created a patch I will associate this issue.

mattmartineau avatar Feb 01 '21 10:02 mattmartineau