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 ...
DMSwarm: PIC + FE Landau V spce example
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
Change use of void (*)(void) and void (**)(void) in the PETSc API to PetscVoidFn * and PetscVoidFn ** or PetscErrorCodeFn * or PetscErrorCodeFn **
TSDiscgrad: Adding average DG and -ts_discgrad_type option- Also fixed automatic particle number determinationFOO
TS Hamiltonian ex4: Now have moment equation residuals
TS Hamiltonian ex4: Added a plasma example to look at moment evolution
Fix PetscProbFunc
Fix typos
TS Hamiltonian ex2: Lots of monitoring- Add cell velocity distribution monitor- Add Fourier Transform monitor- Fix output file names- Add field energy calculation- Add field averaging
Plex+PetscFE: Fixes to allow embedded manifolds- Add PetscFEGeomMode to describe geometry- Reorganized PetscFEGeom- PetscFEGeomCreate(), DMFieldCreateFEGeom() and DMSNESGetFEGeom() now take the Pe
Plex+PetscFE: Fixes to allow embedded manifolds- Add PetscFEGeomMode to describe geometry- Reorganized PetscFEGeom- PetscFEGeomCreate(), DMFieldCreateFEGeom() and DMSNESGetFEGeom() now take the PetscFEGeomMode- J and invJ have dE dimensions- f1, g1, g2, g3 have dE dimensions- FIX the dim argument of all point function is really dE because it is used to index the gradients- Clarified behavior of PetscFEGeomGetCellPoint()- Now -dm_plex_coordinate_dim can change the coordinate dimension of a mesh created by Plex- Implicit cell geometry must be used when dim != cdim
Hamiltonian ex2: Fixed histograms of initial conditions
TS Hamiltonian ex2: Fixed 1D mixed EM- Add dmPot and isPot to support a potential subspace- Allow named vectors to be from a subspace- Add moments cellDM to compute charge density
Hamiltonian ex2: Massive cleanup- Moved remapping to DMSwarm- Removed fake 1D mode- Now get velocity DM from the Swarm cell DM- Removed initCoordinates and initVelocity fields- Optimized tabulat
Hamiltonian ex2: Massive cleanup- Moved remapping to DMSwarm- Removed fake 1D mode- Now get velocity DM from the Swarm cell DM- Removed initCoordinates and initVelocity fields- Optimized tabulation creation in electric field evaluation- Removed ComputeError()- Removed remap flag- Changed all 2D runs to 1D runs
TS Hamiltonian ex2: Add projection remapping
Hamiltonian ex2: Add 1D test- Add E field viewer, fix plot name and window placement- Reorganize Poisson viewers
Hamiltonian ex2: Optimizations, Fix projection- Cache FEM mass matrix- Cache mesh geometry- Compute projection with correct DM- Put discretization in velocity DM
Hamiltonian ex2/ex6: Rewrite particle initialization- Add logging events- Fix field handlingFOO ex6
Remove unneeded parentheses
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
Add support to MPIU_Allreduce to prevent int overflow with a single integer argument
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
The use case of PetscOptionsGetViewer() has evolved to no longer be the get/restore modelHence the code needs to be refactoredIntroduce PetscCallNull() and PetscCallMPINull() to simplify PETSC_VI
The use case of PetscOptionsGetViewer() has evolved to no longer be the get/restore modelHence the code needs to be refactoredIntroduce PetscCallNull() and PetscCallMPINull() to simplify PETSC_VIEWER_XXXX_() routinesReported-by: James WrightThanks-to: Jeremy L Thompson
TS ex2: Replace swarm ex9 with hamiltonian ex2- Parallelize initialization and primal implementation- Add test based output, mpiu vs callmpi, fix global particle number- Fix parallelization for m
TS ex2: Replace swarm ex9 with hamiltonian ex2- Parallelize initialization and primal implementation- Add test based output, mpiu vs callmpi, fix global particle number- Fix parallelization for mixed form, require superlu_dist for test case
123