MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getCopy

Method getCopy

SRC/material/nD/Series3DMaterial.cpp:498–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498NDMaterial* 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
532NDMaterial* Series3DMaterial::getCopy(const char* code)
533{

Callers 1

Series3DMaterialMethod · 0.45

Calls 4

getCopyFunction · 0.85
setTagMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected