Skip to content

Commit

Permalink
comment and fix for m1 case
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdark committed Apr 6, 2024
1 parent 62cf719 commit 4f1e2c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion festim/exports/derived_quantities/total_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def __init__(self, field, surface) -> None:
def export_unit(self):
# obtain domain dimension
dim = self.function.function_space().mesh().topology().dim()
# return unit depending on field and dimension of domain
if self.field == "T":
return f"K m{dim-1}".replace(" m0", "")
return f"K m{dim-1}".replace(" m0", "").replace(" m1", " m")
else:
return f"H m{dim-3}".replace(" m0", "")

Expand Down

0 comments on commit 4f1e2c6

Please sign in to comment.