42 return (operation_ & typeWeighted);
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))
@ typeAbsolute
Operation using mag (eg, for weighting)
bool canWeight(const scalarField &fld) const
True if field is non-empty on any processor.
bool is_magOp() const noexcept
True if the operation variant uses mag.
operationType operation_
Operation to apply to values.
bool is_weightedOp() const noexcept
True if the operation variant uses a weight-field.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.