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

Function OPS_setPrecision

SRC/interpreter/OpenSeesOutputCommands.cpp:2432–2447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2430}
2431
2432int OPS_setPrecision()
2433{
2434 if (OPS_GetNumRemainingInputArgs() < 1) {
2435 opserr << "WARNING setPrecision precision? - no precision value supplied\n";
2436 return -1;
2437 }
2438 int precision;
2439 int numdata = 1;
2440 if (OPS_GetIntInput(&numdata, &precision) < 0) {
2441 opserr << "WARNING setPrecision precision? - error reading precision value supplied\n";
2442 return -1;
2443 }
2444 opserr.setPrecision(precision);
2445
2446 return 0;
2447}
2448
2449int OPS_getEleTags()
2450{

Callers 2

Tcl_ops_setPrecisionFunction · 0.85
Py_ops_setPrecisionFunction · 0.85

Calls 3

OPS_GetIntInputFunction · 0.70
setPrecisionMethod · 0.45

Tested by

no test coverage detected