Re: [petsc-users] DMDAVecRestoreArrayF90

2025-04-05 Thread Barry Smith
PETSc 2.23 introduced some incompatibilities in the Fortran bindings with previous versions of PETSc. As part of upgrading Fortran code for use with PETSc 2.23 the suffix F90 should be removed from all PETSc Fortran calls; for routines such as DMDAVecGetArrayF90() no other changes are

[petsc-users] DMDAVecRestoreArrayF90

2025-03-31 Thread Zhao-Yi Yan
Hi, Dear developers, I am using 3.22.4 and find that DMDAVecGetArrayF90 should be used in pair with DMDAVecRestoreArrayF90 And should NOT be used in pair with DMDAVecRestoreArray Otherwise, strange memory leakage can be caused. I know F90-style function has been discarded i

Re: [petsc-users] DMDAVecRestoreArrayF90 error

2016-07-02 Thread Karl Rupp
Hi, what you describe looks a lot like memory corruption. Does your code run cleanly through valgrind? Best regards, Karli On 07/01/2016 08:33 AM, TAY wee-beng wrote: Hi, I had problems with DMDAVecRestoreArrayF90 last time when I used an old version of Intel Fortran compiler. It works fin

[petsc-users] DMDAVecRestoreArrayF90 error

2016-06-30 Thread TAY wee-beng
Hi, I had problems with DMDAVecRestoreArrayF90 last time when I used an old version of Intel Fortran compiler. It works fine in gfortran and new version of Intel compiler. It was determined as a bug by the PETSc team. To use in old version of Intel, I had to use -O1 instead of -O3 -ipo in su