27 const HashTable<word>& theseCloudFields = cloudFields[
cloudName];
40 const bool cloudExists =
44 autoPtr<ensightFile>
os = ensCase.newCloud(
cloudName);
62 for (
const word& fieldName : theseCloudFields.sortedToc())
64 const word& fieldType = theseCloudFields[fieldName];
69 mesh.time().timeName(),
75 bool fieldExists = cloudExists;
82 const bool oldParRun = Pstream::parRun(
false);
83 fieldExists = fieldObject.typeHeaderOk<IOField<scalar>>(
false);
84 Pstream::parRun(oldParRun);
85 Pstream::reduceOr(fieldExists);
91 #undef ensight_WRITE_CLOUD_FIELD 92 #define ensight_WRITE_CLOUD_FIELD(PrimitiveType) \ 94 if (fieldType == IOField<PrimitiveType>::typeName) \ 96 autoPtr<ensightFile> os = \ 97 ensCase.newCloudData<PrimitiveType> \ 103 wrote = ensightOutput::readWriteCloudField<PrimitiveType> \ 115 #undef ensight_WRITE_CLOUD_FIELD 120 Info<<
' ' << fieldName;
bool writeCloudPositions(ensightFile &os, DynamicList< floatVector > &positions, const globalIndex &procAddr)
Write cloud positions.
constexpr char nl
The newline '\n' character (0x0a)
List< HashTable< HashTable< word > > > regionCloudFields(meshes.size())
const word cloudName(propsDict.get< word >("cloud"))
#define ensight_WRITE_CLOUD_FIELD(PrimitiveType)
OBJstream os(runTime.globalPath()/outputName)
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< fileName > fileNameList
List of fileName.
fileNameList readDir(const fileName &directory, const fileName::Type type=fileName::Type::FILE, const bool filtergz=true, const bool followLink=true)
Read a directory and return the entries as a fileName List.
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
List< wordList > regionCloudNames(meshes.size())