MCPcopy Create free account
hub / github.com/Kitware/VTK / XdmfAttributeSetCenter

Function XdmfAttributeSetCenter

ThirdParty/xdmf3/vtkxdmf3/XdmfAttribute.cpp:335–363  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

333}
334//-----------------------------------------------------------------------------
335void XdmfAttributeSetCenter(XDMFATTRIBUTE * attribute, int center, int * status)
336{
337 XDMF_ERROR_WRAP_START(status)
338 switch(center) {
339 case XDMF_ATTRIBUTE_CENTER_GRID:
340 ((XdmfAttribute *)attribute)->setCenter(XdmfAttributeCenter::Grid());
341 break;
342 case XDMF_ATTRIBUTE_CENTER_CELL:
343 ((XdmfAttribute *)attribute)->setCenter(XdmfAttributeCenter::Cell());
344 break;
345 case XDMF_ATTRIBUTE_CENTER_FACE:
346 ((XdmfAttribute *)attribute)->setCenter(XdmfAttributeCenter::Face());
347 break;
348 case XDMF_ATTRIBUTE_CENTER_EDGE:
349 ((XdmfAttribute *)attribute)->setCenter(XdmfAttributeCenter::Edge());
350 break;
351 case XDMF_ATTRIBUTE_CENTER_NODE:
352 ((XdmfAttribute *)attribute)->setCenter(XdmfAttributeCenter::Node());
353 break;
354 default:
355 {
356 std::stringstream sstr;
357 sstr << "Error: Invalid Attribute Center: Code " << center;
358 XdmfError::message(XdmfError::FATAL, sstr.str());
359 }
360 break;
361 }
362 XDMF_ERROR_WRAP_END(status)
363}
364//-----------------------------------------------------------------------------
365void XdmfAttributeSetType(XDMFATTRIBUTE * attribute, int type, int * status)
366{

Callers

nothing calls this directly

Calls 8

EdgeClass · 0.85
setCenterMethod · 0.80
XDMF_ERROR_WRAP_STARTFunction · 0.70
GridClass · 0.50
CellClass · 0.50
FaceFunction · 0.50
NodeClass · 0.50
strMethod · 0.45

Tested by

no test coverage detected