From d2570d72427f14befadd398adf044531df5d0c26 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Fri, 26 Aug 2005 14:46:00 +0000 Subject: Carpet: Remove some unnecessary static_casts darcs-hash:20050826144641-891bb-1649b226dc652d71322f4339a55db82c578f88a4.gz --- Carpet/Carpet/src/MultiModel.cc | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'Carpet/Carpet/src/MultiModel.cc') diff --git a/Carpet/Carpet/src/MultiModel.cc b/Carpet/Carpet/src/MultiModel.cc index 35bd17fb3..6bff42425 100644 --- a/Carpet/Carpet/src/MultiModel.cc +++ b/Carpet/Carpet/src/MultiModel.cc @@ -32,9 +32,8 @@ namespace Carpet int const length = model.length(); vector lengths (num_procs); - MPI_Allgather (const_cast (static_cast (& length)), - 1, MPI_INT, - static_cast (& lengths.front()), 1, MPI_INT, + MPI_Allgather (const_cast (& length), 1, MPI_INT, + & lengths.front(), 1, MPI_INT, world); // Allocate space for all model strings @@ -49,14 +48,10 @@ namespace Carpet // Gather all model strings vector models_buffer (total_length); - MPI_Allgatherv (const_cast - (static_cast (model.c_str())), - length, MPI_CHAR, - static_cast (& models_buffer.front()), - const_cast - (static_cast (& lengths.front())), - const_cast - (static_cast (& offsets.front())), + MPI_Allgatherv (const_cast (model.c_str()), length, MPI_CHAR, + & models_buffer.front(), + const_cast (& lengths.front()), + const_cast (& offsets.front()), MPI_CHAR, world); -- cgit v1.2.3