Changeset 14614 for branches/eam_branch_20070817/ppSim/src/ppSimLoop.c
- Timestamp:
- Aug 22, 2007, 3:05:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/ppSim/src/ppSimLoop.c
r14547 r14614 1 1 #include "ppSim.h" 2 2 3 psExitppSimLoop(pmConfig *config)3 bool ppSimLoop(pmConfig *config) 4 4 { 5 5 PS_ASSERT_PTR_NON_NULL(config, PS_EXIT_PROG_ERROR); … … 48 48 } 49 49 50 // XXX check for a supplied PSF, otherwise generate a basic one51 50 if (type == PPSIM_TYPE_OBJECT) { 52 // XXX TBD : ppSimSetPSF (chip, config); 51 if (!ppSimSetPSF (chip, config)) { 52 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d in ppSim\n", view->chip); 53 psFree (view); 54 return false; 55 } 53 56 } 54 57 … … 64 67 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "CELL.READDIR = 1 is the only supported mode."); 65 68 psFree(rng); 66 return PS_EXIT_CONFIG_ERROR;69 return false; 67 70 } 68 71 … … 90 93 ppSimMakeSky (readout, expCorr, type, config); 91 94 if (type == PPSIM_TYPE_FLAT) goto done; 92 93 // if (type == PPSIM_TYPE_OBJECT) {94 // ppSimInsertStars (readout, expCorr, stars, config, chip, cell);95 // }96 95 97 96 if (type == PPSIM_TYPE_OBJECT) { … … 123 122 psFree(rng); 124 123 psFree(view); 125 return PS_EXIT_SYS_ERROR; 124 // return PS_EXIT_SYS_ERROR; 125 return false; 126 126 } 127 127 } … … 135 135 psFree(rng); 136 136 psFree(view); 137 return PS_EXIT_SYS_ERROR; 137 // return PS_EXIT_SYS_ERROR; 138 return false; 138 139 } 139 140 … … 148 149 psFree(rng); 149 150 psFree(view); 150 return PS_EXIT_SYS_ERROR; 151 // return PS_EXIT_SYS_ERROR; 152 return false; 151 153 } 152 154 … … 154 156 psFree(view); 155 157 156 return 0;158 return true; 157 159 }
Note:
See TracChangeset
for help on using the changeset viewer.
