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

Function OPS_TimeSeriesIntegrator

SRC/domain/pattern/TimeSeriesIntegrator.cpp:41–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39void* OPS_SimpsonTimeSeriesIntegrator();
40
41void* OPS_TimeSeriesIntegrator()
42{
43 void *seriesIntegrator = 0;
44
45 if (OPS_GetNumRemainingInputArgs() < 1) {
46 opserr << "WARNING TimeSeriesIntegrator type is required\n";
47 return 0;
48 }
49
50 const char* type = OPS_GetString();
51 if (strcmp(type,"Trapezoidal") == 0) {
52 seriesIntegrator = (TimeSeriesIntegrator*)OPS_TrapezoidalTimeSeriesIntegrator();
53
54 } else if (strcmp(type,"Simpson") == 0) {
55 seriesIntegrator = (TimeSeriesIntegrator*)OPS_SimpsonTimeSeriesIntegrator();
56
57 } else {
58 // type of load pattern type unknown
59 opserr << "WARNING unknown TimeSeriesIntegrator type " << type << " - ";
60 opserr << " SeriesIntegratorType <type args>\n\tvalid types: Trapezoidal or Simpson\n";
61 return 0;
62 }
63 if (seriesIntegrator == 0) {
64 opserr << "WARNING invalid series integrator: " << type;
65 opserr << " - pattern UniformExcitation -int {Series Integrator}\n";
66 return 0;
67 }
68
69 return seriesIntegrator;
70}
71
72
73TimeSeriesIntegrator::TimeSeriesIntegrator (int classTag)

Callers 2

OPS_groundMotionFunction · 0.85

Tested by

no test coverage detected