- Timestamp:
- Mar 17, 2009, 12:08:50 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppSim/src/ppSimSequence.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk merged eligible /branches/eam_branches/eam_branch_20090303 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ppSim/src/ppSimSequence.c
r19315 r23352 133 133 if (ppsim_recipe) psStringAppend (&ppSimCommand, " -recipe PPSIM %s", ppsim_recipe); 134 134 135 unsigned long seed = psMetadataLookupS32 (&status, config, "RND_SEED"); 136 if (!status) seed = 0; 137 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS, seed); 135 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS); 138 136 139 137 psMetadataItem *item = psMetadataLookup (config, "SEQUENCE"); 140 138 if (item == NULL) { 141 139 psLogMsg ("ppSimSequence", PS_LOG_WARN, "missing SEQUENCE description"); 142 exit ( 1);140 exit (PS_EXIT_CONFIG_ERROR); 143 141 } 144 142 … … 170 168 } 171 169 172 // determine the camera for the sequence and define the ppSim command173 if (camera == NULL) {174 camera = psMetadataLookupStr (&status, sequence, "CAMERA");175 }176 177 psString injectCommandReal = NULL;178 psString ppSimCommandReal = NULL;179 180 psStringAppend (&injectCommandReal, "%s --camera %s", injectCommand, camera);181 psStringAppend (&ppSimCommandReal, "%s -camera %s", ppSimCommand, camera);170 // determine the camera for the sequence and define the ppSim command 171 if (camera == NULL) { 172 camera = psMetadataLookupStr (&status, sequence, "CAMERA"); 173 } 174 175 psString injectCommandReal = NULL; 176 psString ppSimCommandReal = NULL; 177 178 psStringAppend (&injectCommandReal, "%s --camera %s", injectCommand, camera); 179 psStringAppend (&ppSimCommandReal, "%s -camera %s", ppSimCommand, camera); 182 180 183 181 if (!strcasecmp (type, "BIAS")) {
Note:
See TracChangeset
for help on using the changeset viewer.
