| 132 | } |
| 133 | |
| 134 | float ScriptAPI::lj_min(const std::string& speciesA, const std::string& speciesB) const { |
| 135 | const std::optional<AtomData::Type> atomA = findAtomTypeBySymbol(speciesA); |
| 136 | const std::optional<AtomData::Type> atomB = findAtomTypeBySymbol(speciesB); |
| 137 | if (!atomA.has_value() || !atomB.has_value()) { |
| 138 | throw std::runtime_error("scene:lj_min supports atoms only"); |
| 139 | } |
| 140 | return simulation_.lj_min(*atomA, *atomB); |
| 141 | } |
| 142 | |
| 143 | int ScriptAPI::random_fill(const sol::object& regionObject, const sol::object& compositionObject, const sol::object& optionsObject) { |
| 144 | const std::unique_ptr<Generators::Region> region = parseRegion(regionObject); |
nothing calls this directly
no test coverage detected