Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Barry Smith
Another issue arising from the tighter type checking. I have fixed the issue in the branch, again I rebased the branch so you cannot just git pull it (sorry). Also you will now need to change PETSC_NULL_OBJECT with PETSC_NULL_MAT for the second ZjQcmQRYFpfptBannerStart

Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Adrian Croucher
hi Barry, On 27/06/24 4:46 am, Barry Smith wrote: Another issue arising from the tighter type checking. I have fixed the issue in the branch, again I rebased the branch so you cannot just git pull it (sorry). Thanks, that has fixed that issue. Now it seems another one is popping up with Pets

Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Barry Smith
Can you add PetscCallA(PetscSectionGetValueLayout(PETSC_COMM_WORLD, section, layout, ierr)) to line 276 of src/dm/imps/plex/tests/ex26f90.F90 and see if it runs ok? Are you initializing layout or doing anything to it before your call to PetscSectionGetValueLayout()? > On Jun 26, 2024, at 9

Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Adrian Croucher
On 27/06/24 2: 30 pm, Barry Smith wrote: > >   Can you add > > PetscCallA(PetscSectionGetValueLayout(PETSC_COMM_WORLD, section, > layout, ierr)) > > to line 276 of src/dm/imps/plex/tests/ex26f90. F90 and see if it runs ok? ZjQcmQRYFpfptBannerStart This Message Is From a

Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Adrian Croucher
PS, I also just tried adding that line to src/dm/imps/plex/tests/ex26f90. F90 using an earlier version of PETSc (before the Fortran interface changes) and that did run ok. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering ZjQcmQRYFpfptBannerStart

Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Barry Smith
I determined the problem. I had not updated PetscLayout to type(tPetscLayout) so its initial value was indeterminate thus causing the problem. I rebased the branch, so you must delete it and check it out again. Sorry I also permanently added ZjQcmQRYFpfptBannerStart Thi

Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Adrian Croucher
Thanks very much Barry, that seems to have fixed it. My code runs again now. - Adrian On 27/06/24 3: 20 pm, Barry Smith wrote: > > I determined the problem. I had not updated PetscLayout to type(tPetscLayout) so its initial value was indeterminate ZjQcmQRYFpfptBannerStart

Re: [petsc-dev] New error in SNESComputeJacobianDefaultColor()

2024-06-26 Thread Barry Smith
Great, thanks for your patience and for testing out the new "improved" Fortran interfaces. > On Jun 26, 2024, at 11: 44 PM, Adrian Croucher wrote: > > Thanks very much Barry, that seems to have fixed ZjQcmQRYFpfptBannerStart This Message Is From an External Sender