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

Function OPS_HHT

SRC/analysis/integrator/HHT.cpp:46–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

OPS_IntegratorFunction · 0.85
specifyIntegratorFunction · 0.85

Calls 1

Tested by

no test coverage detected