| 4004 | |
| 4005 | |
| 4006 | int OPS_getNumElements() |
| 4007 | { |
| 4008 | Domain* theDomain = OPS_GetDomain(); |
| 4009 | if (theDomain == 0) return -1; |
| 4010 | |
| 4011 | int nEles = theDomain->getNumElements(); |
| 4012 | int size = 1; |
| 4013 | |
| 4014 | if (OPS_SetIntOutput(&size, &nEles, false) < 0) { |
| 4015 | opserr << "WARNING failed to set output\n"; |
| 4016 | return -1; |
| 4017 | } |
| 4018 | |
| 4019 | return 0; |
| 4020 | } |
| 4021 | |
| 4022 | // Sensitivity:END ///////////////////////////////////////////// |
no test coverage detected