Changeset 2263 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc
- Timestamp:
- Nov 14, 2002, 8:12:02 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r2218 r2263 1394 1394 return; 1395 1395 } 1396 Vector * vx = dynamic_cast<Vector *>(obj); 1397 if (vx == NULL) { 1398 cout << "NamedObjMgr::DisplayVector() Error " << nomvx << " not a Vector ! " << endl; 1396 //Vector * vx = dynamic_cast<Vector *>(obj); 1397 BaseArray* bax = dynamic_cast<BaseArray *>(obj); 1398 if (bax == NULL) { 1399 cout << "NamedObjMgr::DisplayVector() Error " << nomvx << " not a BaseArray ! " << endl; 1399 1400 return; 1400 1401 } … … 1405 1406 return; 1406 1407 } 1407 Vector * vy = dynamic_cast<Vector*>(obj);1408 if ( vy == NULL) {1409 cout << "NamedObjMgr::DisplayVector() Error " << nomvy << " not a Vector! " << endl;1408 BaseArray* bay = dynamic_cast<BaseArray *>(obj); 1409 if (bay == NULL) { 1410 cout << "NamedObjMgr::DisplayVector() Error " << nomvy << " not a BaseArray ! " << endl; 1410 1411 return; 1411 1412 } 1412 1413 1413 1414 Vector vx = *bax; 1415 Vector vy = *bay; 1414 1416 Vector * cvx, * cvy; 1415 1417 1416 if (vx ->Size() != vy->Size()) {1418 if (vx.Size() != vy.Size()) { 1417 1419 cout << "NamedObjMgr::DisplayVector() Warning / Vx.Size() != Vy.Size() " << endl; 1418 if (vx ->Size() < vy->Size()) {1419 cvx = new Vector( *vx);1420 cvy = new Vector(vy ->SubVector(Range(0, 0, vx->Size()-1)));1420 if (vx.Size() < vy.Size()) { 1421 cvx = new Vector(vx); 1422 cvy = new Vector(vy.SubVector(Range(0, 0, vx.Size()-1))); 1421 1423 } 1422 1424 else { 1423 cvx = new Vector(vx ->SubVector(Range(0, 0, vy->Size()-1)));1424 cvy = new Vector( *vy);1425 cvx = new Vector(vx.SubVector(Range(0, 0, vy.Size()-1))); 1426 cvy = new Vector(vy); 1425 1427 } 1426 1428 } 1427 1429 else { 1428 cvx = new Vector( *vx);1429 cvy = new Vector( *vy);1430 cvx = new Vector(vx); 1431 cvy = new Vector(vy); 1430 1432 } 1431 1433
Note:
See TracChangeset
for help on using the changeset viewer.