| 50 | } |
| 51 | |
| 52 | Float ElementWiseMaterial::compute_cell_size() { |
| 53 | if (!m_material_mesh->has_attribute("edge_length")) { |
| 54 | m_material_mesh->add_attribute("edge_length"); |
| 55 | } |
| 56 | const VectorF& edge_lengths = m_material_mesh->get_attribute("edge_length"); |
| 57 | return 0.1 * edge_lengths.sum() / edge_lengths.size(); |
| 58 | } |
| 59 | |
| 60 | void ElementWiseMaterial::initialize_2D_grid() { |
| 61 | const size_t dim = m_material_mesh->get_dim(); |
nothing calls this directly
no test coverage detected