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

Function setTime

SRC/tcl/commands.cpp:1677–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1675}
1676
1677int
1678setTime(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv)
1679{
1680 if (argc < 2) {
1681 opserr << "WARNING illegal command - time pseudoTime? \n";
1682 return TCL_ERROR;
1683 }
1684 double newTime;
1685 if (Tcl_GetDouble(interp, argv[1], &newTime) != TCL_OK) {
1686 opserr << "WARNING reading time value - time pseudoTime? \n";
1687 return TCL_ERROR;
1688 } else {
1689 theDomain.setCurrentTime(newTime);
1690 theDomain.setCommittedTime(newTime);
1691 }
1692 return TCL_OK;
1693}
1694
1695int
1696getTime(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv)

Callers 3

Example6.1.pyFile · 0.85
Example7.1.pyFile · 0.85
Example8.1.pyFile · 0.85

Calls 2

setCurrentTimeMethod · 0.45
setCommittedTimeMethod · 0.45

Tested by

no test coverage detected