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() debug::runTimeSelectionToC[tableName].second().sortedToc()
); );
Info<< "Contents of table " << tableName Info<< "Contents of table " << tableName;
<< ", base type "
<< debug::runTimeSelectionToC[tableName].first() if (debug::runTimeSelectionToC[tableName].first() != tableName)
<< ":" << endl; {
Info<< ", base type "
<< debug::runTimeSelectionToC[tableName].first();
}
Info<< ":" << endl;
forAll(toc, i) forAll(toc, i)
{ {