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

Function OPS_HHTExplicit_TP

SRC/analysis/integrator/HHTExplicit_TP.cpp:46–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46void * OPS_HHTExplicit_TP(void)
47{
48 // pointer to an integrator that will be returned
49 TransientIntegrator *theIntegrator = 0;
50
51 int argc = OPS_GetNumRemainingInputArgs();
52 if (argc < 1 || argc > 2) {
53 opserr << "WARNING - incorrect number of args want HHTExplicit_TP $alpha\n";
54 opserr << " or HHTExplicit_TP $alpha $gamma\n";
55 return 0;
56 }
57
58 double dData[2];
59 if (OPS_GetDouble(&argc, dData) != 0) {
60 opserr << "WARNING - invalid args want HHTExplicit_TP $alpha\n";
61 opserr << " or HHTExplicit_TP $alpha $gamma\n";
62 return 0;
63 }
64
65 if (argc == 1)
66 theIntegrator = new HHTExplicit_TP(dData[0]);
67 else if (argc == 2)
68 theIntegrator = new HHTExplicit_TP(dData[0], dData[1]);
69
70 if (theIntegrator == 0)
71 opserr << "WARNING - out of memory creating HHTExplicit_TP integrator\n";
72
73 return theIntegrator;
74}
75
76
77HHTExplicit_TP::HHTExplicit_TP()

Callers 2

OPS_IntegratorFunction · 0.85
specifyIntegratorFunction · 0.85

Calls 1

Tested by

no test coverage detected