Skip to content

Commit

Permalink
Auto api
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed Jun 15, 2024
1 parent a3abd08 commit d2b8f32
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 0 additions & 6 deletions docs/src/api.rst

This file was deleted.

4 changes: 2 additions & 2 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

extensions = ['sphinx.ext.autodoc', 'sphinx_autodoc_typehints', 'jupyter_sphinx.execute',"sphinx.ext.mathjax","sphinx.ext.todo",
"IPython.sphinxext.ipython_console_highlighting", "IPython.sphinxext.ipython_directive",
"nbsphinx", 'sphinx.ext.autodoc']
"nbsphinx", 'sphinx.ext.autodoc', "autoapi.extension"]
autosummary_generate = True # Turn on sphinx.ext.autosummary]

autoapi_dirs = ['../../../ngsPETSc']
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
mathjax3_config = {'chtml': {'displayAlign': 'left'}}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Welcome to ngsPETSc's documentation!
:caption: Getting Started

install
api
autoapi/ngsPETSc/index

.. toctree::
maxdepth: 1
Expand Down
4 changes: 3 additions & 1 deletion ngsPETSc/pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def createPETScPreconditioner(mat, freeDofs, solverParameters):


class ASMPreconditioner(PETScPreconditioner):

'''
This class creates a Netgen/NGSolve BaseMatrix corresponding to a PETSc ASM PC
'''
def __init__(self, mat, freeDofs, solverParameters=None, optionsPrefix="", nullspace=None, matType="aij", blocks=None):

Check failure on line 111 in ngsPETSc/pc.py

View workflow job for this annotation

GitHub Actions / lint

C0301

ngsPETSc/pc.py:111:0: C0301 Line too long (123/100)

Check failure on line 112 in ngsPETSc/pc.py

View workflow job for this annotation

GitHub Actions / lint

C0303

ngsPETSc/pc.py:112:0: C0303 Trailing whitespace
if "sub_pc_type" not in solverParameters:
Expand Down

0 comments on commit d2b8f32

Please sign in to comment.