Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef SUNDANCE_INTEGRALGROUP_H
00043 #define SUNDANCE_INTEGRALGROUP_H
00044
00045 #include "SundanceDefs.hpp"
00046 #include "SundanceElementIntegral.hpp"
00047 #include "SundanceEvalVector.hpp"
00048 #include "SundanceMultipleDeriv.hpp"
00049 #include "SundanceIntegrationCellSpecifier.hpp"
00050
00051
00052
00053 namespace Sundance
00054 {
00055 using namespace Teuchos;
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068 class IntegralGroup
00069 {
00070 public:
00071
00072 IntegralGroup(const Array<RCP<ElementIntegral> >& integrals,
00073 const Array<int>& resultIndices,
00074 int verb);
00075
00076
00077 IntegralGroup(const Array<int>& testID,
00078 const Array<int>& testBlock,
00079 const Array<int>& mvIndices,
00080 const Array<RCP<ElementIntegral> >& integrals,
00081 const Array<int>& resultIndices,
00082 const Array<MultipleDeriv>& derivs,
00083 int verb);
00084
00085
00086 IntegralGroup(const Array<int>& testID,
00087 const Array<int>& testBlock,
00088 const Array<int>& unkID,
00089 const Array<int>& unkBlock,
00090 const Array<RCP<ElementIntegral> >& integrals,
00091 const Array<int>& resultIndices,
00092 const Array<MultipleDeriv>& derivs,
00093 int verb);
00094
00095
00096
00097 bool isTwoForm() const {return order_==2;}
00098
00099
00100 bool isOneForm() const {return order_==1;}
00101
00102
00103 bool isZeroForm() const {return order_==0;}
00104
00105
00106
00107 int nTestNodes() const {return nTestNodes_;}
00108
00109
00110
00111 int nUnkNodes() const {return nUnkNodes_;}
00112
00113
00114 const Array<int>& testID() const {return testID_;}
00115
00116
00117 const Array<int>& unkID() const {return unkID_;}
00118
00119
00120 const Array<int>& testBlock() const {return testBlock_;}
00121
00122
00123 const Array<int>& unkBlock() const {return unkBlock_;}
00124
00125
00126 const Array<int>& mvIndices() const {return mvIndices_;}
00127
00128
00129
00130 IntegrationCellSpecifier usesMaximalCofacets() const
00131 {return requiresMaximalCofacet_;}
00132
00133
00134 const Array<int>& termUsesMaximalCofacets() const
00135 {return termUsesMaximalCofacets_;}
00136
00137
00138 const BasisFamily & getTestBasis() const { return integrals_[0]->getTestBasis(); }
00139
00140
00141 const BasisFamily & getUnknownBasis() const { return integrals_[0]->getUnknownBasis(); }
00142
00143
00144 bool evaluate(const CellJacobianBatch& JTrans,
00145 const CellJacobianBatch& JVol,
00146 const Array<int>& isLocalFlag,
00147 const Array<int>& facetNum,
00148 const RCP<Array<int> >& cellLIDs,
00149 const Array<RCP<EvalVector> >& vectorCoeffs,
00150 const Array<double>& constantCoeffs,
00151 RCP<Array<double> >& A) const ;
00152
00153
00154
00155 int integrationVerb() const {return integrationVerb_;}
00156
00157
00158 int transformVerb() const {return transformVerb_;}
00159
00160
00161 const Array<MultipleDeriv>& derivs() const
00162 {return derivs_;}
00163
00164
00165
00166 private:
00167
00168 int findIntegrationVerb(const Array<RCP<ElementIntegral> >& integrals) const ;
00169
00170 int findTransformVerb(const Array<RCP<ElementIntegral> >& integrals) const ;
00171
00172 int integrationVerb_;
00173
00174
00175 int transformVerb_;
00176
00177
00178 int order_;
00179
00180
00181 int nTestNodes_;
00182
00183
00184 int nUnkNodes_;
00185
00186
00187 Array<int> testID_;
00188
00189
00190 Array<int> unkID_;
00191
00192
00193 Array<int> testBlock_;
00194
00195
00196 Array<int> unkBlock_;
00197
00198
00199 Array<int> mvIndices_;
00200
00201
00202 Array<RCP<ElementIntegral> > integrals_;
00203
00204
00205 Array<int> resultIndices_;
00206
00207
00208 Array<int> termUsesMaximalCofacets_;
00209
00210
00211 IntegrationCellSpecifier requiresMaximalCofacet_;
00212
00213
00214 Array<MultipleDeriv> derivs_;
00215 };
00216
00217
00218 }
00219
00220
00221 #endif