@@ -198,14 +198,14 @@ int32_t ompi_datatype_set_args( ompi_datatype_t* pData,
198198 }
199199
200200 case MPI_COMBINER_DARRAY : {
201- size_t count = opal_count_array_get (counts [0 ], 0 );
201+ size_t ndim = opal_count_array_get (counts [2 ], 0 );
202202 copy_count_array (1 , & pArgs -> i , & pArgs -> l , counts [0 ]);
203203 copy_count_array (1 , & pArgs -> i , & pArgs -> l , counts [1 ]);
204204 copy_count_array (1 , & pArgs -> i , & pArgs -> l , counts [2 ]);
205- copy_count_array (count , & pArgs -> i , & pArgs -> l , counts [3 ]);
206- copy_count_array (count , & pArgs -> i , & pArgs -> l , counts [4 ]);
207- copy_count_array (count , & pArgs -> i , & pArgs -> l , counts [5 ]);
208- copy_count_array (count , & pArgs -> i , & pArgs -> l , counts [6 ]);
205+ copy_count_array (ndim , & pArgs -> i , & pArgs -> l , counts [3 ]);
206+ copy_count_array (ndim , & pArgs -> i , & pArgs -> l , counts [4 ]);
207+ copy_count_array (ndim , & pArgs -> i , & pArgs -> l , counts [5 ]);
208+ copy_count_array (ndim , & pArgs -> i , & pArgs -> l , counts [6 ]);
209209 copy_count_array (1 , & pArgs -> i , & pArgs -> l , counts [7 ]);
210210 break ;
211211 }
0 commit comments