Skip to content

Commit

Permalink
Merge pull request libMesh#228 from libMesh/shadow_fixes
Browse files Browse the repository at this point in the history
Fix -Wshadow warnings
  • Loading branch information
roystgnr committed Apr 22, 2014
2 parents cd94239 + aded2d9 commit bd133a3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions include/parallel/parallel_implementation.h
Original file line number Diff line number Diff line change
Expand Up @@ -3371,15 +3371,15 @@ inline void Communicator::receive_packed_range
*/
template <typename T1, typename T2>
inline void Communicator::send_receive (const unsigned int send_tgt,
T1 &send,
T1 &send_val,
const unsigned int recv_source,
T2 &recv,
T2 &recv_val,
const MessageTag &,
const MessageTag &) const
{
libmesh_assert_equal_to (send_tgt, 0);
libmesh_assert_equal_to (recv_source, 0);
recv = send;
recv_val = send_val;
}

/**
Expand All @@ -3401,23 +3401,23 @@ inline void Communicator::send_receive_packed_range
*/
template <typename T>
inline void Communicator::gather(const unsigned int root_id,
T send,
std::vector<T> &recv) const
T send_val,
std::vector<T> &recv_val) const
{
libmesh_assert_equal_to (root_id, 0);
recv.resize(1);
recv[0] = send;
recv_val.resize(1);
recv_val[0] = send_val;
}

template <typename T>
inline void Communicator::gather(const unsigned int root_id, std::vector<T>&) const
{ libmesh_assert_equal_to(root_id, 0); }

template <typename T>
inline void Communicator::allgather(T send, std::vector<T> &recv) const
inline void Communicator::allgather(T send_val, std::vector<T> &recv_val) const
{
recv.resize(1);
recv[0] = send;
recv_val.resize(1);
recv_val[0] = send_val;
}

template <typename T>
Expand Down

0 comments on commit bd133a3

Please sign in to comment.