| 1187 |
# so detect the version and act accordingly. |
# so detect the version and act accordingly. |
| 1188 |
def CheckSUNDIALS(context): |
def CheckSUNDIALS(context): |
| 1189 |
keep = KeepContext(context,'SUNDIALS') |
keep = KeepContext(context,'SUNDIALS') |
| 1190 |
context.Message("Checking SUNDIALS version... ") |
context.Message("Checking for SUNDIALS... ") |
| 1191 |
(is_ok,output) = context.TryRun(sundials_version_text,'.c') |
(is_ok,output) = context.TryRun(sundials_version_text,'.c') |
| 1192 |
keep.restore(context) |
keep.restore(context) |
| 1193 |
if not is_ok: |
if not is_ok: |
| 1194 |
context.Result("failed to run check") |
context.Result(0) |
| 1195 |
return 0 |
return 0 |
| 1196 |
|
|
| 1197 |
major,minor,patch = tuple([int(i) for i in output.split(".")]) |
major,minor,patch = tuple([int(i) for i in output.split(".")]) |
| 1214 |
|
|
| 1215 |
|
|
| 1216 |
def CheckIDA(context): |
def CheckIDA(context): |
| 1217 |
context.Message( 'Checking for IDA (SUNDIALS)... ' ) |
context.Message( 'Checking for IDA... ' ) |
| 1218 |
|
|
| 1219 |
keep = KeepContext(context,"IDA") |
keep = KeepContext(context,"IDA") |
| 1220 |
|
|