From 89013280a7a7370abd5d8cd6a2856f67919476b4 Mon Sep 17 00:00:00 2001 From: Robert Oehmke Date: Wed, 4 Oct 2023 16:39:12 -0600 Subject: [PATCH] Fix template specialization issue in DInfo class. --- src/Infrastructure/Mesh/include/ESMCI_DInfo.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Infrastructure/Mesh/include/ESMCI_DInfo.h b/src/Infrastructure/Mesh/include/ESMCI_DInfo.h index c10f203d0c..cd9aaa053a 100644 --- a/src/Infrastructure/Mesh/include/ESMCI_DInfo.h +++ b/src/Infrastructure/Mesh/include/ESMCI_DInfo.h @@ -151,19 +151,19 @@ class DInfo { // Set of templated calls to support different id types in allreduce template -static void _get_global_minmax(IDTYPE lmin, IDTYPE lmax, IDTYPE &t_gmin, IDTYPE &t_gmax) { +void DINFO_get_global_minmax(IDTYPE lmin, IDTYPE lmax, IDTYPE &t_gmin, IDTYPE &t_gmax) { Throw() << "Unsupported id type."; } template<> -static void _get_global_minmax(int lmin, int lmax, int &t_gmin, int &t_gmax) { +void DINFO_get_global_minmax(int lmin, int lmax, int &t_gmin, int &t_gmax) { MPI_Allreduce(&lmin, &t_gmin, 1, MPI_INT, MPI_MIN, Par::Comm()); MPI_Allreduce(&lmax, &t_gmax, 1, MPI_INT, MPI_MAX, Par::Comm()); } // Set of templated call to calculate proc from id and global info template -static UInt _calc_proc_from_id(IDTYPE id, UInt petCount, IDTYPE gmin, IDTYPE gmax) { +UInt DINFO_calc_proc_from_id(IDTYPE id, UInt petCount, IDTYPE gmin, IDTYPE gmax) { //std::cout << "id ="<