Skip to content

Commit

Permalink
replace GetInt with GetIntInput and GetDouble with GetDoubleInput
Browse files Browse the repository at this point in the history
  • Loading branch information
aschellenberg74 committed Oct 29, 2024
1 parent 87daa90 commit 9a7ae53
Show file tree
Hide file tree
Showing 39 changed files with 54 additions and 54 deletions.
8 changes: 4 additions & 4 deletions SRC/analysis/analysis/ResponseSpectrumAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ OPS_ResponseSpectrumAnalysis(void)
// get time series
if (!use_lists) {
int tstag;
if (OPS_GetInt(&numData, &tstag) < 0) {
if (OPS_GetIntInput(&numData, &tstag) < 0) {
opserr << "ResponseSpectrumAnalysis Error: Failed to get timeSeries tag.\n";
return -1;
}
Expand All @@ -182,7 +182,7 @@ OPS_ResponseSpectrumAnalysis(void)
}

// get direction
if (OPS_GetInt(&numData, &dir) < 0) {
if (OPS_GetIntInput(&numData, &dir) < 0) {
opserr << "ResponseSpectrumAnalysis Error: Failed to get direction.\n";
return -1;
}
Expand All @@ -196,7 +196,7 @@ OPS_ResponseSpectrumAnalysis(void)
const char* value = OPS_GetString();
if (strcmp(value, "-scale") == 0) {
if (OPS_GetNumRemainingInputArgs() > 0) {
if (OPS_GetDouble(&numData, &scale) < 0) {
if (OPS_GetDoubleInput(&numData, &scale) < 0) {
opserr << "ResponseSpectrumAnalysis Error: Failed to get scale factor.\n";
return -1;
}
Expand All @@ -208,7 +208,7 @@ OPS_ResponseSpectrumAnalysis(void)
}
else if (strcmp(value, "-mode") == 0) {
if (OPS_GetNumRemainingInputArgs() > 0) {
if (OPS_GetInt(&numData, &mode_id) < 0) {
if (OPS_GetIntInput(&numData, &mode_id) < 0) {
opserr << "ResponseSpectrumAnalysis Error: Failed to get the mode_id.\n";
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/analysis/SDFAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ int OPS_sdfResponse()
double amax = 0.0; double tamax = 0.0;
double up = uresidual; double up0 = up;
int i = 0;
double ft, u=0, du, v, a, fs, zs, ftrial, kT, kTeff, dg, phat, R, R0, accel;
double ft, u=0, du, v, a, fs, zs, ftrial, kT, kTeff, dg, phat, R, R0;
double time = accelSeries->getStartTime();
double Tend = accelSeries->getDuration();
while (time < Tend) {
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/AlphaOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void * OPS_AlphaOS(void)
else
numData = 3;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want AlphaOS $alpha <-updateElemDisp>\n";
opserr << " or AlphaOS $alpha $beta $gamma <-updateElemDisp>\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/AlphaOSGeneralized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void * OPS_AlphaOSGeneralized(void)
else
numData = 4;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want AlphaOSGeneralized $alpha <-updateElemDisp>\n";
opserr << " or AlphaOSGeneralized $alphaI $alphaF $beta $gamma <-updateElemDisp>\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/AlphaOSGeneralized_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void * OPS_AlphaOSGeneralized_TP(void)
else
numData = 4;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want AlphaOSGeneralized_TP $alpha <-updateElemDisp>\n";
opserr << " or AlphaOSGeneralized_TP $alphaI $alphaF $beta $gamma <-updateElemDisp>\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/AlphaOS_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void * OPS_AlphaOS_TP(void)
else
numData = 3;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want AlphaOS_TP $alpha <-updateElemDisp>\n";
opserr << " or AlphaOS_TP $alpha $beta $gamma <-updateElemDisp>\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/ArcLength.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ ArcLength::recvSelf(int cTag,
alpha2 = data(1);
deltaLambdaStep = data(2);
currentLambda = data(3);
signLastDeltaLambdaStep = data(4);
signLastDeltaLambdaStep = (int)data(4);
// opserr<<"recSelf: end"<<endln;

return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/ArcLength1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ ArcLength1::recvSelf(int cTag,
alpha2 = data(1);
deltaLambdaStep = data(2);
currentLambda = data(3);
signLastDeltaLambdaStep = data(4);
signLastDeltaLambdaStep = (int)data(4);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/Collocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void * OPS_Collocation(void)
}

double dData[3];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want Collocation $theta\n";
opserr << " or Collocation $theta $beta $gamma\n";
return 0;
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/CollocationHSFixedNumIter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void * OPS_CollocationHSFixedNumIter(void)
// reset to read from beginning
OPS_ResetCurrentInputArg(2);

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want CollocationHSFixedNumIter $theta <-polyOrder $O>\n";
opserr << " or CollocationHSFixedNumIter $theta $beta $gamma <-polyOrder $O>\n";
return 0;
Expand All @@ -82,7 +82,7 @@ void * OPS_CollocationHSFixedNumIter(void)
const char *argvLoc = OPS_GetString();
if (strcmp(argvLoc, "-polyOrder") == 0) {
int numData2 = 1;
if (OPS_GetInt(&numData2, &polyOrder) != 0) {
if (OPS_GetIntInput(&numData2, &polyOrder) != 0) {
opserr << "WARNING - invalid polyOrder want CollocationHSFixedNumIter $rhoInf <-polyOrder $O>\n";
opserr << " or CollocationHSFixedNumIter $alphaI $alphaF $beta $gamma <-polyOrder $O>\n";
}
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/CollocationHSIncrLimit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void * OPS_CollocationHSIncrLimit(void)
// reset to read from beginning
OPS_ResetCurrentInputArg(2);

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want CollocationHSIncrLimit $theta $limit <-normType $T>\n";
opserr << " or CollocationHSIncrLimit $theta $beta $gamma $limit <-normType $T>\n";
return 0;
Expand All @@ -81,7 +81,7 @@ void * OPS_CollocationHSIncrLimit(void)
const char *argvLoc = OPS_GetString();
if (strcmp(argvLoc, "-normType") == 0) {
int numData2 = 1;
if (OPS_GetInt(&numData2, &normType) != 0) {
if (OPS_GetIntInput(&numData2, &normType) != 0) {
opserr << "WARNING - invalid normType want CollocationHSIncrLimit $theta $limit <-normType $T>\n";
opserr << " or CollocationHSIncrLimit $theta $beta $gamma $limit <-normType $T>\n";
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/CollocationHSIncrReduct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void * OPS_CollocationHSIncrReduct(void)
}

double dData[4];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want CollocationHSIncrReduct $theta $reduct\n";
opserr << " or CollocationHSIncrReduct $theta $beta $gamma $reduct\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/GeneralizedAlpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void *OPS_GeneralizedAlpha(void)
}

double dData[4];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want GeneralizedAlpha $alphaM $alphaF <$gamma $beta>\n";
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/GimmeMCK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ void* OPS_GimmeMCK(void)

int numdata = 3;
double ddata[3];
if (OPS_GetDouble(&numdata, ddata) != 0) {
if (OPS_GetDoubleInput(&numdata, ddata) != 0) {
opserr << "WARNING - invalid args want GimmeMCK $m $c $k <$ki>\n";
return 0;
}
numdata = 1;
double ki = 0.0;
if (argc > 3) {
if (OPS_GetDouble(&numdata, &ki) != 0) {
if (OPS_GetDoubleInput(&numdata, &ki) != 0) {
opserr << "WARNING - invalid args want GimmeMCK $m $c $k <$ki>\n";
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ OPS_HHT(void)
}

double dData[3];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHT $alpha <$gamma $beta>\n";
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTExplicit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void * OPS_HHTExplicit(void)
// reset to read from beginning
OPS_ResetCurrentInputArg(2);

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want HHTExplicit $alpha <-updateElemDisp>\n";
opserr << " or HHTExplicit $alpha $gamma <-updateElemDisp>\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTExplicit_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void * OPS_HHTExplicit_TP(void)
}

double dData[2];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHTExplicit_TP $alpha\n";
opserr << " or HHTExplicit_TP $alpha $gamma\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTGeneralized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void * OPS_HHTGeneralized(void)
}

double dData[4];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHTGeneralized $rhoInf\n";
opserr << " or HHTGeneralized $alphaI $alphaF $beta $gamma\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTGeneralizedExplicit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void * OPS_HHTGeneralizedExplicit(void)
else
numData = 4;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want HHTGeneralizedExplicit $rhoB $alphaF <-updateElemDisp>\n";
opserr << " or HHTGeneralizedExplicit $alphaI $alphaF $beta $gamma <-updateElemDisp>\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTGeneralizedExplicit_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void * OPS_HHTGeneralizedExplicit_TP(void)
}

double dData[4];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHTGeneralizedExplicit_TP $rhoB $alphaF\n";
opserr << " or HHTGeneralizedExplicit_TP $alphaI $alphaF $beta $gamma\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTGeneralized_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void * OPS_HHTGeneralized_TP(void)
}

double dData[4];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHTGeneralized_TP $rhoInf\n";
opserr << " or HHTGeneralized_TP $alphaI $alphaF $beta $gamma\n";
return 0;
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/HHTHSFixedNumIter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void * OPS_HHTHSFixedNumIter(void)
else
numData = 4;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want HHTHSFixedNumIter $rhoInf <-polyOrder $O>\n";
opserr << " or HHTHSFixedNumIter $alphaI $alphaF $beta $gamma <-polyOrder $O>\n";
return 0;
Expand All @@ -75,7 +75,7 @@ void * OPS_HHTHSFixedNumIter(void)
const char *argvLoc = OPS_GetString();
if (strcmp(argvLoc, "-polyOrder") == 0) {
numData = 1;
if (OPS_GetInt(&numData, &polyOrder) != 0) {
if (OPS_GetIntInput(&numData, &polyOrder) != 0) {
opserr << "WARNING - invalid polyOrder want HHTHSFixedNumIter $rhoInf <-polyOrder $O>\n";
opserr << " or HHTHSFixedNumIter $alphaI $alphaF $beta $gamma <-polyOrder $O>\n";
}
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/HHTHSFixedNumIter_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void * OPS_HHTHSFixedNumIter_TP(void)
else
numData = 4;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want HHTHSFixedNumIter_TP $rhoInf <-polyOrder $O>\n";
opserr << " or HHTHSFixedNumIter_TP $alphaI $alphaF $beta $gamma <-polyOrder $O>\n";
return 0;
Expand All @@ -75,7 +75,7 @@ void * OPS_HHTHSFixedNumIter_TP(void)
const char *argvLoc = OPS_GetString();
if (strcmp(argvLoc, "-polyOrder") == 0) {
numData = 1;
if (OPS_GetInt(&numData, &polyOrder) != 0) {
if (OPS_GetIntInput(&numData, &polyOrder) != 0) {
opserr << "WARNING - invalid polyOrder want HHTHSFixedNumIter_TP $rhoInf <-polyOrder $O>\n";
opserr << " or HHTHSFixedNumIter_TP $alphaI $alphaF $beta $gamma <-polyOrder $O>\n";
}
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/HHTHSIncrLimit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void * OPS_HHTHSIncrLimit(void)
else
numData = 5;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want HHTHSIncrLimit $rhoInf $limit <-normType $T>\n";
opserr << " or HHTHSIncrLimit $alphaI $alphaF $beta $gamma $limit <-normType $T>\n";
return 0;
Expand All @@ -73,7 +73,7 @@ void * OPS_HHTHSIncrLimit(void)
const char *argvLoc = OPS_GetString();
if (strcmp(argvLoc, "-normType") == 0) {
numData = 1;
if (OPS_GetInt(&numData, &normType) != 0) {
if (OPS_GetIntInput(&numData, &normType) != 0) {
opserr << "WARNING - invalid normType want HHTHSIncrLimit $rhoInf $limit <-normType $T>\n";
opserr << " or HHTHSIncrLimit $alphaI $alphaF $beta $gamma $limit <-normType $T>\n";
}
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/HHTHSIncrLimit_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void * OPS_HHTHSIncrLimit_TP(void)
else
numData = 5;

if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want HHTHSIncrLimit_TP $rhoInf $limit <-normType $T>\n";
opserr << " or HHTHSIncrLimit_TP $alphaI $alphaF $beta $gamma $limit <-normType $T>\n";
return 0;
Expand All @@ -73,7 +73,7 @@ void * OPS_HHTHSIncrLimit_TP(void)
const char *argvLoc = OPS_GetString();
if (strcmp(argvLoc, "-normType") == 0) {
numData = 1;
if (OPS_GetInt(&numData, &normType) != 0) {
if (OPS_GetIntInput(&numData, &normType) != 0) {
opserr << "WARNING - invalid normType want HHTHSIncrLimit_TP $rhoInf $limit <-normType $T>\n";
opserr << " or HHTHSIncrLimit_TP $alphaI $alphaF $beta $gamma $limit <-normType $T>\n";
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTHSIncrReduct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void * OPS_HHTHSIncrReduct(void)
}

double dData[5];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHTHSIncrReduct $rhoInf $reduct\n";
opserr << " or HHTHSIncrReduct $alphaI $alphaF $beta $gamma $reduct\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHTHSIncrReduct_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void * OPS_HHTHSIncrReduct_TP(void)
}

double dData[5];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHTHSIncrReduct_TP $rhoInf $reduct\n";
opserr << " or HHTHSIncrReduct_TP $alphaI $alphaF $beta $gamma $reduct\n";
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HHT_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void * OPS_HHT_TP(void)
}

double dData[3];
if (OPS_GetDouble(&argc, dData) != 0) {
if (OPS_GetDoubleInput(&argc, dData) != 0) {
opserr << "WARNING - invalid args want HHT_TP $alpha <$gamma $beta>\n";
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/HSConstraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ HSConstraint::recvSelf(int cTag,
//alpha2 = data(1);
deltaLambdaStep = data(1);
currentLambda = data(2);
signLastDeltaLambdaStep = data(3);
signLastDeltaLambdaStep = (int)data(3);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/KRAlphaExplicit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void * OPS_KRAlphaExplicit(void)
bool updElemDisp = false;
double rhoInf;
int numData = 1;
if (OPS_GetDouble(&numData, &rhoInf) != 0) {
if (OPS_GetDoubleInput(&numData, &rhoInf) != 0) {
opserr << "WARNING - invalid args want KRAlphaExplicit $rhoInf <-updateElemDisp>\n";
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/KRAlphaExplicit_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void * OPS_KRAlphaExplicit_TP(void)
}

double rhoInf;
if (OPS_GetDouble(&argc, &rhoInf) != 0) {
if (OPS_GetDoubleInput(&argc, &rhoInf) != 0) {
opserr << "WARNING - invalid args want KRAlphaExplicit_TP $rhoInf\n";
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions SRC/analysis/integrator/Newmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ OPS_Newmark(void)
int dispFlag = 1;
double dData[2];
int numData = 2;
if (OPS_GetDouble(&numData, dData) != 0) {
if (OPS_GetDoubleInput(&numData, dData) != 0) {
opserr << "WARNING - invalid args want Newmark $gamma $beta <-form $typeUnknown>\n";
return 0;
}
Expand Down Expand Up @@ -524,7 +524,7 @@ int Newmark::recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker

gamma = data(0);
beta = data(1);
displ = data(2);
displ = (int)data(2);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion SRC/analysis/integrator/NewmarkExplicit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void* OPS_NewmarkExplicit(void)
}

double gamma;
if (OPS_GetDouble(&argc, &gamma) != 0) {
if (OPS_GetDoubleInput(&argc, &gamma) != 0) {
opserr << "WARNING - invalid args want NewmarkExplicit $gamma\n";
return 0;
}
Expand Down
Loading

0 comments on commit 9a7ae53

Please sign in to comment.