Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
edb3798
feat(exx): Ewald Coulomb input parameters and Exx_Info_RI fields for …
AroundPeking Oct 17, 2026
155366d
feat(ri): strict 2D/3D Coulomb kernels, Ewald tail machinery, and sym…
AroundPeking Oct 17, 2026
061e317
feat(rpa): strict-2D head sidecar and direct-Coulomb reader-v1 output…
AroundPeking Oct 17, 2026
3c36d81
test(ri): 2D reader-v1 producer case, regenerated Ewald refs, and che…
AroundPeking Oct 17, 2026
56509a2
docs(ri): key-formula comments for the strict-2D Coulomb and Ewald ta…
AroundPeking Oct 18, 2026
466579d
fix(ci): repair LibRI-gated test source path and replace #pragma once
AroundPeking Oct 19, 2026
4d9488c
fix(ci): close LibRI-gated operator test link and match reader CSR fo…
AroundPeking Oct 19, 2026
10f04df
fix(ci): make symmetry producer harness case-aware and round-trip Hex…
AroundPeking Oct 19, 2026
f836f43
Merge branch 'develop' into abacus-librpa-strict2d-oct17
mohanchen Oct 20, 2026
acbe254
refactor(xc): drop parameter.h include and align struct indentation
AroundPeking Oct 20, 2026
de29636
refactor(ri): communicator-aware MPI wrappers, explicit ExxLriRuntime…
AroundPeking Oct 20, 2026
d691c13
fix(ri): pass explicit ExxLriRuntime at the remaining constructors an…
AroundPeking Oct 20, 2026
26119a4
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Oct 21, 2026
bbc21d4
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Oct 21, 2026
925fcd8
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Oct 23, 2026
bcc4bd9
test(validation): remove synthetic producer fixtures from validation_…
AroundPeking Oct 23, 2026
84d0923
fix(ci): restore ucell_io.cpp source for the restart_exx_csr test target
AroundPeking Oct 23, 2026
fcebd02
fix(ri): address review round on MPI wrappers, defaults, and test hyg…
AroundPeking Oct 23, 2026
5619814
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Oct 23, 2026
5cc2c8a
fix(ri): resolve ODR duplication, 3D cutoff drift, Ewald V serializat…
AroundPeking Oct 26, 2026
a09b246
test(ri): restore develop Ewald references for the 3D RPA cases
AroundPeking Oct 26, 2026
8d9fd11
fix(ri): select the Ewald dimension before the radial Gaussian tables
AroundPeking Oct 26, 2026
6517b62
test(ri): tighten the Gaussian-table regression and the diagnostic ga…
AroundPeking Oct 26, 2026
ddd2a62
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Oct 27, 2026
37d75f7
fix(ri): drop the cal_Vs_minus_gauss helper default and cover the wri…
AroundPeking Oct 27, 2026
1e6c743
revert(ri): drop the comm_map2 writer-gather MPI test
AroundPeking Oct 27, 2026
4128240
refactor(rpa): shorten auxiliary-basis preorthogonalization names
AroundPeking Oct 28, 2026
0f2d0b7
test(ri): keep producer references out of OUT.* and drop the new test…
AroundPeking Oct 28, 2026
037d71e
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Oct 28, 2026
8c5ae19
test: shorten the remaining over-long test file names
AroundPeking Oct 28, 2026
16b339c
fix(build,test): legacy Make objects, TempDir fixtures, reference_pat…
AroundPeking Oct 28, 2026
6c38491
test(op_exx): invocation-unique CSR fixture names and named cleanup p…
AroundPeking Oct 28, 2026
dd9f426
test(op_exx): bind getpid and the removal path to named locals
AroundPeking Oct 29, 2026
f864d7b
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Oct 29, 2026
87bb9a0
Merge branch 'develop' into abacus-librpa-strict2d-oct17
mohanchen Oct 30, 2026
2f9746b
Shorten INPUT parameter names introduced by this PR
AroundPeking Oct 30, 2026
ba4c549
Retrigger the documentation build
AroundPeking Oct 30, 2026
f10bc41
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Oct 31, 2026
08c8b5b
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Oct 31, 2026
9d6dc94
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Oct 31, 2026
113c304
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 1, 2026
4ff2eca
Retrigger the Makefile/Intel build after a runner disk-space failure
AroundPeking Nov 1, 2026
9e79b7a
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 4, 2026
9865c08
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Nov 4, 2026
e9330a2
Retrigger CI: the abacuslite job hit the known intermittent ASE failu…
AroundPeking Nov 4, 2026
005e232
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 4, 2026
012f339
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 5, 2026
3f8187c
test(lcao): reach the 2D descriptor through para_2d() in the EXX rest…
AroundPeking Nov 5, 2026
3c2ee44
fix(ri): hand get_2D_judge the 2D descriptor in the EXX_DEV stress path
AroundPeking Nov 5, 2026
d4b66cd
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Nov 5, 2026
3a99879
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Nov 6, 2026
2d17c35
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Nov 6, 2026
0d9eacb
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Nov 6, 2026
fad0e3f
docs(io): state why the Hexx writer keeps the cell-aware header
AroundPeking Nov 6, 2026
c30c2d2
Merge remote-tracking branch 'origin/abacus-librpa-strict2d-oct17' in…
AroundPeking Nov 6, 2026
6bbae94
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 6, 2026
c26a14e
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Nov 6, 2026
8be0b55
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Nov 7, 2026
97ed339
Merge remote-tracking branch 'upstream/develop' into abacus-librpa-st…
AroundPeking Nov 7, 2026
763bdaf
test(lcao): pass swap_grid explicitly after the distribution refactor
AroundPeking Nov 7, 2026
a9b1203
Merge remote-tracking branch 'origin/abacus-librpa-strict2d-oct17' in…
AroundPeking Nov 7, 2026
d1b20eb
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 14, 2026
d091d5a
test: move the touched unit tests under unittests/
AroundPeking Nov 14, 2026
57a04ec
fix(ri): close the three review findings and the CI link errors
AroundPeking Nov 15, 2026
0b52a47
fix(test): compile only the RI unit this fixture needs
AroundPeking Nov 15, 2026
c5d0d86
fix(test): mock the TD/XC symbols instead of adding the real sources
AroundPeking Nov 15, 2026
6ba5dfe
fix(test): mock the EXX interface entry points instead of linking mod…
AroundPeking Nov 15, 2026
9f87b48
fix(test): keep the shared mocks buildable without LibRI
AroundPeking Nov 15, 2026
c93a51f
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Nov 17, 2026
b8f0394
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Nov 19, 2026
b92e061
Merge branch 'develop' into abacus-librpa-strict2d-oct17
mohanchen Nov 21, 2026
addf5a0
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 21, 2026
1b4cf8f
Merge remote-tracking branch 'origin/abacus-librpa-strict2d-oct17' in…
AroundPeking Nov 21, 2026
1c20f11
Merge branch 'develop' into abacus-librpa-strict2d-oct17
AroundPeking Nov 21, 2026
780038d
fix(ri): announce the head sidecar in the log and pre-validate radial…
AroundPeking Nov 21, 2026
0001e82
feat(rpa): drop stru_out.txt and prefix every LibRPA input with librpa_
AroundPeking Nov 22, 2026
d713efe
Merge remote-tracking branch 'origin/abacus-librpa-strict2d-oct17' in…
AroundPeking Nov 22, 2026
aed6dcc
fix(test): update the two-rank producer driver to the prefixed names
AroundPeking Nov 22, 2026
5e1da97
test: drop the producer contract branch for the removed stru_out.txt
AroundPeking Nov 22, 2026
3e0a372
fix(rpa): prefix the remaining legacy writer names and parse the real…
AroundPeking Nov 22, 2026
915caa0
test: filter exported symmetry to the sampled mesh like stru_out did
AroundPeking Nov 22, 2026
d7bb02a
fix(ri): export spatial symmetry for nspin=4
AroundPeking Nov 22, 2026
a469701
test: accept the spatial-only symrot export in the symmetry validator
AroundPeking Nov 22, 2026
e952334
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 22, 2026
54dae15
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into…
AroundPeking Nov 22, 2026
c77e95c
fix(ri): restore the read_Cs_ao_all declaration with its default thre…
AroundPeking Nov 22, 2026
cd0af6f
fix(ri): keep the LR/BSE handoff working after the librpa_ rename
AroundPeking Nov 22, 2026
0b408ee
fix(ri): read one coherent input family and honour the grid offset
AroundPeking Nov 23, 2026
486ae9b
fix(lr): keep the prefix helpers visible in builds without LibRI
AroundPeking Nov 23, 2026
a84d4fa
fix(ri): prefix the direct-Coulomb V_full output like the split route
AroundPeking Nov 23, 2026
d4a01a0
fix(ri): prefix the direct-Coulomb diagnostic metadata too
AroundPeking Nov 23, 2026
13c8110
fix(lr): open the directories the Coulomb readers scan
AroundPeking Nov 23, 2026
2513e29
test: share the generated name with the cleanup guard
AroundPeking Nov 23, 2026
886f147
refactor: rename reviewer-flagged inputs and move the contract test
AroundPeking Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cmake/Testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ endif()
function(AddTest) # function for UT
cmake_parse_arguments(
UT "DYN" "TARGET"
"LIBS;DYN_LIBS;STATIC_LIBS;SOURCES;DEPENDS;KEEP_FEATURE_DEFINITIONS"
"LIBS;DYN_LIBS;STATIC_LIBS;SOURCES;DEPENDS;KEEP_FEATURE_DEFINITIONS;DROP_FEATURE_DEFINITIONS"
${ARGN})
add_executable(${UT_TARGET} ${UT_SOURCES})

