MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / sendSelf

Method sendSelf

SRC/domain/pattern/drm/H5DRMLoadPattern.cpp:1507–1536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1505
1506
1507int
1508H5DRMLoadPattern::sendSelf(int commitTag, Channel & theChannel)
1509{
1510
1511 H5DRMout << "sending filename: " << dataset_fname << endl;
1512
1513 static Vector data(3);
1514 data(0) = cFactor;
1515 data(1) = crd_scale;
1516 data(2) = distance_tolerance;
1517
1518 char drmfilename[H5DRM_MAX_FILENAME];
1519 strcpy(drmfilename, dataset_fname.c_str());
1520 Message filename_msg(drmfilename, H5DRM_MAX_FILENAME);
1521
1522 if (theChannel.sendMsg(0, 0, filename_msg) < 0)
1523 {
1524 cerr << "H5DRMLoadPattern::sendSelf - error sending filename_msg\n";
1525 return -1;
1526 }
1527
1528 if (theChannel.sendVector(0, 0, data) < 0)
1529 {
1530 cerr << "H5DRMLoadPattern::sendSelf -- error sending data\n";
1531 return -1;
1532 }
1533
1534
1535 return 0;
1536}
1537
1538int
1539H5DRMLoadPattern::recvSelf(int commitTag, Channel & theChannel,

Callers

nothing calls this directly

Calls 2

sendMsgMethod · 0.45
sendVectorMethod · 0.45

Tested by

no test coverage detected