| 496 | } |
| 497 | |
| 498 | NDMaterial* Series3DMaterial::getCopy(void) |
| 499 | { |
| 500 | Series3DMaterial *theCopy = new Series3DMaterial(); |
| 501 | theCopy->setTag(getTag()); |
| 502 | |
| 503 | theCopy->m_materials.resize(m_materials.size()); |
| 504 | theCopy->m_weights.resize(m_weights.size()); |
| 505 | theCopy->m_mat_strain_commit.resize(m_mat_strain_commit.size()); |
| 506 | for (std::size_t i = 0; i < m_materials.size(); ++i) { |
| 507 | theCopy->m_materials[i] = m_materials[i]->getCopy("ThreeDimensional"); |
| 508 | theCopy->m_weights[i] = m_weights[i]; |
| 509 | theCopy->m_mat_strain_commit[i] = m_mat_strain_commit[i]; |
| 510 | } |
| 511 | |
| 512 | theCopy->m_max_iter = m_max_iter; |
| 513 | theCopy->m_rel_tol = m_rel_tol; |
| 514 | theCopy->m_abs_tol = m_abs_tol; |
| 515 | theCopy->m_verbose = m_verbose; |
| 516 | |
| 517 | theCopy->m_lambda = m_lambda; |
| 518 | theCopy->m_lambda_commit = m_lambda_commit; |
| 519 | |
| 520 | theCopy->m_strain = m_strain; |
| 521 | theCopy->m_strain_commit = m_strain_commit; |
| 522 | theCopy->m_stress = m_stress; |
| 523 | theCopy->m_stress_commit = m_stress_commit; |
| 524 | theCopy->m_tangent = m_tangent; |
| 525 | theCopy->m_initial_tangent = m_initial_tangent; |
| 526 | |
| 527 | theCopy->m_stab = m_stab; |
| 528 | |
| 529 | return theCopy; |
| 530 | } |
| 531 | |
| 532 | NDMaterial* Series3DMaterial::getCopy(const char* code) |
| 533 | { |
no test coverage detected