foamToC: Only print the table base-type if it differs from the table name

This commit is contained in:
Henry Weller
2022-08-08 18:38:34 +01:00
parent 49af47bbf2
commit 80d869974e

View File

@ -171,10 +171,15 @@ void printToC(const word& tableName)
debug::runTimeSelectionToC[tableName].second().sortedToc()
);
Info<< "Contents of table " << tableName
<< ", base type "
<< debug::runTimeSelectionToC[tableName].first()
<< ":" << endl;
Info<< "Contents of table " << tableName;
if (debug::runTimeSelectionToC[tableName].first() != tableName)
{
Info<< ", base type "
<< debug::runTimeSelectionToC[tableName].first();
}
Info<< ":" << endl;
forAll(toc, i)
{