ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/bsdftrans.cpp
(Generate patch)

Comparing ray/src/cv/bsdftrans.cpp (file contents):
Revision 2.1 by greg, Wed Mar 26 02:52:31 2014 UTC vs.
Revision 2.2 by greg, Wed Mar 26 22:29:08 2014 UTC

# 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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines