678 |
|
|
679 |
if (strncmp(argv[2],"blsode",3)==0) { |
if (strncmp(argv[2],"blsode",3)==0) { |
680 |
integrator = INTEG_LSODE; |
integrator = INTEG_LSODE; |
681 |
|
#ifdef ASC_WITH_IDA |
682 |
}else if (strncmp(argv[2],"ida",3)==0) { |
}else if (strncmp(argv[2],"ida",3)==0) { |
683 |
integrator = INTEG_IDA; |
integrator = INTEG_IDA; |
684 |
|
#endif |
685 |
} |
} |
686 |
|
|
687 |
result = (integrator != INTEG_UNKNOWN); |
result = (integrator != INTEG_UNKNOWN); |
773 |
ifound=1; |
ifound=1; |
774 |
} |
} |
775 |
|
|
776 |
|
#ifdef ASC_WITH_IDA |
777 |
if (engine != NULL && strncmp(engine,"IDA",3)==0) { |
if (engine != NULL && strncmp(engine,"IDA",3)==0) { |
778 |
integrator = INTEG_IDA; |
integrator = INTEG_IDA; |
779 |
ifound=1; |
ifound=1; |
780 |
} |
} |
781 |
|
#endif |
782 |
|
|
783 |
if (!ifound) { |
if (!ifound) { |
784 |
Tcl_SetResult(interp, "Unsupported integrator", TCL_STATIC); |
Tcl_SetResult(interp, "Unsupported integrator", TCL_STATIC); |