44 if (Pstream::parRun())
48 if (Pstream::master(comm_))
58 int slave=Pstream::firstSlave();
59 slave<=Pstream::lastSlave(comm_);
65 Pstream::commsTypes::scheduled,
67 reinterpret_cast<char*>
69 &(X[procOffsets_[slave]])
71 (procOffsets_[slave+1]-procOffsets_[slave])*
sizeof(Type),
81 Pstream::commsTypes::scheduled,
83 reinterpret_cast<const char*>(x.
begin()),
90 if (Pstream::master(comm_))
102 int slave=Pstream::firstSlave();
103 slave<=Pstream::lastSlave(comm_);
109 Pstream::commsTypes::scheduled,
111 reinterpret_cast<const char*>
113 &(X[procOffsets_[slave]])
115 (procOffsets_[slave + 1]-procOffsets_[slave])*
sizeof(Type),
125 Pstream::commsTypes::scheduled,
127 reinterpret_cast<char*>(x.
begin()),
void solve(Field< Type > &x, const Field< Type > &source) const
Solve the linear system with the given source.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
Pre-declare related SubField type.
Pre-declare SubField and related Field type.
iterator begin()
Return an iterator to begin traversing the UList.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
std::streamsize byteSize() const
Return the binary size in number of characters of the UList.
A class for managing temporary objects.
void LUBacksubstitute(const scalarSquareMatrix &luMmatrix, const labelList &pivotIndices, List< Type > &source)
LU back-substitution with given source, returning the solution.