- Dec 01, 2023
-
-
- Nov 08, 2023
-
-
- Nov 03, 2023
-
-
- Sep 26, 2023
-
-
- Jul 29, 2023
-
-
Barry Smith authored
-
- Jul 22, 2023
-
-
Toby Isaac authored
-
Toby Isaac authored
-
- Jul 14, 2023
-
-
Jacob Faibussowitsch authored
-
- Feb 02, 2023
-
-
Jacob Faibussowitsch authored
-
- Nov 28, 2022
-
-
Barry Smith authored
The phrase was unneeded 99% of the time I did not remove in the dm directory since another MR is still active that affects that directory Commit-type: documentation /spend 20m
-
- Sep 21, 2022
-
-
Jacob Faibussowitsch authored
-
- Sep 19, 2022
-
-
Commit-type: documentation /spend 10h
-
- Aug 22, 2022
-
-
Satish Balay authored
-
- Aug 17, 2022
-
-
Flipped the order of the arguments for the function pointers (*setfromoptions)(PetscOptionItem*,obj); and friends to make them consistent with PetscTryTypeMethod() and all the other methods Commit-type: refactorization /spend 4h
-
- 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
-
- Apr 29, 2022
-
-
Patrick Sanan authored
```python import os import re import fileinput def _process_word(word): comma = "," if word.endswith(",") else "" return "`%s`%s" % (word.rstrip(","), comma) def _process_stripped_line(line): return " ".join(map(_process_word, line.split())) start_pattern = re.compile(r"^( *\.seealso:? )(.*$)") def process_file(filename_full): with fileinput.FileInput(filename_full, inplace=True) as f: in_block = False for line in f: line_stripped = line.strip() # end ".seealso blocks" on a blank line or C-style comment close line_modified = None if not line_stripped: in_block = False elif line_stripped.endswith("*/"): in_block = False else: match = re.match(start_pattern, line) # not stripped line if match: indent = " " * len(match.group(1)) in_block = True line_modified = match.group( 1) + _process_stripped_line( match.group(2).strip()) elif in_block: line_modified = indent + _process_stripped_line( line_stripped) if line_modified: print(line_modified) # prints to the file else: print(line, end="") # prints to the file BASE_DIRS = ["src", "include"] EXT = [".c", ".cxx", ".cpp", ".cu", ".h", ".hpp", ".hxx"] EXCLUDE_DIRS = ["tests", "tutorials", "ftn-auto", "ftn-custom", "benchmarks"] def main(): """ Process everything """ for base in BASE_DIRS: for root, dirs, files in os.walk(base): for filename in files: if os.path.splitext(filename)[1] in EXT: filename_full = os.path.join(root, filename) print("FILE ---", filename_full) process_file(filename_full) for exclude_dir in EXCLUDE_DIRS: if exclude_dir in dirs: dirs.remove(exclude_dir) if __name__ == "__main__": main() ```
-
- Apr 10, 2022
-
-
* remove bogus error flags from XXXBegin()/End() macros such as PetscOptionsBegin()/End() * rename for consistency certain XXXBegin()/End() macros such as MatPreallocateInitialize()/Finalize() * fix many lingering ierr = XXX that arose from multiline function calls * sync slepc/hpddm - to use snapshots with the same changes Commit-type: error-checking, style-fix /spend 8h
-
- 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
-
- Mar 17, 2022
-
-
/spend 1h
-
- Feb 13, 2022
-
-
Jacob Faibussowitsch authored
-
Jacob Faibussowitsch authored
-
Jacob Faibussowitsch authored
-
- Sep 12, 2021
-
-
Jose E. Roman authored
-
- May 24, 2021
-
-
Commit-type: petsc-style /2h
-
- Aug 25, 2020
-
-
Matthew Knepley authored
- Added coarse vectors to resolve at each level - Added adaptation flag and API - Added option -pc_mg_adapt_interp to turn on adaptation - Use -dm_interpolator_adapt_k to set subspace size and -dm_interpolator_adapt_use_poly to select type of functions - Doc fixes for functions - Fix options for construction of a vanilla coarse space - Require Galerkin matrices for adaptive interpolation - Fixed problem with composed eigenvalue - Normalize eigenvector in smoothing loop - Added option to use generalized eigenvector basis (For some reason, this is worse on test problems) - Make adaptive allocation happen only initially, protect adaptive functions from invalid levels
-
- May 14, 2020
-
-
Lisandro Dalcin authored
-
- Dec 18, 2019
-
-
Stefano Zampini authored
-
- May 28, 2019
-
-
Patrick Sanan authored
This field is recognized by doctext from Sowing (http://wgropp.cs.illinois.edu/projects/software/sowing/doctext/node20.htm#Node20), but it doesn't seem to be uniformly used or maintained. Thus, remove all .keywords: fields, and a following blank line, if present. This is accomplished with GNU sed (gsed on OS X), with the following commands. *Warning* that this type of command can corrupt a .git directory, so be cautious in reusing or modifying these commands. They first look for and delete matching lines with a following line consisting of only whitespace, and then delete any remaining matching lines. find src/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find src/ -type f -exec gsed -i '/keywords:/d' {} + find include/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find include/ -type f -exec gsed -i '/keywords:/d' {} + Hints on the sed command obtained from: https://unix.stackexchange.com/questions/100754/how-to-delete-a-specific-line-and-the-following-blank-line-using-gnu-sed
-
- Apr 16, 2018
-
-
Patrick Sanan authored
This allows for proper formatting from sowing. On OS X (using gsed, not the default BSD sed), from the PETSc root directory: find src include -type f \( -name "*.c" -or -name "*.h" -or -name "*.cxx" \) | xargs gsed -i 's/Notes\s*:\s*\(\w.*\)/Notes:\n \1/' This adds a newline and 4 spaces whenever "Notes:" is followed by any "word" character, in any .c, .h, or .cxx file in src/ or include/
-
- 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 09, 2016
-
-
Barry Smith authored
Reported-by: clang static analyzer
-
- Aug 08, 2015
-
-
Jed Brown authored
PetscObjectAddOptionsHandler now takes an event handler that includes a PetscOptions argument. PetscObjectProcessOptionsHandlers requires this as input.
-
- Apr 11, 2015
-
-
Barry Smith authored
include/petsc finclude,private,mpiuni lib/petsc conf bin/petsc*
-
- Jan 13, 2015
-
-
Barry Smith authored
-
- Dec 13, 2014
-
-
Toby Isaac authored
All XXXRegisterAll() methods are now idempotent, so a boolean indicating whether they can be called or not is no longer necessary.
-
- Jun 18, 2014
-
-
Barry Smith authored
KSP and PC skip displaying other options when preonly and none are selected fix Chebyshev when using GMRES to estimate eigenvalues to skip setting options for PC that is shared with both Cheby and gmres
-
- Sep 10, 2013
-
-
Barry Smith authored
fix name for PetscOptionsFList() and get FList() and EList() working properly with SAWs legal values
-
- Jun 01, 2013
-
-
Barry Smith authored
Removed the ability of XXXType to be the string name of a library and function in that library but forgot to remove this form from all the XXXAType manual pages
-
- Apr 08, 2013
-
-
Barry Smith authored
-