Expand All @@ -65,6 +65,14 @@ function(AddTest) # function for UT
${UT_KEEP_FEATURE_DEFINITIONS})
endif()

# The converse: drop a definition the directory keeps, for a test that links
# code compiled without it. A test exercising a serial object library must
# not see the feature the library was built without.
if(UT_DROP_FEATURE_DEFINITIONS)
set_property(TARGET ${UT_TARGET} PROPERTY ABACUS_DROPPED_FEATURE_DEFINITIONS
${UT_DROP_FEATURE_DEFINITIONS})
endif()

if(ENABLE_COVERAGE)
add_coverage(${UT_TARGET})
endif()
Expand Down
17 changes: 17 additions & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,17 @@ define_property(
"abacus_disable_feature_definitions(). Used by tests that genuinely need a "
"feature (e.g. __MPI) inside a directory that otherwise disables it.")

define_property(
TARGET
PROPERTY ABACUS_DROPPED_FEATURE_DEFINITIONS
BRIEF_DOCS
"Feature definitions this target drops despite the directory keeping them"
FULL_DOCS
"Feature definitions to strip from this target although its source "
"directory does not disable them. Used by a test that links an object "
"library compiled without the feature, so the test source must see the "
"same configuration as the code it exercises.")

function(abacus_disable_feature_definitions)
abacus_normalize_definitions(_defs ${ARGN})
set_property(
Expand Down Expand Up @@ -528,11 +539,17 @@ function(abacus_apply_build_options target)
DIRECTORY "${_source_dir}"
PROPERTY ABACUS_LOCAL_FEATURE_DEFINITIONS)
get_target_property(_kept "${target}" ABACUS_KEPT_FEATURE_DEFINITIONS)
get_target_property(_dropped "${target}" ABACUS_DROPPED_FEATURE_DEFINITIONS)

