diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-08-26 14:46:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-08-26 14:46:00 +0000 |
commit | d2570d72427f14befadd398adf044531df5d0c26 (patch) | |
tree | 6001164fc1d952bde5d4013df38286c53464cec2 /Carpet/Carpet/src/MultiModel.cc | |
parent | d6849480613bc591e9eb63ff896331eef12eec90 (diff) |
Carpet: Remove some unnecessary static_casts
darcs-hash:20050826144641-891bb-1649b226dc652d71322f4339a55db82c578f88a4.gz
Diffstat (limited to 'Carpet/Carpet/src/MultiModel.cc')
-rw-r--r-- | Carpet/Carpet/src/MultiModel.cc | 17 |
1 files changed, 6 insertions, 11 deletions
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 <int> lengths (num_procs); - MPI_Allgather (const_cast <void *> (static_cast <void const *> (& length)), - 1, MPI_INT, - static_cast <void *> (& lengths.front()), 1, MPI_INT, + MPI_Allgather (const_cast <int *> (& 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 <char> models_buffer (total_length); - MPI_Allgatherv (const_cast <void *> - (static_cast <void const *> (model.c_str())), - length, MPI_CHAR, - static_cast <void *> (& models_buffer.front()), - const_cast <int *> - (static_cast <int const *> (& lengths.front())), - const_cast <int *> - (static_cast <int const *> (& offsets.front())), + MPI_Allgatherv (const_cast <char *> (model.c_str()), length, MPI_CHAR, + & models_buffer.front(), + const_cast <int *> (& lengths.front()), + const_cast <int *> (& offsets.front()), MPI_CHAR, world); |