Skip to content

Commit

Permalink
Some references (#3924)
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
Co-authored-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
UZerbinati and Umberto Zerbinati authored Dec 12, 2024
1 parent 17c4106 commit 9584af5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,7 @@ Florian Wechsung..............<https://florianwechsung.github.io>

Yian Zeng

Umberto Zerbinati.............<https://www.uzerbinati.eu>

Fangyi Zhou

2 changes: 2 additions & 0 deletions firedrake/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -3061,6 +3061,8 @@ def Mesh(meshfile, **kwargs):
from ngsPETSc import FiredrakeMesh
except ImportError:
raise ImportError("Unable to import ngsPETSc. Please ensure that ngsolve is installed and available to Firedrake.")
from firedrake_citations import Citations
Citations().register("Betteridge2024")
netgen_flags = kwargs.get("netgen_flags", {"quad": False, "transform": None, "purify_to_tets": False})
netgen_firedrake_mesh = FiredrakeMesh(meshfile, netgen_flags, user_comm)
plex = netgen_firedrake_mesh.meshMap.petscPlex
Expand Down
16 changes: 16 additions & 0 deletions firedrake_citations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,19 @@ def print_at_exit(cls):
year = {2024}
}
""")

Citations().add("Betteridge2024", """
@article{Betteridge2024,
doi = {10.21105/joss.07359},
url = {https://doi.org/10.21105/joss.07359},
year = {2024},
publisher = {The Open Journal},
volume = {9},
number = {104},
pages = {7359},
author = {Jack Betteridge and Patrick E. Farrell and Matthias Hochsteger
and Christopher Lackner and Joachim Schöberl and Stefano Zampini
and Umberto Zerbinati},
title = {ngsPETSc: A coupling between NETGEN/NGSolve and PETSc},
journal = {Journal of Open Source Software} }
""")

0 comments on commit 9584af5

Please sign in to comment.