Skip to content

Commit

Permalink
renaming and & improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
arng40 committed Jan 9, 2025
1 parent c717f05 commit 5c78358
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/coreComponents/physicsSolvers/fluidFlow/LogLevelsInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ struct Statistics
static constexpr std::string_view getDescription() { return "Print statistics"; }
};

struct DetailedSourceFluxStats
struct AggregatedSourceFluxStats
{
static constexpr int getMinLogLevel() { return 1; }
static constexpr std::string_view getDescription() { return "Print source flux statistics resulting from all flux in a mesh"; }
static constexpr std::string_view getDescription() { return "Print aggregated statistics of all source fluxes in a mesh"; }
};

struct DetailedSourceFluxRegionsStats
struct DetailedSourceFluxStats
{
static constexpr int getMinLogLevel() { return 2; }
static constexpr std::string_view getDescription() { return "Print source flux statistics for each flux in a mesh"; }
static constexpr std::string_view getDescription() { return "Print statistics for each source flux in a mesh"; }
};

struct AggregatedSourceFluxStats
struct DetailedRegionsSourceFluxStats
{
static constexpr int getMinLogLevel() { return 3; }
static constexpr std::string_view getDescription() { return "Print source flux statistics for each regions "; }
static constexpr std::string_view getDescription() { return "Print statistics for each source flux in each regions"; }
};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ SourceFluxStatsAggregator::SourceFluxStatsAggregator( const string & name,
"Use \"*\" to target all {0}.",
SourceFluxBoundaryCondition::catalogName() ) );

addLogLevel< logInfo::DetailedSourceFluxRegionsStats >();
addLogLevel< logInfo::AggregatedSourceFluxStats >();
addLogLevel< logInfo::DetailedSourceFluxStats >();
addLogLevel< logInfo::DetailedRegionsSourceFluxStats >();
addLogLevel< logInfo::AggregatedSourceFluxStats >();
}

void SourceFluxStatsAggregator::postInputInitialization()
Expand Down Expand Up @@ -220,9 +220,9 @@ bool SourceFluxStatsAggregator::execute( real64 const GEOS_UNUSED_PARAM( time_n
real64 const GEOS_UNUSED_PARAM( eventProgress ),
DomainPartition & domain )
{
bool const fluxMeshesStats = isLogLevelActive< logInfo::DetailedSourceFluxStats >( getLogLevel() );
bool const fluxesStats = isLogLevelActive< logInfo::AggregatedSourceFluxStats >( getLogLevel() );
bool const regionsStats = isLogLevelActive< logInfo::DetailedSourceFluxRegionsStats >( getLogLevel() );
bool const fluxMeshesStats = isLogLevelActive< logInfo::AggregatedSourceFluxStats >( getLogLevel() );
bool const fluxesStats = isLogLevelActive< logInfo::DetailedSourceFluxStats >( getLogLevel() );
bool const regionsStats = isLogLevelActive< logInfo::DetailedRegionsSourceFluxStats >( getLogLevel() );
forMeshLevelStatsWrapper( domain,
[&] ( MeshLevel & meshLevel, WrappedStats & meshLevelStats )
{
Expand Down

0 comments on commit 5c78358

Please sign in to comment.