Merge branch 'barry/2022-03-30/strip-petscall-petsctrymethod' into 'main'Do not wrap PetscTryMethod() PetscUseMethod() in PetscCallSee merge request petsc/petsc!5051
Fix mpiu_allreduce to always return PetscErrorCodes, never MPI error codesBoth for debug and optimized buildsAlso removes shadow declaration errors from use of mpiu_allreduceCommit-type: error-
Fix mpiu_allreduce to always return PetscErrorCodes, never MPI error codesBoth for debug and optimized buildsAlso removes shadow declaration errors from use of mpiu_allreduceCommit-type: error-checkingReported-by: Lisandro Dalcin <dalcinl@gmail.com>
show more ...
Do not wrap PetscTryMethod() PetscUseMethod() in PetscCallIt produces shadow declarations and also serves no purpose since these macros do the appropriate error checking alreadyThere may be addit
Do not wrap PetscTryMethod() PetscUseMethod() in PetscCallIt produces shadow declarations and also serves no purpose since these macros do the appropriate error checking alreadyThere may be additions needed for running with a static error checkerCommit-type: error-checking/spend 15mReported-by:Lisandro Dalcin <dalcinl@gmail.com>
fixup some remaining stragglers from !4889
The great renaming:- CHKERRQ() -> PetscCall()- CHKERRV() -> PetscCallVoid()- CHKERRMPI() -> PetscCallMPI()- CHKERRABORT() -> PetscCallAbort()- CHKERRCONTINUE() -> PetscCallContinue()- CHKERRXX
The great renaming:- CHKERRQ() -> PetscCall()- CHKERRV() -> PetscCallVoid()- CHKERRMPI() -> PetscCallMPI()- CHKERRABORT() -> PetscCallAbort()- CHKERRCONTINUE() -> PetscCallContinue()- CHKERRXX() -> PetscCallThrow()- CHKERRCXX() -> PetscCallCXX()- CHKERRCUDA() -> PetscCallCUDA()- CHKERRCUBLAS() -> PetscCallCUBLAS()- CHKERRCUSPARSE() -> PetscCallCUSPARSE()- CHKERRCUSOLVER() -> PetscCallCUSOLVER()- CHKERRCUFFT() -> PetscCallCUFFT()- CHKERRCURAND() -> PetscCallCURAND()- CHKERRHIP() -> PetscCallHIP()- CHKERRHIPBLAS() -> PetscCallHIPBLAS()- CHKERRHIPSOLVER() -> PetscCallHIPSOLVER()- CHKERRQ_CEED() -> PetscCallCEED()- CHKERR_FORTRAN_VOID_FUNCTION() -> PetscCallFortranVoidFunction()- CHKERRMKL() -> PetscCallMKL()- CHKERRMMG() -> PetscCallMMG()- CHKERRMMG_NONSTANDARD() -> PetscCallMMG_NONSTANDARD()- CHKERRCGNS() -> PetscCallCGNS()- CHKERRPTSCOTCH() -> PetscCallPTSCOTCH()- CHKERRSTR() -> PetscCallSTR()- CHKERRTC() -> PetscCallTC()
PetscInitialize() and PetscFinalize() wrapped:- ierr = PetscInitialize();if (ierr) return ierr;+ CHKERRQ(PetscInitialize());- ierr = PetscFinalize();- return ierr;+ CHKERRQ(PetscFinalize());+
PetscInitialize() and PetscFinalize() wrapped:- ierr = PetscInitialize();if (ierr) return ierr;+ CHKERRQ(PetscInitialize());- ierr = PetscFinalize();- return ierr;+ CHKERRQ(PetscFinalize());+ return 0;
fixes from recent linter change
pluck ~1000 low hanging PetscCheckFalse() -> PetscCheck() fruit
chkerr and friends wrapped
Remove many PetscCheckFalse() from tsCommit-type: style-fix/spend 1hThanks-to: Jose E. Roman <jroman@dsic.upv.es>
doc: more fixes to remove build warnings
doc: fix References: sectionNotation:. * - textor. year - text
Doc: Trying to remove all reported errors - Since it reports as an error, and only occurs a very few times, I have removed the Imput/Output Parameters sections and replaced them by Output Parameters
Doc: Trying to remove all reported errors - Since it reports as an error, and only occurs a very few times, I have removed the Imput/Output Parameters sections and replaced them by Output Parameters with documentation
Merge remote-tracking branch 'origin/release'
Workaround for matrix-free BEuler in Python- petsc4py uses the "Python" matrix class for a matrix-free implementation. Unlike MatShell, support for MatScale and MatShift is missing in petsc4py. As
Workaround for matrix-free BEuler in Python- petsc4py uses the "Python" matrix class for a matrix-free implementation. Unlike MatShell, support for MatScale and MatShift is missing in petsc4py. As a workaround, this commit removes MatScale in BEuler and scales the vector to be multiplied instead.- JacobianP evaluation in RK is needed only when b is nonzero.
rename PetscAssert() -> PetscCheck() and PetscAssertDebug() -> PetscAssert()
add PetscAssert() and PetscAssertFalse()
make PetscInfo() variadic
SETERRQ[1-9]+ begone
Merge branch 'hongzh/fix-irk-null-jacobian' into 'release'TSIRK: fix null jacobianSee merge request petsc/petsc!4679
remove trailing newline from SETERRQ
Fix doc for TSIRK
TSIRK: fix null jacobianSNESGetJacobian() returns a null matrix in TSSetUp_IRK(). This fix changes it to TSGetIJacobian().Commit-type: bug-fix\spend 20mReported-by: Mattew Knepley
12345678910>>...32