[petsc-users] MatSetValues vs MatSetValuesBlocked

Jed Brown jed at jedbrown.org
Mon Aug 10 18:00:57 CDT 2020


Nidish <nb25 at rice.edu> writes:

> Urgh I must've been blind - flycheck was throwing warnings only if I 
> didn't cast elstiff[][] into const PetscScalar* .

You don't have to cast there either, just pass &elstiff[0][0], for example.


More information about the petsc-users mailing list