From 9584af505258b502c6d3e78793e82684dcf52d31 Mon Sep 17 00:00:00 2001 From: Umberto Zerbinati Date: Thu, 12 Dec 2024 14:00:29 +0000 Subject: [PATCH] Some references (#3924) Signed-off-by: Umberto Zerbinati Co-authored-by: Umberto Zerbinati --- AUTHORS.rst | 2 ++ firedrake/mesh.py | 2 ++ firedrake_citations/__init__.py | 16 ++++++++++++++++ 3 files changed, 20 insertions(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index 80c7f1bde3..cb83a641ab 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -172,5 +172,7 @@ Florian Wechsung.............. Yian Zeng +Umberto Zerbinati............. + Fangyi Zhou diff --git a/firedrake/mesh.py b/firedrake/mesh.py index 2c0ef9e198..bef4d38bf3 100644 --- a/firedrake/mesh.py +++ b/firedrake/mesh.py @@ -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 diff --git a/firedrake_citations/__init__.py b/firedrake_citations/__init__.py index 2af731b5ce..46e6a0a77a 100644 --- a/firedrake_citations/__init__.py +++ b/firedrake_citations/__init__.py @@ -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} } +""")