Skip to content
Snippets Groups Projects
  1. Feb 02, 2023
  2. Sep 21, 2022
  3. Aug 22, 2022
  4. Jul 23, 2022
    • Barry Smith's avatar
      Add PetscFunctionBeginUser to all PETSc C/C++ examples · 327415f7
      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
      327415f7
  5. Mar 26, 2022
    • Jacob Faibussowitsch's avatar
      The great renaming: · 9566063d
      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()
      9566063d
  6. Mar 25, 2022
  7. Mar 18, 2020
    • Jed Brown's avatar
      Promote examples/{tests,tutorials}/ to {tests,tutorials}/ · c4762a1b
      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/
      c4762a1b
  8. Apr 17, 2017
  9. Feb 17, 2017
  10. Feb 15, 2017
  11. Jan 25, 2017
  12. Jan 17, 2017
  13. Dec 21, 2016
  14. Sep 23, 2016
  15. May 02, 2016
  16. Apr 22, 2016
  17. Jan 13, 2014
  18. Jan 09, 2014
  19. Dec 27, 2013
  20. Feb 08, 2013
  21. Jan 30, 2013
  22. Jan 19, 2013
  23. Dec 12, 2012
  24. Nov 26, 2012
  25. Sep 28, 2012
  26. Sep 18, 2012
  27. Jul 03, 2012
  28. Sep 07, 2011
  29. Jan 06, 2012
  30. Dec 31, 2011
Loading