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

Function setLoadConst

SRC/tcl/commands.cpp:1640–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1638
1639
1640int
1641setLoadConst(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv)
1642{
1643 theDomain.setLoadConstant();
1644 if (argc == 3) {
1645 if( strcmp(argv[1],"-time") == 0) {
1646 double newTime;
1647 if (Tcl_GetDouble(interp, argv[2], &newTime) != TCL_OK) {
1648 opserr << "WARNING readingvalue - loadConst -time value \n";
1649 return TCL_ERROR;
1650 } else {
1651 theDomain.setCurrentTime(newTime);
1652 theDomain.setCommittedTime(newTime);
1653 }
1654 }
1655 }
1656
1657 return TCL_OK;
1658}
1659
1660int
1661setCreep(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv)

Callers

nothing calls this directly

Calls 3

setLoadConstantMethod · 0.45
setCurrentTimeMethod · 0.45
setCommittedTimeMethod · 0.45

Tested by

no test coverage detected