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

Function dispatch

SRC/runtime/commands/analysis/integrator.cpp:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39// Type 1
40template <typename Type, OPS_Routine fn>
41static int
42dispatch(ClientData clientData, Tcl_Interp* interp, int argc, G3_Char** const argv)
43{
44 BasicAnalysisBuilder *builder = static_cast<BasicAnalysisBuilder*>(clientData);
45 Type* theIntegrator = (Type*)fn( G3_getRuntime(interp), argc, argv );
46
47 if (theIntegrator == nullptr)
48 return TCL_ERROR;
49
50
51 opsdbg << G3_DEBUG_PROMPT << "Set integrator to \n";
52 theIntegrator->Print(opsdbg);
53 builder->set(*theIntegrator);
54 return TCL_OK;
55}
56
57// Type 2
58template <typename Type, Type*(*fn)(ClientData, Tcl_Interp*, int, TCL_Char** const)>

Callers

nothing calls this directly

Calls 3

G3_getRuntimeFunction · 0.85
PrintMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected