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

Function OPS_EvalDoubleStringExpression

SRC/api/elementAPI_TCL.cpp:389–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388extern "C"
389int OPS_EvalDoubleStringExpression(const char* theExpression, double& current_val) {
390 if (Tcl_ExprDouble(theInterp, theExpression, &current_val) != TCL_OK) {
391 opserr << "OPS_EvalDoubleStringExpression::evaluateExpression -- expression \"" << theExpression;
392 opserr << "\" caused error:" << endln << Tcl_GetStringResult(theInterp) << endln;
393 return -1;
394 }
395 return 0;
396}
397
398extern "C"
399int OPS_SetDoubleOutput(int* numData, double* data, bool scalar)

Callers 2

OPS_ASDCoupledHinge3DFunction · 0.50
updateLawsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected