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

Function OPS_NewmarkExplicit

SRC/analysis/integrator/NewmarkExplicit.cpp:46–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46void* OPS_NewmarkExplicit(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) {
53 opserr << "WARNING - incorrect number of args want NewmarkExplicit $gamma\n";
54 return 0;
55 }
56
57 double gamma;
58 if (OPS_GetDouble(&argc, &gamma) != 0) {
59 opserr << "WARNING - invalid args want NewmarkExplicit $gamma\n";
60 return 0;
61 }
62
63 theIntegrator = new NewmarkExplicit(gamma);
64
65 if (theIntegrator == 0)
66 opserr << "WARNING - out of memory creating NewmarkExplicit integrator\n";
67
68 return theIntegrator;
69}
70
71
72NewmarkExplicit::NewmarkExplicit()

Callers 2

OPS_IntegratorFunction · 0.85
specifyIntegratorFunction · 0.85

Calls 1

Tested by

no test coverage detected