MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / update

Method update

tools/Assembler/Materials/ElementWiseIsotropicMaterial.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void ElementWiseIsotropicMaterial::update() {
34 const size_t dim = m_material_mesh->get_dim();
35 if (dim == 2) {
36 update_2D();
37 } else if (dim == 3) {
38 update_3D();
39 } else {
40 std::stringstream err_msg;
41 err_msg << "Unknow dimention: " << dim;
42 throw NotImplementedError(err_msg.str());
43 }
44}
45
46void ElementWiseIsotropicMaterial::update_2D() {
47 const size_t num_faces = m_material_mesh->get_num_faces();

Callers

nothing calls this directly

Calls 3

NotImplementedErrorClass · 0.85
get_dimMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected