| 31 | } |
| 32 | |
| 33 | void 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 | |
| 46 | void ElementWiseIsotropicMaterial::update_2D() { |
| 47 | const size_t num_faces = m_material_mesh->get_num_faces(); |
nothing calls this directly
no test coverage detected