int
ElasticWarpingShearSection2d::sendSelf(int commitTag, Channel &theChannel)
{
  int res = 0;
  
  static Vector data(14);
  
  int dataTag = this->getDbTag();
  
  data(0) = this->getTag();
  data(1) = E;
  data(2) = A;
  data(3) = I;    
  data(4) = G;    
  data(5) = alpha;  
  data(6) = J;
  data(7) = B;
  data(8) = C;
  data(9) =  eCommit(0);
  data(10) = eCommit(1);
  data(11) = eCommit(2);
  data(12) = eCommit(3);
  data(13) = eCommit(4);
  
  res += theChannel.sendVector(dataTag, commitTag, data);
  if (res<0) {
    opserr << "ElasticWarpingShearSection2d::sendSelf -- failed to send data\n";
    return res;
  }
  
  return res;
}
int
ElasticWarpingShearSection2d::recvSelf(int commitTag, Channel &theChannel,
				FEM_ObjectBroker &theBroker)
{
  int res = 0;

  static Vector data(14);
  
  int dataTag = this->getDbTag();
  
  res += theChannel.recvVector(dataTag, commitTag, data);
  if(res < 0) {
    opserr << "ElasticWarpingShearSection2d::recvSelf -- failed to receive data\n";
    return res;
  }
  
  this->setTag((int)data(0));
  data(1) = E;
  data(2) = A;
  data(3) = I;    
  data(4) = G;    
  data(5) = alpha;  
  data(6) = J;
  data(7) = B;
  data(8) = C;
  data(9) =  eCommit(0);
  data(10) = eCommit(1);
  data(11) = eCommit(2);
  data(12) = eCommit(3);
  data(13) = eCommit(4);
  
  return res;
}
Example #3
0
int
ElasticShearSection2d::recvSelf(int commitTag, Channel &theChannel,
				FEM_ObjectBroker &theBroker)
{
  int res = 0;

  static Vector data(9);
  
  int dataTag = this->getDbTag();
  
  res += theChannel.recvVector(dataTag, commitTag, data);
  if(res < 0) {
    opserr << "ElasticShearSection2d::recvSelf -- failed to receive data\n";
    return res;
  }
  
  this->setTag((int)data(0));
  E = data(1);
  A = data(2);
  I = data(3);
  G = data(4);
  alpha = data(5);
  eCommit(0) = data(6);
  eCommit(1) = data(7);
  eCommit(2) = data(8);
  
  return res;
}