33 label count = data_.
size();
46template<
class Type1,
class Type2>
49 if (fld1.size() != fld2.size())
52 <<
"Field lengths must be the same. Field1:"
53 << fld1.size() <<
" Field2:" << fld2.size()
60 label count = data_.size();
61 data_.resize(data_.size() + fld1.size()*(nCmpts1 + nCmpts2));
67 data_[count++] =
component(fld1[fieldi], d);
72 data_[count++] =
component(fld2[fieldi], d);
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
void resize(const label len)
Adjust allocated size of list.
void size(const label n)
Older name for setAddressableSize.
void addData(const Type &fld)
Add data to the buffer.
A traits class, which is primarily used for primitives.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
errorManip< error > abort(error &err)
#define forAll(list, i)
Loop across all elements in list.