| 1417 | } |
| 1418 | |
| 1419 | int |
| 1420 | ZeroLengthVG_HG::commitSensitivity(int gradIndex, int numGrads) |
| 1421 | { |
| 1422 | // Get nodal displacement sensitivity |
| 1423 | Vector diff(numDOF/2); |
| 1424 | for (int i = 0; i < numDOF/2; i++) { |
| 1425 | diff(i) = theNodes[1]->getDispSensitivity(i+1,gradIndex) - theNodes[0]->getDispSensitivity(i+1,gradIndex); |
| 1426 | } |
| 1427 | |
| 1428 | double depsdh; |
| 1429 | int ret = 0; |
| 1430 | for (int mat=0; mat<numMaterials1d; mat++) { |
| 1431 | // compute strain and rate; set as current trial for material |
| 1432 | depsdh = this->computeCurrentStrain1d(mat,diff); |
| 1433 | ret += theMaterial1d[mat]->commitSensitivity(depsdh, gradIndex, numGrads); |
| 1434 | } |
| 1435 | |
| 1436 | return ret; |
| 1437 | } |
| 1438 | |
| 1439 | |
| 1440 |
nothing calls this directly
no test coverage detected