History log of /petsc/src/tao/bound/impls/bqnk/bqnk.c (Results 26 – 50 of 74)
Revision Date Author Comments
# db781477 25-Apr-2022 Patrick Sanan <patrick.sanan@gmail.com>

Docs: bulk add backticks to .seealso man page fields

```python
import os
import re
import fileinput

def _process_word(word):
comma = "," if word.endswith(",") else ""
return "`%s`%s" % (wor

Docs: bulk add backticks to .seealso man page fields

```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()
```

show more ...


# f882803c 26-Mar-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jacobf/2022-02-23/variadic-chkerr' into 'main'

Variadic CHKERRQ()

See merge request petsc/petsc!4889


# 9566063d 25-Mar-2022 Jacob Faibussowitsch <jacob.fai@gmail.com>

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()

show more ...


# 5f80ce2a 24-Feb-2022 Jacob Faibussowitsch <jacob.fai@gmail.com>

chkerr and friends wrapped


# 65f1e9d4 21-Mar-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2022-03-20/rm-petsccheckfalse-tao' into 'main'

Remove use of PetscCheckFalse() from Tao

See merge request petsc/petsc!4998


# 3c859ba3 20-Mar-2022 Barry Smith <bsmith@mcs.anl.gov>

Remove use of PetscCheckFalse() from Tao

Commit-type: error-checking, housekeeping
/spend 45m


# 1241a243 13-Feb-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jacobf/2022-01-05/c99' into 'main'

Feature: C99 and C++11

See merge request petsc/petsc!4700


# 2c71b3e2 11-Feb-2022 Jacob Faibussowitsch <jacob.fai@gmail.com>

rename PetscAssert() -> PetscCheck() and PetscAssertDebug() -> PetscAssert()


# 9ace16cd 28-Jan-2022 Jacob Faibussowitsch <jacob.fai@gmail.com>

add PetscAssert() and PetscAssertFalse()


# 93794888 18-Jan-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'stefanozampini/tao-cleanup' into 'main'

TAO: cleanup solver interface

See merge request petsc/petsc!4723


# 8ebe3e4e 07-Dec-2021 Stefano Zampini <stefano.zampini@gmail.com>

TAO bound constrained solvers: properly propagate options prefix to subsolvers

options prefix is not known at creation time


# a8a8b9ed 09-Dec-2021 Satish Balay <balay@mcs.anl.gov>

Merge branch 'stefanozampini/split-tao' into 'main'

TAO: unify options for bounded Newton-Krylov

See merge request petsc/petsc!4581


# 9fa2b5dc 28-Oct-2021 Stefano Zampini <stefano.zampini@gmail.com>

TAO: unify options for bounded Newton-Krylov

Fix typos here and there


# 82a6ae78 28-Jul-2021 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jolivet/fix-some-missing-chkerr' into 'main'

Some missing CHKERR[Q|MPI]

See merge request petsc/petsc!4190


# 1e1ea65d 27-Jul-2021 Pierre Jolivet <pierre@joliv.et>

Some missing CHKERR[Q|MPI]


# 6b7bcaa1 28-Mar-2021 Satish Balay <balay@mcs.anl.gov>

Merge branch 'denera/bufgix-tao-brgn-python-bindings' into 'main'

petsc4py interfaces for TAOBRGN

See merge request petsc/petsc!3766


# 5eb5f4d6 25-Mar-2021 Alp Dener <alp.dener@me.com>

added explicit Hessian feature to BRGN


# 43b17367 19-Jan-2021 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jose/fix-warning-network' into 'master'

Fix compile warning with icc 12.1.0

See merge request petsc/petsc!3570


# dda75589 18-Jan-2021 Jose E. Roman <jroman@dsic.upv.es>

Fix compile warning reported by PGI 20.9

src/tao/bound/impls/bqnk/bqnk.c", line 322: warning:
last line of file ends without a newline


# 67c04edd 12-Jan-2021 Satish Balay <balay@mcs.anl.gov>

Merge branch 'denera/tao-qn-recycle-fixes' into 'master'

QN and CG history recycling interfaces

See merge request petsc/petsc!3549


# 414d97d3 12-Jan-2021 Alp Dener <adener@anl.gov>

unified recycle flags for Tao solvers with consistent set/get interfaces


# 16924cb1 26-Aug-2020 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2020-08-16/fix-source-formatting' into 'master'

Turn on checkbadSource test to generate an error when found; fix all source code that causes errors

See merge request petsc/petsc

Merge branch 'barry/2020-08-16/fix-source-formatting' into 'master'

Turn on checkbadSource test to generate an error when found; fix all source code that causes errors

See merge request petsc/petsc!3064

show more ...


# 2da392cc 17-Aug-2020 Barry Smith <bsmith@mcs.anl.gov>

Turn on checkbadSource test to generate an error when found; fix all source code that causes errors

Commit-type: portability-fix, testing-fix, style-fix, feature, maintainability
/spend 1.5h


# bcddbdeb 07-May-2020 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/dalcinl/fix-null'

TS/SNES/Tao: Fix 0 ->NULL for pointers

See merge request petsc/petsc!2783


# 83c8fe1d 07-May-2020 Lisandro Dalcin <dalcinl@gmail.com>

Tao: Replace 0 -> NULL for pointers


123