| 29 | } |
| 30 | |
| 31 | Float PeriodicMaterial::get_density(VectorF coord) const { |
| 32 | size_t mat_idx = choose_material(coord); |
| 33 | return m_materials[mat_idx]->get_density(coord); |
| 34 | } |
| 35 | |
| 36 | Float PeriodicMaterial::get_density() const { |
| 37 | throw RuntimeError("Please specify a coordinate to get mixed material density."); |
nothing calls this directly
no test coverage detected