| 40 | #include <elementAPI.h> |
| 41 | |
| 42 | void* OPS_CTestFixedNumIter() |
| 43 | { |
| 44 | if (OPS_GetNumRemainingInputArgs() < 1) { |
| 45 | opserr << "insufficient number of arguments\n"; |
| 46 | return 0; |
| 47 | } |
| 48 | |
| 49 | // maxIter |
| 50 | int numData = OPS_GetNumRemainingInputArgs(); |
| 51 | if (numData > 3) numData = 3; |
| 52 | int data[3] = { 0,0,2 }; |
| 53 | if (OPS_GetIntInput(&numData, &data[0]) < 0) { |
| 54 | opserr << "WARNING FixedNumIter failed to read int values\n"; |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | return new CTestFixedNumIter(data[0], data[1], data[2]); |
| 59 | } |
| 60 | |
| 61 | |
| 62 | CTestFixedNumIter::CTestFixedNumIter() |
no test coverage detected