| 696 | } |
| 697 | |
| 698 | int 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 | |
| 718 | int ops_printInteg(OPS_Stream &output, PyObject *args) |
| 719 | { |
no test coverage detected