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 ...
Merge remote-tracking branch 'origin/release'
Improve some manual pages for TS
checkbadSource: enforce proper style in makefiles
Fix SNES not using user-provided Jacobian in FARKIMEXUser-provided Jacobian was associated with the subTS snes and not passed along to the SNES from RHSSplit.
Remove unnecessary braces around one-linersgit grep -lE "[ ]*(if|for|while) \(.*\) {[^;]*;[^;]*}$" -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | xargs sed -i '' -E 's#([ ]*)(if|for|while) \((.*)\
Remove unnecessary braces around one-linersgit grep -lE "[ ]*(if|for|while) \(.*\) {[^;]*;[^;]*}$" -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | xargs sed -i '' -E 's#([ ]*)(if|for|while) \((.*)\) {([^;]*);([^;]*)}$#\1\2 \(\3\)\4;\5#'
Convert some SETERRQ() to PetscCheck()
One-liners from petsc/petsc!5344 and petsc/petsc!5557Slightly reworked regular expressiongit ls-files -z -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | while IFS= read -r -d '' file; do cat
One-liners from petsc/petsc!5344 and petsc/petsc!5557Slightly reworked regular expressiongit ls-files -z -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | while IFS= read -r -d '' file; do cat $file | tr '\n' '\r' | sed -E 's/\r([ ]*)(for|if|while|else) ([^\r]*)\{\r[ ]*Petsc([a-zA-Z]*)\(([^\r]*)\);\r[ ]*\}\r/\r\1\2 \3Petsc\4(\5);\r/g' | tr '\r' '\n' > ${file}.joe; mv ${file}.joe ${file}done
missing "s" for isascii and issundials
Remove use of preconditioning or preconditioner matrix when it should be phrased as matrix used to construct preconditioner
Fix typos
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous ve
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous versions!- also clean up inconsistent PETSc code detected by new Fortran generation tools- drop use of bfort- automatically generate all the Fortran PETSc objects, enums etc from the include files- generate most of the Fortran interface definitions and functions from the source code- simplify the number and organization of Fortran modulesCo-authored-by: Jose E. Roman <jroman@dsic.upv.es>
Brain dead fixes for useless casts
Add SNES options for the new ARKIMEX solver
Add SNESTSFormFunction/Jacobian for ARKIMEX_FastSlowSplitThe old SNESTSFormFunction/Jacobian is too overloaded.
Add TSRHSSplitGet/SetSNES()Use a different SNES object for TSRHSSplit so that the origina SNES DM still matches the TS DM.
Add a new ARKIMEX solver for fast-slow systems
SNES: add SNESResetCounters
TS: add TSGetStepResize() to API to inquire about resizing
TSDIRK: allow non-consistent dual variablesthis requires the algebraic IS during the residual callbackadd tests
Fix gcc-14 -Warray-bounds warnings for hypothetical negative sizesThese warnings arise because we use (signed int32) PetscInt for sizesthat must be nonnegative, then cast to size_t. This leads to
Fix gcc-14 -Warray-bounds warnings for hypothetical negative sizesThese warnings arise because we use (signed int32) PetscInt for sizesthat must be nonnegative, then cast to size_t. This leads to warningswhen the compiler doesn't know that the integers can't be negative.In function ‘PetscMemzero’, inlined from ‘TSARKIMEXRegister’ at /home/jed/petsc/src/ts/impls/arkimex/arkimex.c:1182:10:/home/jed/petsc/include/petscstring.h:758:3: warning: ‘memset’ pointer overflow between offset 0 and size [-17179869184, -8] [-Warray-bounds=] 758 | memset(a, 0, n); | ^~~~~~~~~~~~~~~Compare commit 095c51fa7c16ea848964bdaab3c2c2b53b8a3072 from 2023: Fix gcc-13 -Warray-bounds warnings involving hypothetical negative sizes
Update source code removing all unneeded /*@C and associated manual stubs and interfaces
1234567891011