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

Function OPS_ArcLength1

SRC/analysis/integrator/ArcLength1.cpp:51–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49#include <elementAPI.h>
50
51void* OPS_ArcLength1()
52{
53 double arcLength;
54 if (OPS_GetNumRemainingInputArgs() < 2) {
55 opserr << "WARNING integrator ArcLength arcLength alpha \n";
56 return 0;
57 }
58
59 int numdata = 1;
60 if (OPS_GetDoubleInput(&numdata, &arcLength) < 0) {
61 opserr << "WARNING integrator ArcLength failed to read arc length\n";
62 return 0;
63 }
64 if (OPS_GetNumRemainingInputArgs() > 0) {
65 double alpha;
66 if (OPS_GetDoubleInput(&numdata, &alpha) < 0) {
67 opserr << "WARNING integrator ArcLength failed to read alpha\n";
68 return 0;
69 }
70 return new ArcLength1(arcLength,alpha);
71 } else {
72 return new ArcLength1(arcLength);
73 }
74}
75
76ArcLength1::ArcLength1(double arcLength, double alpha)
77:StaticIntegrator(INTEGRATOR_TAGS_ArcLength1),

Callers 1

OPS_IntegratorFunction · 0.85

Calls 2

OPS_GetDoubleInputFunction · 0.50

Tested by

no test coverage detected