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 ...
CI: avoid duplicate file names with cuda/kokkos sources, add a test to checkbadSourcecuda+coverage uses 'nvcc --keep-dir=DIR' option - this createsconflicts with 'make -j' where intermediate gener
CI: avoid duplicate file names with cuda/kokkos sources, add a test to checkbadSourcecuda+coverage uses 'nvcc --keep-dir=DIR' option - this createsconflicts with 'make -j' where intermediate generated files in DIRduring compilation of one source-file might affect the compile ofanother source file - with the same name.CI: linux-cuda-pkgs can now run all tests - so remove the 'vec*' restriction
Merge remote-tracking branch 'origin/release'
Remove some convoluted code I wrote due to a misunderstanding on my partThanks-to: Stefano Zampini <stefano.zampini@gmail.com>
Merge branch 'release'
Remove hard-wired matrix type; add test blocks; add optional test for MatDiagonalScaleLocal()
Fix outdated output of MatView() for nest matrix with ASCIINow matches VecNest version and does not have outdated reprinting of Mat Object and type
cleanup suggestions by @BarrySmithalso noticed a few stray functions not marked as external and put theminto modules
place all the include statements at the topRepeated inclusion in multiple location, e.g. at the start of amodule or function is not needed. This becomes clear if all includes areoutside of the ac
place all the include statements at the topRepeated inclusion in multiple location, e.g. at the start of amodule or function is not needed. This becomes clear if all includes areoutside of the actual Fortran code.Added regex to check that with the help of @sbalay
Change use of void (*)(void) and void (**)(void) in the PETSc API to PetscVoidFn * and PetscVoidFn ** or PetscErrorCodeFn * or PetscErrorCodeFn **
Run fprettify
Remove explicitly listed empty files and switch to output/empty.out
Adds Fortran interface for DMShellSetCreateFieldDecomposition- Implemented the Fortran interface for the DMShellSetCreateFieldDecomposition function to enable Fortran users to utilize this function
Adds Fortran interface for DMShellSetCreateFieldDecomposition- Implemented the Fortran interface for the DMShellSetCreateFieldDecomposition function to enable Fortran users to utilize this functionality.This involved adding a new callback field in the callback structure, creating a C wrapper for the Fortran callback, and providing a Fortran-callable function to register the callback.- Add a simple test to verify the functionality- Remove unused comments and variablesFix issue #165.Add test for DMShellSetCreateFieldDecompositionIntroduce a simple test for DMShellSetCreateFieldDecomposition fortran interfaceSet ierr as intent(out) in fortran interface to avoid errorConsistent formatting of filesremoved unnecessary comment in zdmshellf.cTEST block fix for the new test caseremove unused variables in dm/tests/ex54fremove dm_view unused option from test blockfix interface declaration for myFileDecompfix the ierr type errorsfix ierr type erroradd newline at end of files
Fix wrong case for PETSc
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>
Kokkos: add support of AMD MI300A* Use HostMirrorMemorySpace instead of HostSpace to fix compile errors on MI300A* Replace Kokkos::HostSpace with HostMirrorMemorySpace to fix compile errors on MI
Kokkos: add support of AMD MI300A* Use HostMirrorMemorySpace instead of HostSpace to fix compile errors on MI300A* Replace Kokkos::HostSpace with HostMirrorMemorySpace to fix compile errors on MI300A, since the latter is what Kokkos::DualView use for its host view* Fix a subtle bug in KokkosDualViewSync() w.r.t MI300A. Suppose we want to sync a petsc VecKokkos v on host. On MI300A, the host copy v_h and the device copy v_d share the memory. So in the old code, we used if (v_dual.need_sync_host()) to skip the device to host memory copy. But I should not skip the exec.fence(). As the device might still have kernels writing v_d, we still need to sync the device/stream to make v_d ready for use on CPU (via v_h).
brain dead fixes for useless casts in examples
Fix wrong PetscErrorCode
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
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
Viwering PetscSection displays dof as dim in the ASCII files, fix to dof
Add an error check for DMSetFromOptions() being called after DMSetUp().Reported-by: Jack Smith
12345