Fix the inconsistent usage of #if [!]defined XXX compared to defined(XXX)Thanks-to: Pierre JolivetAn LLM Claude detected the incosnsitency it was not used to remove the inconsistency
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 ...
Fix bad decisions made in writing TS. Fix -ts_dt to -ts_time_step and add initial time step to TSView outputcommit a5a92c11fa9681148df375b257eda4e09909b74eAuthor: Barry Smith <bsmith@petsc.de
Fix bad decisions made in writing TS. Fix -ts_dt to -ts_time_step and add initial time step to TSView outputcommit a5a92c11fa9681148df375b257eda4e09909b74eAuthor: Barry Smith <bsmith@petsc.dev>Date: Mon Dec 1 14:51:27 2025 -0500 add max_snes_failures to TSViewcommit 32d3e79f6fa743930b1bbf32d03b9181b5b5418aAuthor: Barry Smith <bsmith@petsc.dev>Fix wrongly named options and add to TSViewWrong name for options database key -ts_max_reject should be -ts_max_step_rejections!Add max_reject value to TSViewAdd max_snes_failures to TSViewAdd initial timestep to TSView
checkbadSource: enforce proper style in makefiles
Deprecate MPIU_BOOL which used to be for PETSc' enum Bool but now is just MPI_C_BOOL so no longer needs its own name
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#'
Typos
some doc/manual page fixes
ts: Deprecate TSGetTimeSpan and TSGetTimeSpanSolutionsAlso rename TSGetEvaluationTimesSolutions -> TSGetEvaluationSolutionsCo-authored-by: Barry Smith <bsmith@mcs.anl.gov>
style: Change tspan -> eval_timesThis to make the backend nomenclature more consistent
ts: Create TS*EvaluationTimes() functions
tests: switch '-V' option (to '-v') in src/ts/events/tests/ex3.c - this conflicts with '-V' option in config/petsc_harness.shThis conflict is triggered by 'make test V=0' as used by 'make alltests'
tests: switch '-V' option (to '-v') in src/ts/events/tests/ex3.c - this conflicts with '-V' option in config/petsc_harness.shThis conflict is triggered by 'make test V=0' as used by 'make alltests'Ref:balay@al:~/petsc$ make test search=ts_event_tests-ex3_VUsing MAKEFLAGS: -- search=ts_event_tests-ex3_V TEST arch-ci-linux-cmplx-single-arm/tests/counts/ts_event_tests-ex3_V.counts ok ts_event_tests-ex3_V+V-1e2_change5-0 ok diff-ts_event_tests-ex3_V+V-1e2_change5-0 ok ts_event_tests-ex3_V+V-1e2_change5-1 ok diff-ts_event_tests-ex3_V+V-1e2_change5-1 ok ts_event_tests-ex3_V+V-1e5_change5-0 ok diff-ts_event_tests-ex3_V+V-1e5_change5-0 ok ts_event_tests-ex3_V+V-1e5_change5-1 ok diff-ts_event_tests-ex3_V+V-1e5_change5-1 ok ts_event_tests-ex3_V+V-1e8_change5-0 ok diff-ts_event_tests-ex3_V+V-1e8_change5-0 ok ts_event_tests-ex3_V+V-1e8_change5-1 ok diff-ts_event_tests-ex3_V+V-1e8_change5-1balay@al:~/petsc$ make test search=ts_event_tests-ex3_V V=0Using MAKEFLAGS: -- V=0 search=ts_event_tests-ex3_Vnot ok diff-ts_event_tests-ex3_V+V-0_change5-0 * Error code: 1* 2,12c2,3* < 0 1. 1.78245e-07 pass* < 0 1.05 4.52791e-08 pass* < 0 2. 1.44922e-07 pass* < 0 3. 1.08548e-07 pass* < 0 4. 4.04742e-07 pass* < 0 5. 2.7984e-06 pass* < 0 6. 2.24499e-07 pass* < 0 7. 1.88794e-07 pass* < 0 8. 2.82053e-07 pass* < 0 9. 5.73366e-07 pass* < 0 9.05 1.11373e-07 pass* ---* > 0 1.05 0.0500001 fail* > 0 9.05 8. fail...
Use NULL or nullptr instead of casted 0
Fix MPIU_* routines to always return MPI error codes and thus be usable with PetscCallMPI()Introduce MPIU_Count to be used when MPI_Count is not available
Change from deprecated PETSC_MAX/MIN_INT to PETSC_INT_MAX/MINCommit-type: i.e. error-checking, optimization, bug-fix, portability-fix, testing-fix, style-fix, feature, documentation, exampleFunded
Change from deprecated PETSC_MAX/MIN_INT to PETSC_INT_MAX/MINCommit-type: i.e. error-checking, optimization, bug-fix, portability-fix, testing-fix, style-fix, feature, documentation, exampleFunded-by:Project:Time: hoursReported-by:Thanks-to:Development Tools: Vim, Emacs, Eclipse
Add to CI compilers flags '-Wconversion', '-Wno-sign-conversion', '-Wno-float-conversion', '-Wno-implicit-float-conversion']Also fix the code to repository to compile cleanly with these flags in th
Add to CI compilers flags '-Wconversion', '-Wno-sign-conversion', '-Wno-float-conversion', '-Wno-implicit-float-conversion']Also fix the code to repository to compile cleanly with these flags in the CI
Merge branch 'release-revert-7765'
TS: add TSGetStepResize() to API to inquire about resizing
TSEvent monitor prints the output from all MPI processes instead of just rank 0
Add support for PETSC_DETERMINE to revert to defaults TS parameters
TSSetResize: support remeshing with step restart
Remove some unneeded parentheses
checkbadSource: rules for PetscFunctionBegin and derivatives
LIBBASE is no longer used in make so remove it
123456