feat(eos): work translating runtime eos code
most (though not all) of the runtime eos code is now present in the new version. What remains is the templated try_evaluate method along with both the templated and non tempalted try_partial_derivative methods.
This commit is contained in:
13
src/lib/serif/dimensions/runtime/runtime.cpp
Normal file
13
src/lib/serif/dimensions/runtime/runtime.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "serif/dimensions/runtime/runtime.hpp"
|
||||
|
||||
namespace serif::dimensions::runtime {
|
||||
constexpr ThermodynamicQuantityID::ThermodynamicQuantityID(const std::string_view name) noexcept : m_name(name) {}
|
||||
|
||||
[[nodiscard]] constexpr std::string_view ThermodynamicQuantityID::name() const noexcept {
|
||||
return m_name;
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr bool RuntimeRelationDescriptor::hasPartialDerivative(const std::size_t inputIndex) const noexcept {
|
||||
return inputIndex < inputQuantities.size() && (partialDerivativeMask & (std::uint64_t{1} << inputIndex)) != 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user