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

Function ops_printInteg

SRC/interpreter/PythonAnalysisBuilder.cpp:718–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718int ops_printInteg(OPS_Stream &output, PyObject *args)
719{
720 StaticIntegrator* theStaticIntegrator=anaBuilder.getStaticIntegrator();
721 TransientIntegrator* theTransientIntegrator=anaBuilder.getTransientIntegrator();
722
723 if(theStaticIntegrator == 0 && theTransientIntegrator==0)
724 return 0;
725
726 IncrementalIntegrator *theIntegrator;
727 if (theStaticIntegrator != 0)
728 theIntegrator = theStaticIntegrator;
729 else
730 theIntegrator = theTransientIntegrator;
731
732 // if just 'print <filename> algorithm'- no flag
733 if(OPS_GetNumRemainingInputArgs() == 0) {
734 theIntegrator->Print(output);
735 return 0;
736 }
737
738 // if 'print <filename> Algorithm flag' get the flag
739 int flag;
740 int numData = 1;
741 if(OPS_GetIntInput(&numData, &flag) < 0) return -1;
742 theIntegrator->Print(output,flag);
743
744 return 0;
745}
746
747PyObject *ops_wipeAnalysis(PyObject *self, PyObject *args)
748{

Callers 1

ops_printModelFunction · 0.85

Calls 5

OPS_GetIntInputFunction · 0.70
getStaticIntegratorMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected