[petsc-users] MatSetValues vs MatSetValuesBlocked

Nidish nb25 at rice.edu
Mon Aug 10 18:12:29 CDT 2020


Oh that makes sense - I just need to use the first element's address. 
Thank you!

On 8/10/20 6:00 PM, Jed Brown wrote:
> 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.
-- 
Nidish


More information about the petsc-users mailing list