mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: verbose point field decompose/reconstruct (#120)
TUT: use redistributePar for multiphase/interFoam/RAS/DTCHull
This commit is contained in:
@ -30,6 +30,11 @@ License
|
|||||||
#include "parLagrangianDistributor.H"
|
#include "parLagrangianDistributor.H"
|
||||||
#include "passivePositionParticleCloud.H"
|
#include "passivePositionParticleCloud.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
int Foam::parLagrangianDistributor::verbose_ = 1;
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::parLagrangianDistributor::parLagrangianDistributor
|
Foam::parLagrangianDistributor::parLagrangianDistributor
|
||||||
|
|||||||
@ -91,6 +91,10 @@ class parLagrangianDistributor
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
//- Output verbosity when writing
|
||||||
|
static int verbose_;
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from components
|
//- Construct from components
|
||||||
|
|||||||
@ -174,8 +174,6 @@ Foam::label Foam::parLagrangianDistributor::distributeFieldFields
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const bool verbose_ = true;
|
|
||||||
|
|
||||||
label nFields = 0;
|
label nFields = 0;
|
||||||
for (const word& objectName : fieldNames)
|
for (const word& objectName : fieldNames)
|
||||||
{
|
{
|
||||||
@ -263,8 +261,6 @@ Foam::label Foam::parLagrangianDistributor::readFields
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const bool verbose_ = true;
|
|
||||||
|
|
||||||
label nFields = 0;
|
label nFields = 0;
|
||||||
for (const word& objectName : fieldNames)
|
for (const word& objectName : fieldNames)
|
||||||
{
|
{
|
||||||
@ -313,8 +309,6 @@ Foam::label Foam::parLagrangianDistributor::distributeStoredFields
|
|||||||
cloud.lookupClass<Container>()
|
cloud.lookupClass<Container>()
|
||||||
);
|
);
|
||||||
|
|
||||||
const bool verbose_ = true;
|
|
||||||
|
|
||||||
label nFields = 0;
|
label nFields = 0;
|
||||||
forAllIters(fields, iter)
|
forAllIters(fields, iter)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -30,7 +30,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
int Foam::parPointFieldDistributor::verbose_ = 0;
|
int Foam::parPointFieldDistributor::verbose_ = 1;
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -1087,13 +1087,11 @@ int main(int argc, char *argv[])
|
|||||||
: fileHandler()
|
: fileHandler()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Make sure to call findTimes on all processors to force caching of
|
// Make sure to call findTimes on all processors to force caching of
|
||||||
// time directories
|
// time directories
|
||||||
(void)fileHandler().findTimes(args.path(), "constant");
|
(void)fileHandler().findTimes(args.path(), "constant");
|
||||||
|
|
||||||
|
// Need this line since we don't include "setRootCase.H"
|
||||||
#include "foamDlOpenLibs.H"
|
#include "foamDlOpenLibs.H"
|
||||||
|
|
||||||
const bool reconstruct = args.found("reconstruct");
|
const bool reconstruct = args.found("reconstruct");
|
||||||
@ -1109,6 +1107,7 @@ int main(int argc, char *argv[])
|
|||||||
if (optVerbose)
|
if (optVerbose)
|
||||||
{
|
{
|
||||||
// Report on output
|
// Report on output
|
||||||
|
faMeshDistributor::verbose_ = 1;
|
||||||
parPointFieldDistributor::verbose_ = 1;
|
parPointFieldDistributor::verbose_ = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,12 +29,14 @@ restore0Dir
|
|||||||
|
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
runApplication decomposePar
|
# runApplication decomposePar
|
||||||
|
runParallel -s decompose redistributePar -decompose
|
||||||
|
|
||||||
runParallel renumberMesh -overwrite
|
runParallel renumberMesh -overwrite
|
||||||
|
|
||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
runApplication reconstructPar
|
# runApplication reconstructPar
|
||||||
|
runParallel -s reconstruct redistributePar -reconstruct
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user