fieldsDistributor Class Reference

Static Public Member Functions

template<class GeoField >
static void readField (const IOobject &io, const typename GeoField::Mesh &mesh, const label i, PtrList< GeoField > &fields)
 Generic mesh-based field reading. More...
 
template<class Type , template< class > class PatchField, class GeoMesh >
static void readField (const IOobject &io, const typename GeoMesh::Mesh &mesh, const label i, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields)
 Definition of readField for GeometricFields only. More...
 
template<class Type , template< class > class PatchField, class GeoMesh >
static void readFields (const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, const bool readOldTime)
 Read fields and store on the pointer list. More...
 
template<class Mesh , class GeoField >
static void readFields (const Mesh &mesh, const IOobjectList &objects, PtrList< GeoField > &fields)
 Read fields and hold on the pointer list. More...
 
template<class GeoField , class MeshSubsetter >
static void readFields (const boolList &haveMeshOnProc, const typename GeoField::Mesh &mesh, const autoPtr< MeshSubsetter > &subsetterPtr, IOobjectList &allObjects, PtrList< GeoField > &fields, const bool deregister=false)
 

Detailed Description

Definition at line 53 of file fieldsDistributor.H.

Member Function Documentation

◆ readField() [1/2]

void readField ( const IOobject io,
const typename GeoField::Mesh &  mesh,
const label  i,
PtrList< GeoField > &  fields 
)
static

Generic mesh-based field reading.

Definition at line 31 of file fieldsDistributorTemplates.C.

References fields, io(), and mesh.

Here is the call graph for this function:

◆ readField() [2/2]

void readField ( const IOobject io,
const typename GeoMesh::Mesh mesh,
const label  i,
PtrList< GeometricField< Type, PatchField, GeoMesh > > &  fields 
)
static

Definition of readField for GeometricFields only.

Definition at line 43 of file fieldsDistributorTemplates.C.

References fields, io(), and mesh.

Here is the call graph for this function:

◆ readFields() [1/3]

void readFields ( const typename GeoMesh::Mesh mesh,
const IOobjectList objects,
PtrList< GeometricField< Type, PatchField, GeoMesh > > &  fields,
const bool  readOldTime 
)
static

Read fields and store on the pointer list.

Definition at line 60 of file fieldsDistributorTemplates.C.

References fields, forAll, mesh, UPtrList< T >::size(), and IOobjectList::sorted().

Here is the call graph for this function:

◆ readFields() [2/3]

void readFields ( const Mesh &  mesh,
const IOobjectList objects,
PtrList< GeoField > &  fields 
)
static

Read fields and hold on the pointer list.

Definition at line 84 of file fieldsDistributorTemplates.C.

References fields, forAll, mesh, UPtrList< T >::size(), and IOobjectList::sorted().

Here is the call graph for this function:

◆ readFields() [3/3]

void readFields ( const boolList haveMeshOnProc,
const typename GeoField::Mesh &  mesh,
const autoPtr< MeshSubsetter > &  subsetterPtr,
IOobjectList allObjects,
PtrList< GeoField > &  fields,
const bool  deregister = false 
)
static

Read volume/surface/point/area fields that may or may not exist on all processors

Pout<< "Attempt read: " << name << endl;

Info<< "De-registering fields:";

Info<< " " << fld.name();

Info<< nl;

Definition at line 105 of file fieldsDistributorTemplates.C.

References IOobject::AUTO_WRITE, token::BEGIN_LIST, Ostream::beginBlock(), Pstream::broadcast(), token::END_LIST, Ostream::endBlock(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, fields, Foam::flatOutput(), fld(), forAll, forAllConstIters, io(), IOobjectList::lookupClass(), splitCell::master(), UPstream::masterNo(), mesh, processorFaPatch::myProcNo(), Foam::name(), Foam::nl, token::NL, IOobject::NO_READ, UPstream::parRun(), UList< T >::size(), IOobjectList::sortedNames(), PstreamBuffers::subProcs(), fvMesh::thisDb(), fvMesh::time(), Time::timeName(), and IOobject::writeOpt().

Here is the call graph for this function:

The documentation for this class was generated from the following files: