Add a bit more discussion of DM and their commonalities to the docs
feat(section): Add PetscSectionDistributeData()This is a copy/paste of `DMPlexDistributeData()`, but brought up to thePetscSection interface because the routine is completely genericCo-authored-
feat(section): Add PetscSectionDistributeData()This is a copy/paste of `DMPlexDistributeData()`, but brought up to thePetscSection interface because the routine is completely genericCo-authored-by: Barry Smith <bsmith@mcs.anl.gov>
show more ...
section: Allow NULL array in `PetscSectionArrayView()`Only if the section storage size is 0, otherwise raise error.
fix(section): Use PetscReal for non-standard FPCompile errors when using `--with-scalar-type=complex --with-precision=__float128` due to illegal cast:```petsc/src/vec/is/section/interface/section
fix(section): Use PetscReal for non-standard FPCompile errors when using `--with-scalar-type=complex --with-precision=__float128` due to illegal cast:```petsc/src/vec/is/section/interface/section.c:2630:65: error: invalid cast from type 'PetscScalar' {aka '__complex__ _Float128'} to type 'double' 2630 | PetscCall(PetscViewerASCIISynchronizedPrintf(viewer, " %g", (double)((PetscScalar *)array)[index])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```Also changed the function name to be more reflection of what it does.Reported-by: Jose E. Roman <jroman@dsic.upv.es>
section: Implement ArrayView function, use for PetscSectionVecView
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#'
Convert some SETERRQ() to PetscCheck()
Section: Copy block starts when subsetting
Fix manual pages related to FortranRemove a couple of dead Fortran bindings
Merge remote-tracking branch 'origin/release'
docs: Add user manual documentation of PetscSection
Minor cleanup of Fortran binding stuff to simplify future maintainanceThere is no distinction between F90 and non-F90 code so combine ftn-custom and f90-custom directories and fortranimpl.h and f90
Minor cleanup of Fortran binding stuff to simplify future maintainanceThere is no distinction between F90 and non-F90 code so combine ftn-custom and f90-custom directories and fortranimpl.h and f90impl.h files. Also move uses of f90 to ftn when simple
Update to clang-format-20
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>
Section: Wrong object used for comm
Brain dead fixes for useless casts
Fix ranlib warnings 'file has no symbols'These warnings appear in macOS when configured --with-shared-libraries=0/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-nosh
Fix ranlib warnings 'file has no symbols'These warnings appear in macOS when configured --with-shared-libraries=0/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(sectionhdf5.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(zhdf5io.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(hdf5io.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(aijhdf5.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(baijfact81.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(densehdf5.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(feceed.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(fvceed.o) has no symbols/Library/Developer/CommandLineTools/usr/bin/ranlib: file: arch-darwin-c-debug-noshared/lib/libpetsc.a(plexhdf5xdmf.o) has no symbolsIncludes the removal of unnecessary custom fortran stubs.
Fix compiler warnings from NVIDIA nvc 24.7"src/vec/is/section/interface/section.c", line 1268: warning: pointless comparison of unsigned integer with zero [unsigned_compare_with_zero] PetscCa
Fix compiler warnings from NVIDIA nvc 24.7"src/vec/is/section/interface/section.c", line 1268: warning: pointless comparison of unsigned integer with zero [unsigned_compare_with_zero] PetscCall(PetscMalloc1(last >= 0 ? s->bc->atlasOff[last] + s->bc->atlasDof[last] : 0, &s->bcIndices)); ^"src/mat/impls/aij/mpi/mumps/mumps.c", line 2101: warning: loop is not reachable [loop_not_reachable] PetscCheck(!schur, PETSC_COMM_SELF, PETSC_ERR_SUP, "Cannot use -%smat_mumps_use_omp_threads with the Schur complement feature", ((PetscObject)F)->prefix ? ((PetscObject)F)->prefix : ""); ^"src/dm/impls/swarm/swarm.c", line 217: warning: variable "flg" was set but never used [set_but_not_used] PetscBool flg; ^"src/ts/utils/dmplexlandau/plexland.c", line 1848: warning: loop is not reachable [loop_not_reachable] PetscCall(PetscFree4(ww, xx, yy, invJ_a)); ^
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
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
Section: Fixed PetscSectionCreateSubmeshSection() for unsorted subpointIS
Fix potential place of integer overflow in PetscSection code
12345678