- Mar 07, 2024
-
-
Pierre Jolivet authored
git grep -l -E "\(\([a-zA-Z0-9_]+\)\(\*[a-zA-Z0-9_]+\)[, )]" | xargs sed -r -i'' 's#\(\(([a-zA-Z0-9_]+)\)\(\*([a-zA-Z0-9_]+)\)([, )])#\(\(\1\)\*\2\3#g' git grep -l -E "Petsc(.)*\(\(\*[a-zA-Z0-9_]*\)," | xargs sed -r -i'' 's#Petsc([a-zA-Z0-9_]*)\(\(\*([a-zA-Z0-9_]*)\), #Petsc\1(*\2, #g' git grep -l -E "([\!\&\~\*\(]|\)\)|\([^,\*\(]+\**\))\(([a-zA-Z0-9_]+((\.|->)[a-zA-Z0-9_]+|\[[a-zA-Z0-9_ \%\+\*\-]+\])+)\)" | xargs sed -r -i'' 's#([\!\&\~\*\(]|\)\)|\([^,\*\(]+\**\))\(([a-zA-Z0-9_]+((\.|->)[a-zA-Z0-9_]+|\[[a-zA-Z0-9_ \%\+\*\-]+\])+)\)#\1\2#g'
-
- Feb 09, 2024
-
-
Correct ``-tao_view_gradient``, ``-tao_view_ls_residual``, ``-tao_view_solution``, and ``-tao_view_stepdirection`
-
- Feb 02, 2023
-
-
Jacob Faibussowitsch authored
-
- Sep 21, 2022
-
-
Jacob Faibussowitsch authored
-
- Aug 29, 2022
-
-
- Aug 22, 2022
-
-
Satish Balay authored
-
- Jul 23, 2022
-
-
Barry Smith authored
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
-
- Jun 23, 2022
-
-
for i in `git ls-files | grep "\.[ch]$"` ; do sed 's?\$?ZZZ?g' $i | tr '\n' '$' | sed 's?\([ ]*\)if (\([-;,.\*+=a-z0-9A-Z_>]*\)) {\$[ ]*PetscCall(\([- ._+=a-z0-9A-Z>*,()]*);\)\$[ ]*}\$?\1if (\2) PetscCall(\3$?g' | tr '$' '\n' | sed 's?ZZZ?$?g' > $i.joe ; mv $i.joe $i ; done for i in `git ls-files | grep "\.[hc]$"` ; do sed 's?\$?ZZZ?g' $i | tr '\n' '$' | sed 's?\([ }else]*\)if (\([-;,.\*+=a-z0-9A-Z_>]*\)) {\$[ ]*PetscCall(\([- ._+=a-z0-9A-Z>*,()]*);\)\$\([ ]*\)} \([- ._+=a-z0-9A-Z>*,()]*);\)\$?\1if (\2) PetscCall(\3$\4\5$?g' | tr '$' '\n' | sed 's?ZZZ?$?g' > $i.joe ; mv $i.joe $i ; done Yes, really ugly but Barry still cannot master awk Commit-type: housekeeping
-
- Jun 10, 2022
-
-
Stefano Zampini authored
-
- Apr 14, 2022
-
-
Jacob Faibussowitsch authored
-
- Apr 06, 2022
-
-
Patrick Sanan authored
Remove all \*T ... comment blocks with e.g. cd src && find . -type f -exec sed -i '/^[! ] *\/\*T$/,/^[! ]*T\*\/$/d' {} \; Clean up resulting double blank lines with e.g. cd src && find . type f \( -name "*.c" -o -name "*.cxx" -o -name "*.F" -o -name "*.F90" \) -exec sh -c "cat -s {} > tmp && mv tmp {}" \; Manually revert those changes from the vendored code (src/sys/yaml) Manually restore a few comments from these blocks. Manually remove "Concepts:" and "Processors:" comments from files which have these outside of "\*T" blocks automatically deleted above.
-
- Mar 26, 2022
-
-
Jacob Faibussowitsch authored
- 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()
-
- Mar 25, 2022
-
-
Jacob Faibussowitsch authored
- ierr = PetscInitialize();if (ierr) return ierr; + CHKERRQ(PetscInitialize()); - ierr = PetscFinalize(); - return ierr; + CHKERRQ(PetscFinalize()); + return 0;
-
Jacob Faibussowitsch authored
-
- Mar 20, 2022
-
-
Barry Smith authored
Commit-type: error-checking, housekeeping /spend 45m
-
- Feb 16, 2022
-
-
Stefano Zampini authored
deprecate Tao basic API to match SNES and TS paradigms TaoSetFromOptions: call TaoLineSearchSetFromOptions
-
- Feb 13, 2022
-
-
Jacob Faibussowitsch authored
-
Jacob Faibussowitsch authored
-
- Oct 18, 2021
-
-
- Jun 21, 2021
-
-
Stefano Zampini authored
Enforce checkstack for CI jobs Fixes from testsuite
-
- Jun 04, 2021
-
-
Stefano Zampini authored
- Zero or more spaces are not allowed for more returning types - zero spaces not allowed for for|if|while
-
- May 24, 2021
-
-
Commit-type: petsc-style /2h
-
- Dec 30, 2020
-
-
Now PETSc examples will ONLY return PETSc error codes and never MPI error codes directly so we can understand and post-process their errors better. The test harness will now automatically retry tests that fail with MPI, this may help with Intel MPI that produces seemingly random failures. Commit-type: error-checking /spend 30m
-
- Aug 25, 2020
-
-
Commit-type: portability-fix, testing-fix, style-fix, feature, maintainability /spend 1.5h
-
- Jul 19, 2020
-
-
Barry Smith authored
Don't view inner KSP when it has not yet been created. Commit-type: bug-fix Funded-by: ECP /spend 20m Reported-by: Karl Yang <y.juntao@hotmail.com>
-
- Mar 18, 2020
-
-
Jed Brown authored
This shortens paths and improves consistency between test target names and paths to the source and output files. Most of the work was completed by this script, followed by mild cleanup of nonconforming cases. for makefile in `git ls-files 'src/*makefile'`; do if rg -q 'DIRS.*\bexamples\b' $makefile; then base=$(dirname $makefile) dirs=$(cd $base/examples && ls -d tests tutorials 2>/dev/null | xargs echo) perl -pi -e "s#^(DIRS.*)\bexamples\b#\1${dirs}#" $makefile git rm $base/examples/makefile for t in $dirs; do git mv $base/examples/$t $base/ perl -pi -e "s#^(LOCDIR[[:space:]]*=).*#\1 $base/$t/#" $base/$t done fi done git grep -l -E -z 'examples/(tutorials|tests)' | xargs -0 perl -pi -e 's#examples/(tutorials|tests)#\1#g' git checkout @ \ src/docs/website/documentation/changes/ \ src/benchmarks/results/
-
- Oct 17, 2019
-
-
Barry Smith authored
Replace use of 1 with appropriate error code; use PetscObjecComm() instead of PETSC_COMM_SELF for errors when appropriate Commit-type: error-checking, testing-fix, style-fix, examples
-
- Jun 28, 2018
-
-
Alp Dener authored
-
- Apr 27, 2018
- Apr 26, 2018
-
-
Alp Dener authored
-
- Dec 22, 2017
-
-
Barry Smith authored
Commit-type: testing-fix
-
- Oct 22, 2017
-
-
Stefano Zampini authored
TAO: added matrix-free finite difference option for Hessian evaluation and VecLock{Push|Pop} around user calls Added test for MFFD hessian Fix several examples that improperly used VecGetArray Fix man pages and some coding style in tao code
-
- Dec 21, 2016
-
-
Barry Smith authored
Since all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETSc Time: 1.5 hours Thanks-to: Andreas Mang <andreas@ices.utexas.edu>
-
- May 08, 2016
-
-
Barry Smith authored
add ierr and return ierr; to many PetscFinalize() in examples add ierr and if (ierr) return ierr; to some PetscInitialize() in examples
-
- Apr 22, 2016
-
-
Barry Smith authored
-
- Apr 11, 2016
-
-
Barry Smith authored
Left one example that uses it but converts the result to a string Added two run tests for Tao that require SuperLU This replaces the pull request 324 that left the uses of TaoGetConvergedReason() in multiple examples
-
- Nov 02, 2015
-
-
Barry Smith authored
-
- Oct 04, 2015
-
-
Barry Smith authored
-