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

Function ops_printAlgo

SRC/interpreter/PythonAnalysisBuilder.cpp:698–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698int ops_printAlgo(OPS_Stream &output, PyObject *args)
699{
700 EquiSolnAlgo* theAlgorithm = anaBuilder.getAlgorithm();
701 if(theAlgorithm == 0) return 0;
702
703 // if just 'print <filename> algorithm'- no flag
704 if(OPS_GetNumRemainingInputArgs() == 0) {
705 theAlgorithm->Print(output);
706 return 0;
707 }
708
709 // if 'print <filename> Algorithm flag' get the flag
710 int flag;
711 int numData = 1;
712 if(OPS_GetIntInput(&numData, &flag) < 0) return -1;
713 theAlgorithm->Print(output,flag);
714
715 return 0;
716}
717
718int ops_printInteg(OPS_Stream &output, PyObject *args)
719{

Callers 1

ops_printModelFunction · 0.85

Calls 4

OPS_GetIntInputFunction · 0.70
getAlgorithmMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected