本文整理汇总了C++中DataStream::givePackSizeOfDouble方法的典型用法代码示例。如果您正苦于以下问题:C++ DataStream::givePackSizeOfDouble方法的具体用法?C++ DataStream::givePackSizeOfDouble怎么用?C++ DataStream::givePackSizeOfDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataStream
的用法示例。
在下文中一共展示了DataStream::givePackSizeOfDouble方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: estimateMaxPackSize
int
FreeWarping :: estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType)
{
int count = 0, pcount = 0;
Domain *domain = this->giveDomain(1);
if ( packUnpackType == 0 ) { ///@todo Fix this old ProblemCommMode__NODE_CUT value
for ( int map: commMap ) {
for ( Dof *jdof: *domain->giveDofManager( map ) ) {
if ( jdof->isPrimaryDof() && ( jdof->__giveEquationNumber() ) ) {
count++;
} else {
pcount++;
}
}
}
// --------------------------------------------------------------------------------
// only pcount is relevant here, since only prescribed components are exchanged !!!!
// --------------------------------------------------------------------------------
return ( buff.givePackSizeOfDouble(1) * pcount );
} else if ( packUnpackType == 1 ) {
for ( int map: commMap ) {
count += domain->giveElement( map )->estimatePackSize(buff);
}
return count;
}
return 0;
}
示例2: estimateMaxPackSize
int
NonLinearDynamic :: estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType)
{
int count = 0, pcount = 0;
Domain *domain = this->giveDomain(1);
if ( packUnpackType == 0 ) { ///@todo Fix this old ProblemCommMode__NODE_CUT value
for ( int map: commMap ) {
DofManager *dman = domain->giveDofManager( map );
for ( Dof *dof: *dman ) {
if ( dof->isPrimaryDof() && ( dof->__giveEquationNumber() ) ) {
count++;
} else {
pcount++;
}
}
}
return ( buff.givePackSizeOfDouble(1) * max(count, pcount) );
} else if ( packUnpackType == 1 ) {
for ( int map: commMap ) {
count += domain->giveElement( map )->estimatePackSize(buff);
}
return count;
}
return 0;
}
示例3: estimatePackSize
int
TrabBoneNL3D :: estimatePackSize(DataStream &buff, GaussPoint *ip)
{
abort();
return 0;
#if 0
// Note: nlStatus localStrainVectorForAverage memeber must be properly sized!
// IDNLMaterialStatus *nlStatus = (IDNLMaterialStatus*) this -> giveStatus (ip);
return buff.givePackSizeOfDouble(1);
#endif
}