Changeset 27488 for branches/eam_branches/relastro.20100326/src/FitChip.c
- Timestamp:
- Mar 26, 2010, 4:43:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relastro.20100326/src/FitChip.c
r24308 r27488 22 22 CoordFit *fit; 23 23 double dL, dM, dR, dRmax, *values; 24 Coords oldCoords; 24 25 25 26 ALLOCATE (values, double, Nmatch); … … 84 85 default: 85 86 fprintf (stderr, "invalid chip order %d\n", coords[0].Npolyterms); 86 abort ();87 skip = TRUE; 87 88 } 88 89 if (skip) { … … 96 97 97 98 // measure the fit, update the coords & object coordinates 98 fit_eval (fit); 99 fit_apply_coords (fit, coords); 99 if (!fit_eval (fit)) { 100 fprintf (stderr, "failed to fit new model\n"); 101 return FALSE; 102 } 103 104 if (!fit_apply_coords (fit, coords)) { 105 fprintf (stderr, "failed to fit new model\n"); 106 return FALSE; 107 } 108 100 109 fit_free (fit); 101 110 … … 107 116 108 117 free (values); 109 return ;118 return TRUE; 110 119 } 111 120
Note:
See TracChangeset
for help on using the changeset viewer.
