Class for parallel handling, it has several functions to deal with parallel problems, the class is implemented as a singletone. More...
#include <ITHACAparallel.H>
Public Member Functions | |
ITHACAparallel ()=delete | |
Delete empty constructor. | |
template<class Type > | |
List< List< Type > > | combineFields (GeometricField< Type, fvPatchField, volMesh > &field) |
Function to get a global field from a parallel one. | |
template<class type > | |
GeometricField< type, fvPatchField, volMesh > | constructGlobalField (GeometricField< type, fvPatchField, volMesh > field) |
template<> | |
List< List< scalar > > | combineFields (GeometricField< scalar, fvPatchField, volMesh > &field) |
template<> | |
List< List< vector > > | combineFields (GeometricField< vector, fvPatchField, volMesh > &field) |
template<> | |
List< List< scalar > > | combineFields (GeometricField< scalar, fvPatchField, volMesh > &field) |
Static Public Member Functions | |
static ITHACAparallel * | getInstance (fvMesh &mesh, Time &localTime) |
Gets an instance of ithacaparallel, to be used if the instance is not existing. | |
static ITHACAparallel * | getInstance () |
Gets an instance of ithacaparallel, to be used if the instance is already existing. | |
static void | suspendMPI () |
Function to sumpend MPI. | |
static void | resumeMPI () |
Function to resume MPI. | |
Public Attributes | |
label | N_IF_glob |
Totoal number of internal field cells. | |
label | N_BF |
Number of Boundary Patches without considering processors. | |
autoPtr< labelIOList > | indices |
Cell proc addressing. | |
autoPtr< labelIOList > | indicesF |
Face proc addressing. | |
autoPtr< labelList > | Gsize_BF |
Boundary Field variables representing the total number of faces for each processor. | |
autoPtr< List< labelList > > | IndFaceLocal |
Indexing. | |
autoPtr< labelList > | Lsize_BF |
Local size at the boundary. | |
autoPtr< labelList > | Start |
StartFace on the gloabl Mesh. | |
Time & | runTime |
runTime defined locally | |
fvMesh & | mesh |
Mesh object defined locally. | |
Static Public Attributes | |
static List< int > | oldProcIDs_ |
ID of the OLD process. | |
static List< int > | newProcIDs_ |
ID of the NEW process. | |
Class for parallel handling, it has several functions to deal with parallel problems, the class is implemented as a singletone.
Definition at line 39 of file ITHACAparallel.H.
|
delete |
Delete empty constructor.
List< List< scalar > > ITHACAparallel::combineFields | ( | GeometricField< scalar, fvPatchField, volMesh > & | field | ) |
Definition at line 133 of file ITHACAparallel.C.
List< List< scalar > > ITHACAparallel::combineFields | ( | GeometricField< scalar, fvPatchField, volMesh > & | field | ) |
List< List< Type > > ITHACAparallel::combineFields | ( | GeometricField< Type, fvPatchField, volMesh > & | field | ) |
Function to get a global field from a parallel one.
List< List< vector > > ITHACAparallel::combineFields | ( | GeometricField< vector, fvPatchField, volMesh > & | field | ) |
Definition at line 175 of file ITHACAparallel.C.
GeometricField< type, fvPatchField, volMesh > ITHACAparallel::constructGlobalField | ( | GeometricField< type, fvPatchField, volMesh > | field | ) |
Definition at line 131 of file ITHACAparallel.H.
|
static |
Gets an instance of ithacaparallel, to be used if the instance is already existing.
Definition at line 18 of file ITHACAparallel.C.
|
static |
Gets an instance of ithacaparallel, to be used if the instance is not existing.
mesh | The mesh |
localTime | The runtime object |
Definition at line 9 of file ITHACAparallel.C.
|
static |
Function to resume MPI.
Definition at line 125 of file ITHACAparallel.C.
|
static |
Function to sumpend MPI.
Definition at line 116 of file ITHACAparallel.C.
autoPtr<labelList> ITHACAparallel::Gsize_BF |
Boundary Field variables representing the total number of faces for each processor.
Definition at line 100 of file ITHACAparallel.H.
autoPtr< List<labelList> > ITHACAparallel::IndFaceLocal |
Indexing.
Definition at line 103 of file ITHACAparallel.H.
autoPtr<labelIOList> ITHACAparallel::indices |
Cell proc addressing.
Definition at line 94 of file ITHACAparallel.H.
autoPtr<labelIOList> ITHACAparallel::indicesF |
Face proc addressing.
Definition at line 97 of file ITHACAparallel.H.
autoPtr<labelList> ITHACAparallel::Lsize_BF |
Local size at the boundary.
Definition at line 106 of file ITHACAparallel.H.
fvMesh& ITHACAparallel::mesh |
Mesh object defined locally.
Definition at line 121 of file ITHACAparallel.H.
label ITHACAparallel::N_BF |
Number of Boundary Patches without considering processors.
Definition at line 91 of file ITHACAparallel.H.
label ITHACAparallel::N_IF_glob |
Totoal number of internal field cells.
Definition at line 88 of file ITHACAparallel.H.
|
static |
ID of the NEW process.
Definition at line 115 of file ITHACAparallel.H.
|
static |
ID of the OLD process.
Definition at line 112 of file ITHACAparallel.H.
Time& ITHACAparallel::runTime |
runTime defined locally
Definition at line 118 of file ITHACAparallel.H.
autoPtr<labelList> ITHACAparallel::Start |
StartFace on the gloabl Mesh.
Definition at line 109 of file ITHACAparallel.H.