When we finish one of the loops take care of the index of the begining of the loop. If it's -1 then we just complete the full datatype ... therefore we have to do something special.
This commit was SVN r8040.
Этот коммит содержится в:
родитель
2d9c509add
Коммит
c63e4dcef9
@ -164,8 +164,12 @@ int ompi_convertor_generic_simple_position( ompi_convertor_t* pConvertor,
|
|||||||
pStack--;
|
pStack--;
|
||||||
pos_desc++;
|
pos_desc++;
|
||||||
} else {
|
} else {
|
||||||
assert( DT_LOOP == description[pStack->index].loop.common.type );
|
if( pStack->index == -1 ) {
|
||||||
pStack->disp += description[pStack->index].loop.extent;
|
pStack->disp += (pConvertor->pDesc->ub - pConvertor->pDesc->lb);
|
||||||
|
} else {
|
||||||
|
assert( DT_LOOP == description[pStack->index].loop.common.type );
|
||||||
|
pStack->disp += description[pStack->index].loop.extent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
base_pointer = pConvertor->pBaseBuf + pStack->disp;
|
base_pointer = pConvertor->pBaseBuf + pStack->disp;
|
||||||
UPDATE_INTERNAL_COUNTERS( description, pos_desc, pElem, count_desc );
|
UPDATE_INTERNAL_COUNTERS( description, pos_desc, pElem, count_desc );
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user