MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Dimensions

Method Dimensions

comp/gridfunction.cpp:1324–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322 }
1323
1324 Array<int> GridFunctionCoefficientFunction::Dimensions() const
1325 {
1326 for (auto vb : { VOL, BND, BBND })
1327 if (diffop[vb])
1328 return Array<int> (diffop[vb]->Dimensions());
1329 /*
1330 if (diffop)
1331 return Array<int> (diffop->Dimensions());
1332 else if (trace_diffop)
1333 return Array<int> (trace_diffop->Dimensions());
1334 else if (ttrace_diffop)
1335 return Array<int> (ttrace_diffop->Dimensions());
1336 */
1337 // is it possible ??
1338 return Array<int> ( { Dimension() } );
1339 /*
1340 int d = Dimension();
1341 if (diffop)
1342 {
1343 int spacedim = gf->GetFESpace()->GetDimension();
1344 if (spacedim > 1)
1345 return Array<int> ( { spacedim, d/spacedim } );
1346 }
1347 return Array<int>( { d } );
1348 */
1349 }
1350
1351
1352

Callers 15

DiffShapeMethod · 0.80
GenerateCodeMethod · 0.80
GenerateCodeMethod · 0.80
NewtonCFMethod · 0.80
MinimizationCFMethod · 0.80
GenerateCodeMethod · 0.80
ReshapeCFFunction · 0.80

Calls 1

DimensionFunction · 0.50

Tested by

no test coverage detected