99#include < cstdio>
1010#include " string.h"
1111
12- ConAnsatzFunction :: ConAnsatzFunction(){
13- nLevels = 0 ;
14- nFunctions = 0 ;
15- nPatches = 0 ;
16- minLevel = 1 ;
17- noPhi = 1 ;
18-
19- B = NULL ;
20- B2 = NULL ;
21-
22- td = 3 ;
23- dp = 1.25 ;
24- a = 1.0 ; // /< compression constant, a > 1
25- b = 0.01 ; // /< compression constant, 0 < b < 1
26-
27- quadratureLevel_ = 0 ;
28- G = (SparseMatrix*) malloc (sizeof (SparseMatrix));
29- }
30-
3112ConAnsatzFunction :: ConAnsatzFunction(const Compression & _comp){
3213 nLevels = 0 ;
3314 nFunctions = 0 ;
@@ -43,49 +24,6 @@ ConAnsatzFunction :: ConAnsatzFunction(const Compression & _comp){
4324 a = _comp.aPrioriA ; // /< compression constant, a > 1
4425 b = _comp.aPosterioriB ; // /< compression constant, 0 < b < 1
4526
46- quadratureLevel_ = 1 ;
47- G = (SparseMatrix*) malloc (sizeof (SparseMatrix));
48- }
49-
50- // NOTE the parameters must be initialized in the same order as declared in the header, otherwise a warning appears
51- ConAnsatzFunction :: ConAnsatzFunction(unsigned int _p, unsigned int _m, unsigned int _nf, Vector3*** pPointsIn){
52- nLevels = _m;
53- nFunctions = _nf;
54- nPatches = _p;
55-
56- interCoeff = new Interpolation (pPointsIn, 1 , NEWTON, nLevels, nPatches);
57- minLevel = 1 ;
58- noPhi = 1 ;
59-
60- B = NULL ;
61- B2 = NULL ;
62-
63- td = 3 ;
64- dp = 1.25 ;
65- a = 1.25 ; // /< compression constant, a > 1
66- b = 0.001 ; // /< compression constant, 0 < b < 1
67-
68- quadratureLevel_ = 0 ;
69- G = (SparseMatrix*) malloc (sizeof (SparseMatrix));
70- }
71-
72- ConAnsatzFunction :: ConAnsatzFunction(unsigned int _p, unsigned int _m, unsigned int _nf, double _a, double _b, double _dp, Vector3*** pPointsIn){
73- nLevels = _m;
74- nFunctions = _nf;
75- nPatches = _p;
76-
77- interCoeff = new Interpolation (pPointsIn, 1 , NEWTON, nLevels, nPatches);
78- minLevel = 1 ;
79- noPhi = 1 ;
80-
81- B = NULL ;
82- B2 = NULL ;
83-
84- td = 3 ;
85- dp = _dp;
86- a = _a; // /< compression constant, a > 1
87- b = _b; // /< compression constant, 0 < b < 1
88-
8927 quadratureLevel_ = 0 ;
9028 G = (SparseMatrix*) malloc (sizeof (SparseMatrix));
9129}
0 commit comments