Add automatic generated fortran support for setting and returning contextsMajor cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now t
Add automatic generated fortran support for setting and returning contextsMajor cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now the standard for passing in contexts - PetscCtxRt ctx is the standard for passing out contexts, including context destroy routines based on PetscCtxDestroyFnBoth of these are typedef to void*Also removed most use of user and userctx for context arguments now consistently named ctxImproved documentation on PetscCtx and PetscCtxRt and on how to use contexts (including getting them) from Fortran
show more ...
The goal of all the commits in this MR is to unify the destruction of "application" contexts.This will help with supporting language bindings. For example, for Fortran the application contextwould
The goal of all the commits in this MR is to unify the destruction of "application" contexts.This will help with supporting language bindings. For example, for Fortran the application contextwould be a user derived typeFix prototype of DMShellSetDestroyCtx function argument to use PETSc standard way of doing it with PetscCtxDestroyF.Also fix PetscViewerGLVisSetFields prototype of destroy functionThese two locations were missed when PetscCtxDestroyFn was introduced as the universal function prototype for context destruction in 3.23Reported-by: Victor Eijkhout
Convert some SETERRQ() to PetscCheck()
Adds Fortran interface for DMShellSetCreateFieldDecomposition- Implemented the Fortran interface for the DMShellSetCreateFieldDecomposition function to enable Fortran users to utilize this function
Adds Fortran interface for DMShellSetCreateFieldDecomposition- Implemented the Fortran interface for the DMShellSetCreateFieldDecomposition function to enable Fortran users to utilize this functionality.This involved adding a new callback field in the callback structure, creating a C wrapper for the Fortran callback, and providing a Fortran-callable function to register the callback.- Add a simple test to verify the functionality- Remove unused comments and variablesFix issue #165.Add test for DMShellSetCreateFieldDecompositionIntroduce a simple test for DMShellSetCreateFieldDecomposition fortran interfaceSet ierr as intent(out) in fortran interface to avoid errorConsistent formatting of filesremoved unnecessary comment in zdmshellf.cTEST block fix for the new test caseremove unused variables in dm/tests/ex54fremove dm_view unused option from test blockfix interface declaration for myFileDecompfix the ierr type errorsfix ierr type erroradd newline at end of files
Minor cleanup of Fortran binding stuff to simplify future maintainanceThere is no distinction between F90 and non-F90 code so combine ftn-custom and f90-custom directories and fortranimpl.h and f90
Minor cleanup of Fortran binding stuff to simplify future maintainanceThere is no distinction between F90 and non-F90 code so combine ftn-custom and f90-custom directories and fortranimpl.h and f90impl.h files. Also move uses of f90 to ftn when simple
Fortran: fix PETSC_HAVE_FORTRAN_UNDERSCORE defsAnd remove FORTRANDOUBLEUNDERSCORE, cleanup PETSC_HAVE_FORTRAN_UNDERSCORE_UNDERSCORERevert PETSC_VIEWER_STDOUT_BROKEN from 5022eb3e26e9dbfdd711345ef
Fortran: fix PETSC_HAVE_FORTRAN_UNDERSCORE defsAnd remove FORTRANDOUBLEUNDERSCORE, cleanup PETSC_HAVE_FORTRAN_UNDERSCORE_UNDERSCORERevert PETSC_VIEWER_STDOUT_BROKEN from 5022eb3e26e9dbfdd711345efc14d09b0dee953f
DM: Inching closer to an expanded subDM specification
Fix words appearing twice in a row for no good reason
Change the use of the _Fn suffix to indicate a typedef of a function to just FnAs determined on a vote on GitLab
Change PETSc sys typedef function names to use the new _Fn formatCommit-type: housekeeping, maintainance
LIBBASE is no longer used in make so remove it
Merge branch 'release'
Remove unneeded on in Collective statements and fix Collective overCommit-type: documentation
Rename rules.doc and rules.utils because GitLab treats the former as a MS Word document.Thanks-to: Jed Brown
Add static to internal functions
Manual linter fixes: dm
Rename PetscValidPointer -> PetscAssertPointer
Lint apply: dm
DMSHELL: must clear vectors if setting new vectorsThis could be refined to check vectortype and layouts, but it can get hairy.I prefer to always clear the work vectors
HAVE_FORTRAN should be USE_FORTRAN_BINDINGS since it is about generating the Fortran bindings, not about if the Fortran compiler exists
Format the ftn-custom files with clang-format. Apparently no particular reason we did not format them initially
More manual page fixes
non-test and tutorial makefiles only need rules.doc not the full rulesCommit-type: documentation
Only makefiles in the test and tutorial directories need lib/petsc/conf/testCommit-type: housekeeping
Fix manual pages based on reports from Jacob's lint toolCommit-type: documentation
123456