MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / OPS_LinearAlgorithm

Function OPS_LinearAlgorithm

SRC/analysis/algorithm/equiSolnAlgo/Linear.cpp:55–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53#include <string>
54
55void* 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
76Linear::Linear(int theTangent, int Fact)

Callers 1

OPS_AlgorithmFunction · 0.85

Calls 2

OPS_GetStringFunction · 0.50

Tested by

no test coverage detected