# | Line 35 | Line 35 | plan_transport(MIGRATION *mig) | |
---|---|---|
35 | mig->rbfv[1]->vtotal; | |
36 | ||
37 | n = 0; /* minimize EMD */ | |
38 | < | transportSimplex(&srcSig, &dstSig, &lobe_distance, flow, &n); |
39 | < | |
38 | > | try { |
39 | > | transportSimplex(&srcSig, &dstSig, &lobe_distance, flow, &n); |
40 | > | } catch (...) { |
41 | > | fprintf(stderr, "%s: caught exception from transportSimplex()!\n", |
42 | > | progname); |
43 | > | exit(1); |
44 | > | } |
45 | while (n-- > 0) /* assign sparse matrix */ | |
46 | mtx_coef(mig, flow[n].from, flow[n].to) = flow[n].amount; | |
47 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |