From: kanschat Date: Sun, 3 Apr 2011 18:18:49 +0000 (+0000) Subject: add 3D implementation of tangential_curl X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b1bd9ecdedfecb41c6d2fa8710c07bb944f01f9;p=dealii-svn.git add 3D implementation of tangential_curl git-svn-id: https://svn.dealii.org/trunk@23556 0785d39b-7218-0410-832d-ea1e28bc413d --- 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()); }