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

Function TclCommand_setLoadConst

SRC/runtime/commands/domain/runtime.cpp:26–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include <Logging.h>
25
26int
27TclCommand_setLoadConst(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char ** const argv)
28{
29 assert(clientData != nullptr);
30 Domain* domain = (Domain*)clientData;
31
32 domain->setLoadConstant();
33 if (argc == 3) {
34 if (strcmp(argv[1], "-time") == 0) {
35 double newTime;
36 if (Tcl_GetDouble(interp, argv[2], &newTime) != TCL_OK) {
37 opserr << "WARNING readingvalue - loadConst -time value \n";
38 return TCL_ERROR;
39 } else {
40 domain->setCurrentTime(newTime);
41 domain->setCommittedTime(newTime);
42 }
43 }
44 }
45 return TCL_OK;
46}
47
48int
49TclCommand_setCreep(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char ** const argv)

Callers

nothing calls this directly

Calls 3

setLoadConstantMethod · 0.45
setCurrentTimeMethod · 0.45
setCommittedTimeMethod · 0.45

Tested by

no test coverage detected