aboutsummaryrefslogtreecommitdiff
blob: 52810a355ce7887430284111b47d6286025972ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
--- libsrc/linalg/densemat.hpp.orig	2008-05-08 17:44:10.000000000 +0100
+++ libsrc/linalg/densemat.hpp	2008-05-09 08:50:56.000000000 +0100
@@ -14,6 +14,9 @@
 
 #include <assert.h>
 
+class DenseMatrix;
+void CalcInverse (const DenseMatrix & m1, DenseMatrix & m2);
+
 class DenseMatrix
 {
 protected:
--- libsrc/meshing/meshtype.hpp.orig	2008-05-08 17:44:10.000000000 +0100
+++ libsrc/meshing/meshtype.hpp	2008-05-09 08:50:56.000000000 +0100
@@ -955,7 +955,7 @@
 
 
 
-
+  class Mesh;
 /**
    Identification of periodic surfaces, close surfaces, etc. 
  */
--- libsrc/visualization/mvdraw.hpp.orig	2008-05-08 17:44:10.000000000 +0100
+++ libsrc/visualization/mvdraw.hpp	2008-05-09 08:50:56.000000000 +0100
@@ -250,6 +250,7 @@
   int seltria;
 };
 
+extern VisualSceneSTLMeshing vsstlmeshing;
 
 
 
--- ngsolve/comp/postproc.cpp.orig	2008-05-08 17:44:10.000000000 +0100
+++ ngsolve/comp/postproc.cpp	2008-05-09 08:50:56.000000000 +0100
@@ -9,6 +9,7 @@
 */
 
 #include <comp.hpp>
+#include <fem.hpp>
 
 namespace ngcomp
 {
@@ -274,8 +275,8 @@
 	if (dimflux > 1)
 	  {
 	    FlatMatrix<SCAL> elmat(dnumsflux.Size(), lh);
-	    dynamic_cast<const BlockBilinearFormIntegrator&> (fluxbli)
-	      . Block() . AssembleElementMatrix (felflux, eltrans, elmat, lh);
+	    BlockBilinearFormIntegrator const& fluxbli_ref = dynamic_cast<const BlockBilinearFormIntegrator&> (fluxbli);
+	    fluxbli_ref . Block() . AssembleElementMatrix (felflux, eltrans, elmat, lh);
 	    CholeskyFactors<SCAL> invelmat(elmat);
 
 	    FlatVector<SCAL> hv1(dnumsflux.Size(), lh);
--- libsrc/interface/nglib.cpp.orig	2004-07-02 21:20:09.000000000 +0000
+++ libsrc/interface/nglib.cpp	2008-04-10 17:40:26.000000000 +0000
@@ -24,10 +24,18 @@
 
 // #include <FlexLexer.h>
 
+#include <tcl.h>
+#include <incvis.hpp>
+
 namespace netgen {
   extern void MeshFromSpline2D (SplineGeometry2d & geometry,
 				Mesh *& mesh, 
 				MeshingParameters & mp);
+#include "../visualization/mvdraw.hpp"
+#include "../visualization/soldata.hpp"
+#include "../visualization/vssolution.hpp"
+  Tcl_Interp * tcl_interp;
+  VisualSceneSolution vssolution;
 }
 
 
--- libsrc/visualization/vssolution.cpp.orig	2004-11-10 13:22:09.000000000 +0000
+++ libsrc/visualization/vssolution.cpp	2008-04-10 17:41:56.000000000 +0000
@@ -16,6 +16,19 @@
   extern AutoPtr<Mesh> mesh;
 
 
+  SYMBOLTABLE<VisualScene*> & GetVisualizationScenes ()
+  {
+    static SYMBOLTABLE<VisualScene*> vss;
+    return vss;
+  }
+
+  void AddVisualizationScene (const string & name,
+			      VisualScene * vs)
+  {
+    GetVisualizationScenes().Set (name.c_str(), vs);
+  }
+
+
   VisualSceneSolution :: SolData :: SolData ()
     : name (0), data (0), solclass(0)
   { ; }
--- ngsolve/basiclinalg/expr3.hpp.orig	2008-05-08 17:44:10.000000000 +0100
+++ ngsolve/basiclinalg/expr3.hpp	2008-05-09 08:50:56.000000000 +0100
@@ -851,6 +851,16 @@
 /**
    Inner product
  */
+inline double InnerProduct ( const double& a, const double& b )
+{
+  return a * b;
+}
+
+inline Complex InnerProduct ( const Complex& a, const Complex b)
+{
+  return a * b;
+}
+
 template <class TA, class TB>
 inline typename TA::TSCAL
 InnerProduct (const MatExpr<TA> & a, const MatExpr<TB> & b)
@@ -862,15 +872,6 @@
   return sum;
 }
 
-inline double InnerProduct (double a, double b)
-{
-  return a * b;
-}
-
-inline Complex InnerProduct (Complex a, Complex b)
-{
-  return a * b;
-}
 
 
 /* **************************** Trace **************************** */
@@ -889,6 +890,16 @@
 /* **************************** L2Norm **************************** */
 
 /// Euklidean norm squared
+inline double L2Norm2 (const double& v)
+{
+  return v*v;
+}
+
+inline double L2Norm2 (Complex v)
+{
+  return v.real()*v.real()+v.imag()*v.imag();
+}
+
 template <class TA>
 inline double L2Norm2 (const MatExpr<TA> & v)
 {
@@ -899,17 +910,6 @@
   return sum;
 }
 
-
-inline double L2Norm2 (double v)
-{
-  return v*v;
-}
-
-inline double L2Norm2 (Complex v)
-{
-  return v.real()*v.real()+v.imag()*v.imag();
-}
-
 template <class TA>
 inline double L2Norm (const MatExpr<TA> & v)
 {