Remove the last of the use of horizontal lines --- as seperators. With modern code development systems they are not needed and just an eye-sore
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
Improve some manual pages for TS
TSStep: need to cancel SNES monitors in case of errors
TS: fix docs for TSFunctionDomainError
TSErrorWeightedNorm: add API checks
Fix the definition of PetscErrorCodeFn; this reverts API change in !8615Co-authored-by: Pierre Jolivet <pierre@joliv.et>Reported-by: Lisandro Dalcin <dalcinl@gmail.com>
TSSetFromOptions: fix uninitialized value with -help
Introduce PetscFortranCallbackFn to be used instead of PetscVoidFn for Fortran callback functionsAlso fix incorrect use of SNESFunctionFn and SNESJacobianFn in SNES Fortran manual stub
Change use of void (*)(void) and void (**)(void) in the PETSc API to PetscVoidFn * and PetscVoidFn ** or PetscErrorCodeFn * or PetscErrorCodeFn **
Merge remote-tracking branch 'origin/release'
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#'
missing "s" for isascii and issundials
Fix definitions of some TSAjdoint functions array arguments from Vec * to Vec [] and Vec ** to Vec *[] so that Fortran binding generator produces correct Fortran interface definitionsReported-by:
Fix definitions of some TSAjdoint functions array arguments from Vec * to Vec [] and Vec ** to Vec *[] so that Fortran binding generator produces correct Fortran interface definitionsReported-by: NicolaC
ts: TSEvaluationTimes works over multiple calls to TSSolve()A few changes to make this work:- Have multiple calls to `TSSetEvaluationTimes()` reset all index counters in addition to `sol_times`
ts: TSEvaluationTimes works over multiple calls to TSSolve()A few changes to make this work:- Have multiple calls to `TSSetEvaluationTimes()` reset all index counters in addition to `sol_times` and `sol_vecs`- Move the allocation of `sol_vecs` into TSSolve itself- At the top of `TSSolve()`, check if the initial condition has already been written to `sol_times`Also includes some minor renaming and comment changes
removed unused code and limit to central locationPetscValidLogicalCollectiveXXX are defined in include/petsc/private/petscimpl.h
Merge branch 'jed/ts-monitor-speed' into 'main'TSMonitorSpeed: -ts_monitor_speedSee merge request petsc/petsc!6663
TSMonitorWallClockTime: -ts_monitor_wall_clock_timeSometimes machine performance experiences transient degradation and onewishes to know about the elapsed wall-clock time. With implicitintegratio
TSMonitorWallClockTime: -ts_monitor_wall_clock_timeSometimes machine performance experiences transient degradation and onewishes to know about the elapsed wall-clock time. With implicitintegration, a given step could be slow because it needs more iterationsor because of a machine issue. Reporting the snes and ksp iterations foreach step is useful to distinguish these factors.Co-authored-by: Barry Smith <bsmith@mcs.anl.gov>
Use PetscBool instead of PetscInt for setupcalledPetscInt was used in some structs, but the underlying logic requires only Booleans. Also removed an unused variable and unified capitalization.
Merge branch 'kjansen/MRcontinue_Run_withTest' into 'main'TS: Alternate approaches for continuing runsSee merge request petsc/petsc!7870
ts: Add -ts_run_steps and -ts_monitor_solution_skip_initialCo-authored-by: Kenneth E. Jansen <kenneth.jansen@colorado.edu>Co-authored-by: Jed Brown <jed@jedbrown.org>Co-authored-by: Barry Smith <
ts: Add -ts_run_steps and -ts_monitor_solution_skip_initialCo-authored-by: Kenneth E. Jansen <kenneth.jansen@colorado.edu>Co-authored-by: Jed Brown <jed@jedbrown.org>Co-authored-by: Barry Smith <bsmith@mcs.anl.gov>
refactor(ts): Remove -ts_monitor_frequency for *_interval`-ts_monitor_frequency` was only respected by`-ts_dmswarm_monitor_moments` anyways, which already had the `interval`flag associated with i
refactor(ts): Remove -ts_monitor_frequency for *_interval`-ts_monitor_frequency` was only respected by`-ts_dmswarm_monitor_moments` anyways, which already had the `interval`flag associated with it.
Fix for getAPI for finding functions listed in include files that should have Fortran bindings
12345678910>>...60