if(_kept)
# A target may opt back into definitions its directory disables.
list(REMOVE_ITEM _disabled ${_kept})
endif()
if(_dropped)
# A target may drop definitions its directory keeps, so the test source
# matches the object library it exercises.
list(APPEND _disabled ${_dropped})
endif()
if(_disabled)
# Filter after conditional definitions have been evaluated.
string(JOIN "|" _disabled_regex ${_disabled})
Expand Down
12 changes: 6 additions & 6 deletions source/Makefile.Objects
Original file line number Diff line number Diff line change
Expand Up @@ -943,12 +943,15 @@ OBJS_MODULE_RI=conv_coulomb_pot_k.o\
symm_rotation.o\
symm_rot_out.o\
gaussian_abfs.o\
direct_2d_coulomb.o\
mix_matrix.o\
exx_lri_detail.o\
exx_workspace.o\
ri_util.o\
singular_value.o\

OBJS_MODULE_RPA=rpa_lri.o\
OBJS_MODULE_RPA=rpa_abfs_preorth.o\
rpa_lri.o\
rpa_lri_detail.o\
rpa_lri_band_io.o\
rpa_lri_coeff_v1.o\
Expand All @@ -961,11 +964,8 @@ OBJS_MODULE_RPA=rpa_lri.o\
rpa_lri_overlap_io.o\
rpa_lri_output.o\
rpa_lri_bz.o\
rpa_lri_sym.o\
librpa_bz_sampling.o\
librpa_stru_symmetry.o\
librpa_stru_units.o\
rpa_lri_coeff_io.o\
librpa_bz_sampling.o\
rpa_lri_coeff_io.o\
rpa_lri_velocity.o\
rpa_lri_basis.o\
rpa_lri_eigenvector_v1.o\
Expand Down
64 changes: 63 additions & 1 deletion source/source_base/element_basis_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

