| 1263 | } |
| 1264 | |
| 1265 | int |
| 1266 | SectionAggregator::commitSensitivity(const Vector& defSens, |
| 1267 | int gradIndex, int numGrads) |
| 1268 | { |
| 1269 | int ret = 0; |
| 1270 | int i = 0; |
| 1271 | |
| 1272 | dedh = defSens; |
| 1273 | |
| 1274 | int theSectionOrder = 0; |
| 1275 | |
| 1276 | if (theSection) { |
| 1277 | theSectionOrder = theSection->getOrder(); |
| 1278 | Vector dedh(workArea, theSectionOrder); |
| 1279 | |
| 1280 | for (i = 0; i < theSectionOrder; i++) |
| 1281 | dedh(i) = defSens(i); |
| 1282 | |
| 1283 | ret = theSection->commitSensitivity(dedh, gradIndex, numGrads); |
| 1284 | } |
| 1285 | |
| 1286 | int order = theSectionOrder + numMats; |
| 1287 | |
| 1288 | for ( ; i < order; i++) |
| 1289 | ret += theAdditions[i-theSectionOrder]->commitSensitivity(defSens(i), |
| 1290 | gradIndex, |
| 1291 | numGrads); |
| 1292 | |
| 1293 | return ret; |
| 1294 | } |
| 1295 | |
| 1296 | // AddingSensitivity:END /////////////////////////////////// |
| 1297 | |