From 80d869974e8d35760e7a6aedc797de6d3b23decc Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 8 Aug 2022 18:38:34 +0100 Subject: [PATCH] foamToC: Only print the table base-type if it differs from the table name --- .../utilities/miscellaneous/foamToC/foamToC.C | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/applications/utilities/miscellaneous/foamToC/foamToC.C b/applications/utilities/miscellaneous/foamToC/foamToC.C index 52ea997126..6a322c9525 100644 --- a/applications/utilities/miscellaneous/foamToC/foamToC.C +++ b/applications/utilities/miscellaneous/foamToC/foamToC.C @@ -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) {