For backward compatibility
| 1463 | |
| 1464 | // For backward compatibility |
| 1465 | void* OPS_NonlinearBeamColumn() |
| 1466 | { |
| 1467 | int ndm = OPS_GetNDM(); |
| 1468 | |
| 1469 | if(OPS_GetNumRemainingInputArgs() < 5) { |
| 1470 | opserr<<"insufficient arguments:eleTag,iNode,jNode,numIntgrPts,secTag,transfTag,<-mass, massDens> <-iter,maxIters,tol> <-integration intType>\n"; |
| 1471 | return 0; |
| 1472 | } |
| 1473 | |
| 1474 | int ndf = OPS_GetNDF(); |
| 1475 | if (!(ndm == 2 && ndf == 3) && !(ndm == 3 && ndf == 6)) { |
| 1476 | opserr<<"(ndm,ndf) must be (2,3) or (3,6)\n"; |
| 1477 | return 0; |
| 1478 | } |
| 1479 | |
| 1480 | // inputs: |
| 1481 | int iData[6]; |
| 1482 | int numData = 6; |
| 1483 | if(OPS_GetIntInput(&numData,&iData[0]) < 0) { |
| 1484 | opserr << "WARNING invalid int inputs\n"; |
| 1485 | return 0; |
| 1486 | } |
| 1487 | |
| 1488 | // options |
| 1489 | double mass = 0.0, tol=1e-12; |
| 1490 | int maxIter = 10; |
| 1491 | const char* integrationType = "Lobatto"; |
| 1492 | numData = 1; |
| 1493 | while(OPS_GetNumRemainingInputArgs() > 0) { |
| 1494 | const char* type = OPS_GetString(); |
| 1495 | if(strcmp(type,"-iter") == 0) { |
| 1496 | if(OPS_GetNumRemainingInputArgs() > 1) { |
| 1497 | if(OPS_GetIntInput(&numData,&maxIter) < 0) { |
| 1498 | opserr << "WARNING invalid maxIter\n"; |
| 1499 | return 0; |
| 1500 | } |
| 1501 | if(OPS_GetDoubleInput(&numData,&tol) < 0) { |
| 1502 | opserr << "WARNING invalid tol\n"; |
| 1503 | return 0; |
| 1504 | } |
| 1505 | } |
| 1506 | } else if(strcmp(type,"-mass") == 0) { |
| 1507 | if(OPS_GetNumRemainingInputArgs() > 0) { |
| 1508 | if(OPS_GetDoubleInput(&numData,&mass) < 0) { |
| 1509 | opserr << "WARNING invalid mass\n"; |
| 1510 | return 0; |
| 1511 | } |
| 1512 | } |
| 1513 | } else if (strcmp(type,"-integration") == 0) { |
| 1514 | if(OPS_GetNumRemainingInputArgs() > 0) { |
| 1515 | integrationType = OPS_GetString(); |
| 1516 | } |
| 1517 | } |
| 1518 | } |
| 1519 | |
| 1520 | // check transf |
| 1521 | CrdTransf* theTransf = OPS_getCrdTransf(iData[5]); |
| 1522 | if(theTransf == 0) { |
nothing calls this directly
no test coverage detected