| #
4e8208cb
|
| 31-Jan-2026 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2026-01-13/ftn-generation-for-context-functions' into 'main'
Fortran generation of interface definitions for functions that take and return context variables (void *ctx and PetC
Merge branch 'barry/2026-01-13/ftn-generation-for-context-functions' into 'main'
Fortran generation of interface definitions for functions that take and return context variables (void *ctx and PetCtx ctx)
See merge request petsc/petsc!8956
show more ...
|
| #
2a8381b2
|
| 13-Jan-2026 |
Barry Smith <bsmith@mcs.anl.gov> |
Add automatic generated fortran support for setting and returning contexts
Major 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 contexts
Major 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 PetscCtxDestroyFn
Both of these are typedef to void*
Also removed most use of user and userctx for context arguments now consistently named ctx
Improved documentation on PetscCtx and PetscCtxRt and on how to use contexts (including getting them) from Fortran
show more ...
|
| #
2a1887a7
|
| 11-Dec-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2025-11-30/fix-bad-ts' into 'main'
Fix bad decisions made in writing TS.
See merge request petsc/petsc!8877
|
| #
188af4bf
|
| 01-Dec-2025 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix bad decisions made in writing TS.
Fix -ts_dt to -ts_time_step and add initial time step to TSView output
commit a5a92c11fa9681148df375b257eda4e09909b74e Author: 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 output
commit a5a92c11fa9681148df375b257eda4e09909b74e Author: Barry Smith <bsmith@petsc.dev> Date: Mon Dec 1 14:51:27 2025 -0500
add max_snes_failures to TSView
commit 32d3e79f6fa743930b1bbf32d03b9181b5b5418a Author: Barry Smith <bsmith@petsc.dev> Fix wrongly named options and add to TSView
Wrong name for options database key -ts_max_reject should be -ts_max_step_rejections!
Add max_reject value to TSView
Add max_snes_failures to TSView
Add initial timestep to TSView
show more ...
|
| #
8112c1cb
|
| 22-Sep-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2025-09-04/deprecate-mpiu-bool' into 'main'
Deprecate MPIU_BOOL which used to be for PETSc's enum Bool but now is just MPI_C_BOOL
See merge request petsc/petsc!8691
|
| #
5440e5dc
|
| 04-Sep-2025 |
Barry Smith <bsmith@mcs.anl.gov> |
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
|
| #
d8e47b63
|
| 17-Sep-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2024-09-02/rebased-fix-conversion-warnings' into 'main'
Compiler finds (and forbid) casts from higher precision integers to lower
See merge request petsc/petsc!7806
|
| #
462c564d
|
| 14-Sep-2024 |
Barry Smith <bsmith@mcs.anl.gov> |
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
|
| #
bff66efa
|
| 15-Dec-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'ilya-fursov/ts-fixevent2' into 'main'
TSEvent: refactor and fix bugs, add TSSetPostEventStep()
See merge request petsc/petsc!6752
|
| #
fa9584fb
|
| 03-Dec-2023 |
Ilya Fursov <ilya.foursov.7bd@gmail.com> |
Update the previously existing TSEvent tests and tutorials.
Move src/ts/tests/ex1.c to src/ts/event/tests/ex1.c Move src/ts/tests/ex16.c to src/ts/event/tests/ex16.c Move src/ts/tests/ex22.c to src/
Update the previously existing TSEvent tests and tutorials.
Move src/ts/tests/ex1.c to src/ts/event/tests/ex1.c Move src/ts/tests/ex16.c to src/ts/event/tests/ex16.c Move src/ts/tests/ex22.c to src/ts/tutorials/ex32.c, as it's not a test.
Fix the bouncing ball examples src/ts/tutorials/ex40.c and ex44.c to cleanly terminate on reaching M bounces.
show more ...
|
| #
ca4445c7
|
| 20-Jul-2023 |
Ilya Fursov <ilya.foursov.7bd@gmail.com> |
TSEvent: refactor and fix bugs, add TSSetPostEventStep()
Refactor the core algorithm for resolution of events: TSEventHandler() and the helper functions, fixing the existing bugs.
Chang
TSEvent: refactor and fix bugs, add TSSetPostEventStep()
Refactor the core algorithm for resolution of events: TSEventHandler() and the helper functions, fixing the existing bugs.
Change event indicator functions from PetscScalar to PetscReal. Change the API of TSSetEventHandler(): in the user `indicator()` callback, the 'fvalue' argument type changed from PetscScalar[] to PetscReal[].
Add TSSetPostEventStep(), deprecate TSSetPostEventIntervalStep(). Deprecate option -ts_event_post_eventinterval_step.
Fix bugs in interaction of TSEvent with tspan. Add six new test examples.
Below are the examples of bugs fixed by this patch. The source codes (ex3.c, ex3span.c, ex4.c, ex5.c) can be found in src/ts/event/tests. To run them with the older Petsc versions, one would need to comment out "#define NEW_VERSION". Behaviour for three library versions is reported below: * ORIG: current Petsc version, before the proposed patch. * 6688: independently of the proposed patch, Merge Request 6688 was developed, which fixed some bugs with zero-crossing directions. * NEW : the proposed patch.
./ex3 -ts_monitor -ts_event_monitor -ts_view -ts_type beuler \ -ts_adapt_type basic -flg -V 1e9 -ts_adapt_dt_min 1e-6 -change5 1 -dir 1 * ORIG: fails to resolve 5 out of 6 events, and resolves 23 incorrect events. * 6688: fails to exit the TSEvent iteration via the step size (bracket size) criterion. * NEW : ok, resolves all 6 events.
./ex4 -ts_adapt_type basic -ts_type rk -ts_dt 0.25 -ts_event_tol 1e-8 \ -dir 0 -ts_adapt_dt_min 1e-10 -ts_view -ts_monitor -ts_event_monitor * ORIG: only reaches t = 0.0300236 after 10000 TS steps. * 6688: only reaches t = 0.0300236 after 10000 TS steps. * NEW : ok, reaches the final time t = 4.0 after 96 TS steps, resolving all 16 events.
./ex5 -ts_monitor -ts_event_monitor -ts_type rk -ts_adapt_type basic \ -ts_view -ts_dt 0.25 -flg -dir 0 * ORIG: only reaches t = 4.0 after 10000 TS steps, erroneously reports event at t = 4.0 around 5000 times. * 6688: only reaches t = 4.0 after 10000 TS steps. * NEW : ok, reaches the final time t = 10.0 after 99 TS steps, resolving all 34 events.
./ex5 -ts_monitor -ts_event_monitor -ts_type rk -ts_adapt_type basic \ -ts_view -ts_dt 0.25 -flg -dir 1 * ORIG: fails, starts taking negative time steps, no events are correctly resolved. * 6688: ok, but slower: 90 TS steps to resolve all 17 events. * NEW : ok, and faster: 48 TS steps to resolve all 17 events.
./ex5 -ts_monitor -ts_event_monitor -ts_type rk -ts_adapt_type basic \ -ts_view -ts_dt 0.25 -flg -dir -1 * ORIG: fails, starts taking 'nan' time steps. * 6688: mostly fails, only reaches t = 4.99993 after 10000 TS steps. * NEW : ok, reaches the final time t = 10.0 after 74 TS steps, resolving all 17 events.
The same run in parallel: mpirun -n 2 ./ex5 -ts_monitor -ts_event_monitor -ts_type rk \ -ts_adapt_type basic -ts_view -ts_dt 0.25 -flg -dir -1 * ORIG: fails, starts taking negative time steps, exits with runtime error. * 6688: mostly fails, only reaches t = 3, besides, the parallel run is not consistent with the serial run (see above). * NEW : ok, reaches the final time t = 10.0 after 74 TS steps, resolving all 17 events.
./ex3span -ts_monitor -ts_event_monitor * ORIG: (confused by events) misses tspan points: 4.02, 4.21, 4.98, 5.01, 5.21, 5.98, 6, 6.01, 6.02, 6.21, 6.99, 7.21, 8.01, 8.21, 9.01. * 6688: (confused by events) misses tspan points: 4.02, 4.21, 4.98, 5.01, 5.21, 5.98, 6, 6.01, 6.02, 6.21, 6.99, 7.21, 8.01, 8.21, 9.01. * NEW : ok.
./ex3span -ts_monitor -ts_event_monitor -ts_event_post_event_step 0.5 * ORIG: misses the majority of tspan points (except 0.01 and 0.21), and also resolves the last event location at wrong time t = 9.21. * 6688: misses the majority of tspan points (except 0.01 and 0.21), and also resolves the last event location at wrong time t = 9.21. * NEW : ok.
show more ...
|
| #
31d78bcd
|
| 02-Feb-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-12-10/petscerrorcode-nodiscard' into 'main'
Feature: Non-discardable PetscErrorCode
See merge request petsc/petsc!5923
|
| #
3ba16761
|
| 10-Dec-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Make PetscErrorCode a non-discardable enum
|
| #
061e922f
|
| 22-Sep-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-09-21/2-bike-2-shed' into 'main'
Feature: Bicycle Storage Facility 2
See merge request petsc/petsc!5661
|
| #
d71ae5a4
|
| 21-Sep-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
source code format changes due to .clang-format changes
|
| #
58d68138
|
| 23-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-08-21/clang-format-source' into 'main'
format repository with clang-format
See merge request petsc/petsc!5541
|
| #
9371c9d4
|
| 22-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
clang-format: convert PETSc sources to comply with clang-format
|
| #
cdc546e2
|
| 09-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-07-25/print-warning-unused-options-on-error' into 'main'
Print unused options when output error message
See merge request petsc/petsc!5473
|
| #
7510d9b0
|
| 29-Jul-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
correct all the PetscFunctionBegin; in ts tutorials and tests to PetscFunctionBeginUser;
Commit-type: error-handling, examples, style /spend 5m
|
| #
5cab5458
|
| 26-Jul-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-07-23/add-petscbeginuser' into 'main'
Add PetscFunctionBeginUser to all PETSc C/C++ examples
See merge request petsc/petsc!5470
|
| #
327415f7
|
| 23-Jul-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Add PetscFunctionBeginUser to all PETSc C/C++ examples
Now the stack frames will contain the main program and the correct line numbers in them
git ls-files | egrep "(tutorials|tests)" | xargs sed -
Add PetscFunctionBeginUser to all PETSc C/C++ examples
Now the stack frames will contain the main program and the correct line numbers in them
git ls-files | egrep "(tutorials|tests)" | xargs sed -i "s?\(PetscCall(PetscInitialize(&argc\)?PetscFunctionBeginUser;\n \1?g"
Commit-type: error-checking, testing-fix /spend 15m
show more ...
|
| #
1335eab4
|
| 15-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-04-05/petscattrformat-all-the-rest' into 'main'
Enable PETSC_ATTRIBUTE_FORMAT()
See merge request petsc/petsc!5085
|
| #
63a3b9bc
|
| 06-Apr-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Enable PETSC_ATTRIBUTE_FORMAT()
|
| #
527ad957
|
| 11-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-04-01/fix-petsc-options-begin-end/release' into 'main'
Remove bogus error returns from Begin/End() macros
See merge request petsc/petsc!5069
|
| #
d0609ced
|
| 02-Apr-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Cleanup of introduction of PetscCall()
* remove bogus error flags from XXXBegin()/End() macros such as PetscOptionsBegin()/End()
* rename for consistency certain XXXBegin()/End() macros such as Mat
Cleanup of introduction of PetscCall()
* remove bogus error flags from XXXBegin()/End() macros such as PetscOptionsBegin()/End()
* rename for consistency certain XXXBegin()/End() macros such as MatPreallocateInitialize()/Finalize()
* fix many lingering ierr = XXX that arose from multiline function calls
* sync slepc/hpddm - to use snapshots with the same changes
Commit-type: error-checking, style-fix /spend 8h
show more ...
|