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