#include "element_basis_index.h"

#include <stdexcept>
#include <vector>

namespace ModuleBase
{

Expand Down Expand Up @@ -37,4 +40,63 @@ Element_Basis_Index::construct_index( const Range &range )
return index;
}

}
Element_Basis_Index::IndexLNM
Element_Basis_Index::construct_index( const Range &range, const IndexPermutation &old_to_new )
{
if( old_to_new.empty() )
{
return construct_index(range);
}

IndexLNM index;
index.resize( range.size() );
for( std::size_t T=0; T!=range.size(); ++T )
{
std::size_t count_size = 0;
for( std::size_t L=0; L!=range[T].size(); ++L )
{
count_size += range[T][L].N * range[T][L].M;
}

const bool use_permutation = (T < old_to_new.size() && !old_to_new[T].empty());
if( use_permutation )
{
if( old_to_new[T].size() != count_size )
{
throw std::invalid_argument("Element_Basis_Index::construct_index permutation size mismatch.");
}

std::vector<bool> seen(count_size, false);
for( const std::size_t new_index : old_to_new[T] )
{
if( new_index >= count_size || seen[new_index] )
{
throw std::invalid_argument("Element_Basis_Index::construct_index permutation is not bijective.");
}
seen[new_index] = true;
}
}

std::size_t count = 0;
index[T].resize( range[T].size() );
for( std::size_t L=0; L!=range[T].size(); ++L )
{
index[T][L].resize( range[T][L].N );
for( std::size_t N=0; N!=range[T][L].N; ++N )
{
index[T][L][N].resize( range[T][L].M );
for( std::size_t M=0; M!=range[T][L].M; ++M )
{
index[T][L][N][M] = use_permutation ? old_to_new[T][count] : count;
++count;
}
}
index[T][L].N = range[T][L].N;
index[T][L].M = range[T][L].M;
}
index[T].count_size = count_size;
}
return index;
}

}
48 changes: 25 additions & 23 deletions source/source_base/element_basis_index.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,36 @@ namespace Element_Basis_Index
{
//private:

struct NM
{
public:
std::size_t N;
std::size_t M;
};

class Index_TL: public std::vector<std::vector<std::size_t>>
{
public:
std::size_t N;
std::size_t M;
};

class Index_T: public std::vector<Index_TL>
{
public:
std::size_t count_size;
};
struct NM
{
public:
std::size_t N;
std::size_t M;
};

class Index_TL: public std::vector<std::vector<std::size_t>>
{
public:
std::size_t N;
std::size_t M;
};

class Index_T: public std::vector<Index_TL>
{
public:
std::size_t count_size;
};

//public:

typedef std::vector<std::vector<NM>> Range; // range[T][L]
typedef std::vector<Index_T> IndexLNM; // index[T][L][N][M]
typedef std::vector<std::vector<NM>> Range; // range[T][L]
typedef std::vector<Index_T> IndexLNM; // index[T][L][N][M]
typedef std::vector<std::vector<std::size_t>> IndexPermutation; // old_to_new[T][old_index]

extern IndexLNM construct_index( const Range &range );
extern IndexLNM construct_index( const Range &range );
extern IndexLNM construct_index( const Range &range, const IndexPermutation &old_to_new );
}

}

