Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
with:
repo-name: 'redev-openmpi'
repo-path: 'SCOREC/redev'
repo-ref: '1e4c876f786b420f060695ba2c1079447e975b69'
repo-ref: 'v4.3.2'
cache: true
options: '-DCMAKE_CXX_COMPILER=`which mpicxx`
-DMPIEXEC_EXECUTABLE=`which mpirun`
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cmake-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ jobs:
with:
repo-name: 'redev'
repo-path: 'SCOREC/redev'
repo-ref: '1e4c876f786b420f060695ba2c1079447e975b69'
repo-ref: 'v4.3.2'
cache: true
cache-suffix: ${{ matrix.python && '-shared' || '' }}
options: '-DCMAKE_CXX_COMPILER=`which mpicxx`
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ option(PCMS_PETSC_LINK_STATIC "Use pkg-config --static results for PETSc"
# interfaces this is important because adios2 build with clang/gfortran is
# broken
if(PCMS_ENABLE_COUPLER)
pcms_find_package(COUPLER redev 4.3.0)
pcms_find_package(COUPLER redev 4.3.2)
endif()

if (PCMS_ENABLE_PYTHON)
Expand Down
2 changes: 1 addition & 1 deletion config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
find_dependency(Kokkos CONFIG)
if(@PCMS_ENABLE_COUPLER@)
# the coupler's public headers use redev (and through it ADIOS2 and MPI)
find_dependency(redev CONFIG)
find_dependency(redev 4.3.2 CONFIG)
find_dependency(ADIOS2 CONFIG)
endif()
# MPI is public for the coupler and the C/Fortran APIs, private otherwise
Expand Down
10 changes: 7 additions & 3 deletions include/pcms/coupler/detail/field_communicator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ class FieldCommunicator
// Current implementation requires that Receive is always called in Sync
// mode because we make an immediate call to deserialize after a call to
// receive.
auto data = comm_.Recv(redev::Mode::Synchronous);
serializer_.Deserialize(field_, detail::make_const_array_view(data),
layout_comm_.GetPermutationArray());
receive_buffer_.resize(comm_.GetReceiveCount());
comm_.Recv(receive_buffer_.data(), receive_buffer_.size(),
redev::Mode::Synchronous);
serializer_.Deserialize(
field_, detail::make_const_array_view(receive_buffer_),
layout_comm_.GetPermutationArray());
// Deserialize writes owned DOF holders only, so ghost copies still hold
// their previous values. Anything that evaluates the field reads ghosts
// (an owned element can have vertices another rank owns), so bring them up
Expand All @@ -67,6 +70,7 @@ class FieldCommunicator

private:
std::vector<T> comm_buffer_;
std::vector<T> receive_buffer_;
redev::BidirectionalComm<T> comm_;
FieldLayoutCommunicator& layout_comm_;
Field<T>& field_;
Expand Down
Loading