Skip to content

Commit

Permalink
Linter fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
acdemiralp committed Oct 20, 2023
1 parent 2afd799 commit e860aea
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions include/mpi/core/communicators/communicator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ class communicator
received_type& received,
const bool resize = false) const
{
std::int32_t local_size (container_adapter<sent_type>::size(sent));
const std::int32_t local_size (container_adapter<sent_type>::size(sent));
std::vector<std::int32_t> received_sizes(size());
all_gather(local_size, received_sizes);

Expand All @@ -1108,7 +1108,7 @@ class communicator
{
using adapter = container_adapter<type>;

std::int32_t local_size (adapter::size(data));
const std::int32_t local_size (adapter::size(data));
std::vector<std::int32_t> received_sizes(size());
all_gather(local_size, received_sizes);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class topological_communicator : public communicator
received_type& received,
const bool resize = false) const
{
std::int32_t local_size (container_adapter<sent_type>::size(sent));
const std::int32_t local_size (container_adapter<sent_type>::size(sent));
std::vector<std::int32_t> received_sizes(incoming_neighbor_count());
neighbor_all_gather(local_size, received_sizes);

Expand Down
6 changes: 3 additions & 3 deletions include/mpi/extensions/shared_variable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class manual_shared_variable
manual_shared_variable (const manual_shared_variable& that) = delete ;
manual_shared_variable ( manual_shared_variable&& temp) = default;
virtual ~manual_shared_variable () = default;
manual_shared_variable& operator=(const manual_shared_variable& that) = delete ;
manual_shared_variable& operator=( manual_shared_variable&& temp) = default;
manual_shared_variable& operator=(const type& value)
manual_shared_variable& operator= (const manual_shared_variable& that) = delete ;
manual_shared_variable& operator= ( manual_shared_variable&& temp) = default;
manual_shared_variable& operator= (const type& value)
{
set(value);
return *this;
Expand Down
2 changes: 1 addition & 1 deletion include/mpi/io/file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class file
{
MPI_CHECK_ERROR_CODE(MPI_File_open, (communicator.native(), filepath.c_str(), static_cast<std::int32_t>(access_mode), information.native(), &native_))
}
explicit file (MPI_File native, const bool managed = false)
explicit file (const MPI_File native, const bool managed = false)
: managed_(managed), native_(native)
{

Expand Down
2 changes: 1 addition & 1 deletion include/mpi/tool/session.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class session
{
MPI_CHECK_ERROR_CODE(MPI_T_pvar_session_create, (&native_))
}
explicit session (MPI_T_pvar_session native, const bool managed = false)
explicit session (const MPI_T_pvar_session native, const bool managed = false)
: managed_(managed), native_(native)
{

Expand Down
2 changes: 1 addition & 1 deletion include/mpi/tool/structs/enumeration_item.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace mpi::tool
{
struct enumeration_item
{
explicit enumeration_item (MPI_T_enum native, const std::int32_t index) : index(index)
explicit enumeration_item (const MPI_T_enum native, const std::int32_t index) : index(index)
{
auto name_length(0);

Expand Down
2 changes: 1 addition & 1 deletion tests/cpp_interface_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ TEST_CASE("C++ Interface")



mpi::io::file file(mpi::world_communicator, "test.txt", mpi::io::access_mode::create | mpi::io::access_mode::read_write);
const mpi::io::file file(mpi::world_communicator, "test.txt", mpi::io::access_mode::create | mpi::io::access_mode::read_write);
file.write_all(communicator_rank);
// File is freed at scope exit.

Expand Down

0 comments on commit e860aea

Please sign in to comment.