#endif
#endif
30 changes: 30 additions & 0 deletions source/source_base/parallel_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,36 @@ void bcast_char(char* object, const int n)
}

#ifdef __MPI
void bcast_int(int* object, const int n, const MPI_Comm mpi_comm, const int root)
{
MPI_Bcast(object, n, MPI_INT, root, mpi_comm);
}

void bcast_double(double* object, const int n, const MPI_Comm mpi_comm, const int root)
{
MPI_Bcast(object, n, MPI_DOUBLE, root, mpi_comm);
}

int my_rank(const MPI_Comm mpi_comm)
{
int rank = 0;
MPI_Comm_rank(mpi_comm, &rank);
return rank;
}

int nproc(const MPI_Comm mpi_comm)
{
int size = 1;
MPI_Comm_size(mpi_comm, &size);
return size;
}

void barrier(const MPI_Comm mpi_comm)
{
MPI_Barrier(mpi_comm);
}

// bcast single on an explicit communicator, from the communicator's rank 0
void bcast_mpi_offset(MPI_Offset& object, const MPI_Comm& comm)
{
MPI_Bcast(&object, 1, MPI_OFFSET, 0, comm);
Expand Down
13 changes: 12 additions & 1 deletion source/source_base/parallel_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ void bcast_int(int& object);
void bcast_bool(bool& object);

#ifdef __MPI
//(3) bcast single on an explicit communicator, from the communicator's rank 0
//(3) communicator- and root-aware counterparts for the sub-communicator
// stages (RI/RPA) that run outside MPI_COMM_WORLD and outside root 0
void bcast_int(int* object, const int n, const MPI_Comm mpi_comm, const int root);
void bcast_double(double* object, const int n, const MPI_Comm mpi_comm, const int root);
/// @brief Rank of the caller on an arbitrary communicator.
int my_rank(const MPI_Comm mpi_comm);
/// @brief Number of ranks on an arbitrary communicator.
int nproc(const MPI_Comm mpi_comm);
/// @brief Barrier on an arbitrary communicator.
void barrier(const MPI_Comm mpi_comm);

//(4) bcast single on an explicit communicator, from the communicator's rank 0
void bcast_bool(bool& object, const MPI_Comm& comm);
void bcast_mpi_offset(MPI_Offset& object, const MPI_Comm& comm);
#endif
Expand Down
76 changes: 76 additions & 0 deletions source/source_base/parallel_reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const MPI_Datatype Parallel_Reduce::MPI_Type<float>::value = MPI_FLOAT;
const MPI_Datatype Parallel_Reduce::MPI_Type<std::complex<double>>::value = MPI_DOUBLE_COMPLEX;
const MPI_Datatype Parallel_Reduce::MPI_Type<std::complex<float>>::value = MPI_C_FLOAT_COMPLEX;
const MPI_Datatype Parallel_Reduce::MPI_Type<long long>::value = MPI_LONG_LONG;
const MPI_Datatype Parallel_Reduce::MPI_Type<unsigned long long>::value = MPI_UNSIGNED_LONG_LONG;
#endif

template <typename T>
Expand Down Expand Up @@ -126,6 +127,81 @@ template void Parallel_Reduce::reduce_max<double>(double&);
template void Parallel_Reduce::reduce_min_pool<double>(const int&, double&);
template void Parallel_Reduce::reduce_max_pool<double>(const int&, double&);

#ifdef __MPI
template <typename T>
void Parallel_Reduce::reduce_all(const MPI_Comm mpi_comm, T& object)
{
MPI_Allreduce(MPI_IN_PLACE, &object, 1, MPI_Type<T>::value, MPI_SUM, mpi_comm);
}

template <typename T>
void Parallel_Reduce::reduce_all(const MPI_Comm mpi_comm, T* object, const int n)
{
MPI_Allreduce(MPI_IN_PLACE, object, n, MPI_Type<T>::value, MPI_SUM, mpi_comm);
}

template <typename T>
void Parallel_Reduce::reduce_max(const MPI_Comm mpi_comm, T& object)
{
MPI_Allreduce(MPI_IN_PLACE, &object, 1, MPI_Type<T>::value, MPI_MAX, mpi_comm);
}

template <typename T>
void Parallel_Reduce::reduce_min(const MPI_Comm mpi_comm, T& object)
{
MPI_Allreduce(MPI_IN_PLACE, &object, 1, MPI_Type<T>::value, MPI_MIN, mpi_comm);
}

void Parallel_Reduce::reduce_max_loc(const MPI_Comm mpi_comm, double& value, int& rank)
{
struct MaxLoc
{
double value;
int rank;
};
MaxLoc local{value, rank};
MaxLoc global{};
MPI_Allreduce(&local, &global, 1, MPI_DOUBLE_INT, MPI_MAXLOC, mpi_comm);
value = global.value;
rank = global.rank;
}

void Parallel_Reduce::gather_int_all(const MPI_Comm mpi_comm, int& v, int* all)
{
assert(all != nullptr);
MPI_Allgather(&v, 1, MPI_INT, all, 1, MPI_INT, mpi_comm);
}

void Parallel_Reduce::gatherv_int_all(const MPI_Comm mpi_comm,
const int* send_buffer,
const int send_count,
int* receive_buffer,
const int* receive_counts,
const int* receive_displacements)
{
assert(receive_buffer != nullptr);
MPI_Allgatherv(send_buffer, send_count, MPI_INT, receive_buffer, receive_counts, receive_displacements,
MPI_INT, mpi_comm);
}

template void Parallel_Reduce::reduce_all<int>(const MPI_Comm, int&);
template void Parallel_Reduce::reduce_all<double>(const MPI_Comm, double&);
template void Parallel_Reduce::reduce_all<unsigned long long>(const MPI_Comm, unsigned long long&);

template void Parallel_Reduce::reduce_all<int>(const MPI_Comm, int*, const int);
template void Parallel_Reduce::reduce_all<double>(const MPI_Comm, double*, const int);
template void Parallel_Reduce::reduce_all<unsigned long long>(const MPI_Comm, unsigned long long*, const int);

template void Parallel_Reduce::reduce_max<int>(const MPI_Comm, int&);
template void Parallel_Reduce::reduce_max<double>(const MPI_Comm, double&);
template void Parallel_Reduce::reduce_max<unsigned long long>(const MPI_Comm, unsigned long long&);

template void Parallel_Reduce::reduce_min<int>(const MPI_Comm, int&);
template void Parallel_Reduce::reduce_min<double>(const MPI_Comm, double&);
template void Parallel_Reduce::reduce_min<unsigned long long>(const MPI_Comm, unsigned long long&);
#endif


void Parallel_Reduce::reduce_double_grid(double* object, const int n)
{
#ifdef __MPI
Expand Down
Loading