Re: [petsc-users] using custom matrix vector multiplication

2024-03-28 Thread Jed Brown
Interfaces like KSPSetOperators (https: //urldefense. us/v3/__https: //petsc. org/main/manualpages/KSP/KSPSetOperators/__;!!G_uCfscf7eWS!YINsVNEe8TcsVMY3AVwkS1hf46fWdiKi5JNOe9560N5QG1LPQyjMQgodivpJtg1IwxHgRR3_V3uHWG4h2AI$) have Amat and Pmat arguments.  ZjQcmQRYFpfptBannerStart

[petsc-users] using custom matrix vector multiplication

2024-03-28 Thread Raju Mandhapati
Hello, I want to use my own custom matrix vector multiplication routine (which will use finite difference method to calculate it). I will supply a matrix but that matrix should be used only for preconditioner and not for matrix vector multiplication. Is there a way to do it? thanks Raju.