@@ -136,7 +136,7 @@ void HeatTransfer::exchange(MPI_Comm comm)
136
136
{
137
137
// Build a custom MPI type for the column vector to allow strided access
138
138
MPI_Datatype tColumnVector;
139
- MPI_Type_vector (m_s.ndx + 2 , 1 , m_s.ndy + 2 , MPI_REAL8 , &tColumnVector);
139
+ MPI_Type_vector (m_s.ndx + 2 , 1 , m_s.ndy + 2 , MPI_DOUBLE , &tColumnVector);
140
140
MPI_Type_commit (&tColumnVector);
141
141
142
142
// Exchange ghost cells, in the order left-right-up-down
@@ -184,14 +184,14 @@ void HeatTransfer::exchange(MPI_Comm comm)
184
184
{
185
185
// std::cout << "Rank " << m_s.rank << " send down to rank "
186
186
// << m_s.rank_down << std::endl;
187
- MPI_Send (m_TCurrent[m_s.ndx ], m_s.ndy + 2 , MPI_REAL8 , m_s.rank_down ,
187
+ MPI_Send (m_TCurrent[m_s.ndx ], m_s.ndy + 2 , MPI_DOUBLE , m_s.rank_down ,
188
188
tag, comm);
189
189
}
190
190
if (m_s.rank_up >= 0 )
191
191
{
192
192
// std::cout << "Rank " << m_s.rank << " receive from above from rank "
193
193
// << m_s.rank_up << std::endl;
194
- MPI_Recv (m_TCurrent[0 ], m_s.ndy + 2 , MPI_REAL8 , m_s.rank_up , tag, comm,
194
+ MPI_Recv (m_TCurrent[0 ], m_s.ndy + 2 , MPI_DOUBLE , m_s.rank_up , tag, comm,
195
195
&status);
196
196
}
197
197
@@ -202,13 +202,13 @@ void HeatTransfer::exchange(MPI_Comm comm)
202
202
// std::cout << "Rank " << m_s.rank << " send up to rank " <<
203
203
// m_s.rank_up
204
204
// << std::endl;
205
- MPI_Send (m_TCurrent[1 ], m_s.ndy + 2 , MPI_REAL8 , m_s.rank_up , tag, comm);
205
+ MPI_Send (m_TCurrent[1 ], m_s.ndy + 2 , MPI_DOUBLE , m_s.rank_up , tag, comm);
206
206
}
207
207
if (m_s.rank_down >= 0 )
208
208
{
209
209
// std::cout << "Rank " << m_s.rank << " receive from below from rank "
210
210
// << m_s.rank_down << std::endl;
211
- MPI_Recv (m_TCurrent[m_s.ndx + 1 ], m_s.ndy + 2 , MPI_REAL8 , m_s.rank_down ,
211
+ MPI_Recv (m_TCurrent[m_s.ndx + 1 ], m_s.ndy + 2 , MPI_DOUBLE , m_s.rank_down ,
212
212
tag, comm, &status);
213
213
}
214
214
}
0 commit comments