Changeset 36089 for trunk/psModules
- Timestamp:
- Aug 31, 2013, 4:25:05 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPCMdata.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPCMdata.c
r36085 r36089 177 177 // set parameter mask based on fitting mode 178 178 int nParams = 0; 179 int nParAll = constraint->paramMask->n; 179 180 180 181 switch (mode) { … … 197 198 case PM_SOURCE_FIT_EXT: 198 199 // fits all params except sky 199 nParams = params->n- 1;200 nParams = nParAll - 1; 200 201 psVectorInit (constraint->paramMask, 0); 201 202 constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[PM_PAR_SKY] = 1; … … 204 205 case PM_SOURCE_FIT_EXT_AND_SKY: 205 206 // fits all params including sky 206 nParams = params->n;207 nParams = nParAll; 207 208 psVectorInit (constraint->paramMask, 0); 208 209 break; … … 223 224 psVectorInit (constraint->paramMask, 1); 224 225 constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[PM_PAR_I0] = 0; 225 if ( params->n== 7) {226 if (nParAll == 7) { 226 227 nParams = 1; 227 228 } else { … … 234 235 // fits all but index (PAR7) including sky 235 236 psVectorInit (constraint->paramMask, 0); 236 if ( params->n== 7) {237 nParams = params->n;237 if (nParAll == 7) { 238 nParams = nParAll; 238 239 } else { 239 nParams = params->n- 1;240 nParams = nParAll - 1; 240 241 constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[PM_PAR_7] = 1; 241 242 }
Note:
See TracChangeset
for help on using the changeset viewer.
