From fe875ca031cbc3a1b109cfebf742c84ea9d74b57 Mon Sep 17 00:00:00 2001
From: Thomas Gibson <gibsonthomas1120@hotmail.com>
Date: Tue, 11 May 2021 11:09:11 -0500
Subject: [PATCH] Add vim folding to metrics module

---
 grudge/geometry/metrics.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/grudge/geometry/metrics.py b/grudge/geometry/metrics.py
index 70ce5c81..90a17eec 100644
--- a/grudge/geometry/metrics.py
+++ b/grudge/geometry/metrics.py
@@ -34,6 +34,8 @@ from pytools.obj_array import make_obj_array
 from pytools import memoize_on_first_arg
 
 
+# {{{ Metric computations
+
 def forward_metric_nth_derivative(actx, dcoll, xyz_axis, ref_axes, dd=None):
     r"""
     Pointwise metric derivatives representing repeated derivatives to *vec*
@@ -272,6 +274,10 @@ def area_element(actx, dcoll, dim=None, dd=None):
         pseudoscalar(actx, dcoll, dim=dim, dd=dd).norm_squared()
     )
 
+# }}}
+
+
+# {{{ Surface normal vectors
 
 def surface_normal(actx, dcoll, dim=None, dd=None):
     import grudge.dof_desc as dof_desc
@@ -329,3 +335,8 @@ def mv_normal(actx, dcoll, dd):
 
 def normal(actx, dcoll, dd):
     return mv_normal(actx, dcoll, dd).as_vector(dtype=object)
+
+# }}}
+
+
+# vim: foldmethod=marker
-- 
GitLab