On Wednesday, 14 June 2017, Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> wrote:

If your update method in your PC is empty, then the pc will not be rebuilt when the matrix changes. I think that is what you want.
If course, there are no matrix entries, so you just need to ensure that you reassemble the matrix appropriately I think.

Ah, it's actually in a Linear Solver, so I pass in an 'assembled' matrix with matfree mat type. Does the generated code get the new coefficient values passed in? 
 


--
http://www.imperial.ac.uk/people/colin.cotter

www.cambridge.org/9781107663916