31 template<
class Type, Foam::direction nComp,
int nTuple>
39 openTag(vtk::fileTag::DATA_ARRAY);
41 xmlAttr(
"Name", dataName);
45 xmlAttr(fileAttr::NUMBER_OF_COMPONENTS,
int(nComp));
49 xmlAttr(fileAttr::NUMBER_OF_TUPLES, nTuple);
51 xmlAttr(
"format",
name());
53 if (formatter::npos != payLoad)
55 uint64_t off = offset(payLoad);
56 if (formatter::npos != off)
58 xmlAttr(
"offset", off);
71 template<
class Type, Foam::direction nComp,
int nTuple>
77 openTag(
"PDataArray");
82 xmlAttr(
"Name", dataName);
86 xmlAttr(fileAttr::NUMBER_OF_COMPONENTS,
int(nComp));
90 xmlAttr(fileAttr::NUMBER_OF_TUPLES, nTuple);