| 716 | } |
| 717 | |
| 718 | int 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 | |
| 747 | PyObject *ops_wipeAnalysis(PyObject *self, PyObject *args) |
| 748 | { |
no test coverage detected