|
Hi Jed,
I pushed my attempts in https://gitlab.com/petsc/petsc/-/merge_requests/5385
I thought that they would be similar to VecGetArrayF90, but evidently they are not...
Strangely, valgrind reports a problem in VecSetValues, but not in VecGetValues. There are a few occurrences of a XXXGetYYY without a matching XXXRestoreYYY (but I can’t think of any at the moment), typically when the Get does not allocate any memory but
just returns a pointer. I would indeed prefer if all Get were matched with a Restore, even if the Restore does nothing.
Regards,
Blaise
--
Professor, Department of Mathematics & Statistics Hamilton Hall room 409A, McMaster University 1280 Main Street West, Hamilton, Ontario L8S 4K1, Canada https://www.math.mcmaster.ca/bourdin | +1 (905) 525 9140 ext. 27243 |
- [petsc-dev] Fortran binding for VecGetValuesSection Blaise Bourdin
- Re: [petsc-dev] Fortran binding for VecGetValuesSectio... Jed Brown
- Re: [petsc-dev] Fortran binding for VecGetValuesSe... Blaise Bourdin
