| 1306 | } |
| 1307 | |
| 1308 | int GridFunctionCoefficientFunction::Dimension() const |
| 1309 | { |
| 1310 | for (auto vb : { VOL, BND, BBND, BBBND }) |
| 1311 | if (diffop[vb]) |
| 1312 | return diffop[vb]->Dim(); |
| 1313 | /* |
| 1314 | if (diffop) return diffop->Dim(); |
| 1315 | if (trace_diffop) return trace_diffop->Dim(); |
| 1316 | if (bfi) return bfi->DimFlux(); |
| 1317 | if (gf->GetFESpace()->GetEvaluator()) |
| 1318 | return gf->GetFESpace()->GetEvaluator()->Dim(); |
| 1319 | */ |
| 1320 | throw Exception(string ("don't know my dimension, space is ") + |
| 1321 | gf->GetFESpace()->GetClassName()); |
| 1322 | } |
| 1323 | |
| 1324 | Array<int> GridFunctionCoefficientFunction::Dimensions() const |
| 1325 | { |