STYLE: verbose point field decompose/reconstruct (#120)

TUT: use redistributePar for multiphase/interFoam/RAS/DTCHull
This commit is contained in:
Mark Olesen
2022-06-22 18:28:34 +02:00
parent e84c2d84ad
commit b51e0d4c1c
6 changed files with 16 additions and 12 deletions

View File

@ -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

View File

@ -91,6 +91,10 @@ class parLagrangianDistributor
public: public:
//- Output verbosity when writing
static int verbose_;
// Constructors // Constructors
//- Construct from components //- Construct from components

View File

@ -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)
{ {

View File

@ -30,7 +30,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
int Foam::parPointFieldDistributor::verbose_ = 0; int Foam::parPointFieldDistributor::verbose_ = 1;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -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;
} }

View File

@ -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
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------