]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add 3D implementation of tangential_curl
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 3 Apr 2011 18:18:49 +0000 (18:18 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 3 Apr 2011 18:18:49 +0000 (18:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@23556 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/integrators/maxwell.h

index 59b6ac8c1600abff84eb3139cb3d48896aa7315c..240b1583b5624a98ebc626a08d7c11a9cb7c9f32 100644 (file)
@@ -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());
        }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.