diff --git a/applications/test/gatherValues1/Make/files b/applications/test/gatherValues1/Make/files index 31bbb718f0..b5fc79cbe0 100644 --- a/applications/test/gatherValues1/Make/files +++ b/applications/test/gatherValues1/Make/files @@ -1,3 +1,3 @@ -Test-gatherValues1.C +Test-gatherValues1.cxx EXE = $(FOAM_USER_APPBIN)/Test-gatherValues1 diff --git a/applications/test/gatherValues1/Test-gatherValues1.C b/applications/test/gatherValues1/Test-gatherValues1.cxx similarity index 81% rename from applications/test/gatherValues1/Test-gatherValues1.C rename to applications/test/gatherValues1/Test-gatherValues1.cxx index 69ce09ce12..02bb8597ed 100644 --- a/applications/test/gatherValues1/Test-gatherValues1.C +++ b/applications/test/gatherValues1/Test-gatherValues1.cxx @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2021-2023 OpenCFD Ltd. + Copyright (C) 2021-2024 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) const labelList localValues ( - identity(2 *(Pstream::myProcNo()+1), -5*Pstream::myProcNo()) + identity(2 *(UPstream::myProcNo()+1), -5*UPstream::myProcNo()) ); // Test resize @@ -76,8 +76,8 @@ int main(int argc, char *argv[]) // One-sided sizing! master only const globalIndex allProcAddr ( - sendData.size(), - globalIndex::gatherOnly{} + globalIndex::gatherOnly{}, + sendData.size() ); Pout<< "listGather sizes: " << flatOutput(allProcAddr.sizes()) << nl; @@ -98,8 +98,8 @@ int main(int argc, char *argv[]) // One-sided sizing! master only const globalIndex allProcAddr ( - sendData.size(), - globalIndex::gatherOnly{} + globalIndex::gatherOnly{}, + sendData.size() ); Pout<< "listGather sizes: " << flatOutput(allProcAddr.sizes()) << nl; @@ -116,7 +116,7 @@ int main(int argc, char *argv[]) { const labelList::subList& sendData = ( - Pstream::master() + UPstream::master() ? SubList