From 72ef6cbbfbcc1c4ca13758090a97899ba8f12c54 Mon Sep 17 00:00:00 2001
From: Ponsuganth Ilangovan Ponkumar Ilango
 <pponkumar@geophysik.uni-muenchen.de>
Date: Mon, 13 May 2024 16:34:03 +0200
Subject: [PATCH] Minor additions

---
 generate_all_operators.py | 5 +++++
 temp.sh                   | 7 +++++++
 2 files changed, 12 insertions(+)
 create mode 100755 temp.sh

diff --git a/generate_all_operators.py b/generate_all_operators.py
index adab732..b113fd1 100644
--- a/generate_all_operators.py
+++ b/generate_all_operators.py
@@ -41,6 +41,7 @@ from hog.forms import (
     nonlinear_diffusion,
     nonlinear_diffusion_newton_galerkin,
     supg_diffusion,
+    advection,
     shear_heating,
     supg_advection,
     supg_shear_heating,
@@ -559,6 +560,10 @@ def all_operators(
                             coefficient_function_space=P1, onlyNewtonGalerkinPartOfForm=False),
                             type_descriptor=type_descriptor, opts=opts, blending=blending))
 
+    ops.append(OperatorInfo(mapping="P2", name="Advection", trial_space=P2, test_space=P2, 
+                            form=partial(advection, velocity_function_space=P2), 
+                            type_descriptor=type_descriptor, opts=opts, blending=blending))
+    
     ops.append(OperatorInfo(mapping="P2", name="ShearHeating", trial_space=P2, test_space=P2, 
                             form=partial(shear_heating, velocity_function_space=P2, coefficient_function_space=P2), 
                             type_descriptor=type_descriptor, opts=opts, blending=blending))
diff --git a/temp.sh b/temp.sh
new file mode 100755
index 0000000..2a11b19
--- /dev/null
+++ b/temp.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+python3 generate_all_operators.py -f Advection -b IdentityMap --quad-degree 2 3 --hyteg ~/hyteg/hyteg
+python3 generate_all_operators.py -f ShearHeating -b IdentityMap --quad-degree 2 3 --hyteg ~/hyteg/hyteg
+python3 generate_all_operators.py -f SUPGDiffusion -b IdentityMap --quad-degree 2 3 --hyteg ~/hyteg/hyteg
+python3 generate_all_operators.py -f SUPGAdvection -b IdentityMap --quad-degree 2 3 --hyteg ~/hyteg/hyteg
+python3 generate_all_operators.py -f SUPGShearHeating -b IdentityMap --quad-degree 2 3 --hyteg ~/hyteg/hyteg
+python3 generate_all_operators.py -f SUPGKMass -b IdentityMap --quad-degree 2 3 --hyteg ~/hyteg/hyteg
-- 
GitLab