From 2b1bd9ecdedfecb41c6d2fa8710c07bb944f01f9 Mon Sep 17 00:00:00 2001 From: kanschat Date: Sun, 3 Apr 2011 18:18:49 +0000 Subject: [PATCH] add 3D implementation of tangential_curl git-svn-id: https://svn.dealii.org/trunk@23556 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/integrators/maxwell.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deal.II/include/deal.II/integrators/maxwell.h b/deal.II/include/deal.II/integrators/maxwell.h index 59b6ac8c16..240b1583b5 100644 --- a/deal.II/include/deal.II/integrators/maxwell.h +++ b/deal.II/include/deal.II/integrators/maxwell.h @@ -138,6 +138,11 @@ namespace LocalIntegrators result[0] = normal[1] * (g1[0]-g0[1]); result[1] =-normal[0] * (g1[0]-g0[1]); break; + case 3: + result[0] = normal[2]*(g2[1]-g0[2])+normal[1]*(g1[0]-g0[1]); + result[1] = normal[0]*(g0[2]-g1[0])+normal[2]*(g2[1]-g1[2]); + result[2] = normal[1]*(g1[0]-g2[1])+normal[0]*(g0[2]-g2[0]); + break; default: Assert(false, ExcNotImplemented()); } -- 2.39.5