diff --git a/applications/test/Tuple2/Make/files b/applications/test/Tuple2/Make/files index be0026f0cd..f58d59d0f2 100644 --- a/applications/test/Tuple2/Make/files +++ b/applications/test/Tuple2/Make/files @@ -1,3 +1,3 @@ -Test-Tuple2.C +Test-Tuple2.cxx EXE = $(FOAM_USER_APPBIN)/Test-Tuple2 diff --git a/applications/test/Tuple2/Test-Tuple2.C b/applications/test/Tuple2/Test-Tuple2.cxx similarity index 97% rename from applications/test/Tuple2/Test-Tuple2.C rename to applications/test/Tuple2/Test-Tuple2.cxx index 9163f14e54..a2ebf44592 100644 --- a/applications/test/Tuple2/Test-Tuple2.C +++ b/applications/test/Tuple2/Test-Tuple2.cxx @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation - Copyright (C) 2019-2020 OpenCFD Ltd. + Copyright (C) 2019-2025 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +32,7 @@ Description \*---------------------------------------------------------------------------*/ +#include "argList.H" #include "labelPair.H" #include "Tuple2.H" #include "label.H" @@ -102,8 +103,12 @@ void printTuple2(const Pair& t) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Main program: -int main() +int main(int argc, char *argv[]) { + argList::noCheckProcessorDirectories(); + + #include "setRootCase.H" + typedef Tuple2 indexedScalar; Info<< "Default constructed Tuple: " << indexedScalar() << nl; diff --git a/applications/test/nodeTopology/Test-nodeTopology.cxx b/applications/test/nodeTopology/Test-nodeTopology.cxx index db4a5eeaf4..9909d51d4f 100644 --- a/applications/test/nodeTopology/Test-nodeTopology.cxx +++ b/applications/test/nodeTopology/Test-nodeTopology.cxx @@ -59,13 +59,13 @@ int main(int argc, char *argv[]) label nProcs = UPstream::nProcs(UPstream::worldComm); - List interNodeProcs_fake; + DynamicList fake_interNode_offsets; if (UPstream::parRun()) { if (args.found("numProcs")) { - InfoErr<< "ignoring -np option in parallel" << nl; + InfoErr<< "ignoring -numProcs option in parallel" << nl; } if (args.found("cores")) { @@ -78,25 +78,40 @@ int main(int argc, char *argv[]) nProcs = args.getOrDefault