| 53 | #include <string> |
| 54 | |
| 55 | void* OPS_LinearAlgorithm() |
| 56 | { |
| 57 | int formTangent = CURRENT_TANGENT; |
| 58 | int factorOnce = 0; |
| 59 | |
| 60 | while(OPS_GetNumRemainingInputArgs() > 0) { |
| 61 | std::string type = OPS_GetString(); |
| 62 | if(type=="-secant" || type=="-Secant") { |
| 63 | formTangent = CURRENT_SECANT; |
| 64 | } else if(type=="-initial" || type=="-Initial") { |
| 65 | formTangent = INITIAL_TANGENT; |
| 66 | } else if(type=="-factorOnce" || type=="-FactorOnce") { |
| 67 | factorOnce = 1; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | return new Linear(formTangent, factorOnce); |
| 72 | |
| 73 | } |
| 74 | |
| 75 | // Constructor |
| 76 | Linear::Linear(int theTangent, int Fact) |
no test coverage detected