本文整理汇总了C++中Import::getRemoteLIDs方法的典型用法代码示例。如果您正苦于以下问题:C++ Import::getRemoteLIDs方法的具体用法?C++ Import::getRemoteLIDs怎么用?C++ Import::getRemoteLIDs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Import
的用法示例。
在下文中一共展示了Import::getRemoteLIDs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: doExport
void
DistObjectKA<Packet,LocalOrdinal,GlobalOrdinal,Node>::
doExport (const SrcDistObject& source,
const Import<LocalOrdinal,GlobalOrdinal,Node> & importer,
CombineMode CM)
{
TEUCHOS_TEST_FOR_EXCEPTION(
*getMap() != *importer.getSourceMap(), std::invalid_argument,
"doExport (reverse mode): The target object's Map "
"is not identical to the Import's source Map.");
#ifdef HAVE_TPETRA_DEBUG
{
typedef DistObjectKA<Packet,LocalOrdinal,GlobalOrdinal,Node> this_type;
const this_type* srcDistObj = dynamic_cast<const this_type*> (&source);
TEUCHOS_TEST_FOR_EXCEPTION(
srcDistObj != NULL && * (srcDistObj->getMap ()) != *importer.getTargetMap(),
std::invalid_argument,
"doExport (reverse mode): The source is a DistObject, yet its "
"Map is not identical to the Import's target Map.");
}
#endif // HAVE_TPETRA_DEBUG
size_t numSameIDs = importer.getNumSameIDs();
typedef ArrayView<const LocalOrdinal> view_type;
view_type exportLIDs = importer.getRemoteLIDs();
view_type remoteLIDs = importer.getExportLIDs();
view_type permuteToLIDs = importer.getPermuteFromLIDs();
view_type permuteFromLIDs = importer.getPermuteToLIDs();
doTransfer (source, CM, numSameIDs, permuteToLIDs, permuteFromLIDs, remoteLIDs,
exportLIDs, importer.getDistributor (), DoReverse);
}