-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pflotran@develop build failures due to fortran interface changes in petsc@main #255
Comments
There are multiple changes on PETSc fortran interface. The first one:
i.e the following change gets this part of the issue resolved [and this change should work with older petsc versions aswell: - call VecLockPop(xx,ierr);CHKERRQ(ierr)
+ call VecLockReadPop(xx,ierr);CHKERRQ(ierr) etc.. |
Next issue: triggered by https://gitlab.com/petsc/petsc/-/merge_requests/7559
The following usage is in pfortran - which is no longer correct? So I'm not sure what changes is required here [and stay backward compatible with current release] solver%snes = PETSC_NULL_SNES
<snip>
call SNESCreate(comm,solver%snes,ierr);CHKERRQ(ierr)
<snip>
if (solver%snes /= PETSC_NULL_SNES) then
call SNESDestroy(solver%snes,ierr);CHKERRQ(ierr) |
also cc: @rtmills |
Sorry. I completely missed this. Are there any Fortran examples for SNESCreate/Destroy()? |
I think we'll need @BarrySmith 's help here. I'll have to recheck issues with latest petsc/main |
No need. I figured it out (helps to think before asking a question). Fortran is now using classes (extended derived types) instead of derived types. These changes are relatively comprehensive. We have a release coming up in a few weeks that will be based on 3.21. After that release, we will refactor. |
Sure thanks! This work is more for the next xsdk release due nov (i.e with the next petsc version 3.22 due sept etc..).. |
https://gitlab.com/xsdk-project/spack-xsdk/-/jobs/7100286934
The text was updated successfully, but these errors were encountered: