| 919 | #endif |
| 920 | |
| 921 | bool is_valid_fluid_string(const std::string& fluidstring) { |
| 922 | try { |
| 923 | std::string backend, fluid; |
| 924 | std::vector<double> fractions; |
| 925 | // First try to extract backend and fractions |
| 926 | extract_backend(fluidstring, backend, fluid); |
| 927 | std::string fluid_string = extract_fractions(fluid, fractions); |
| 928 | // We are going to let the factory function load the state |
| 929 | shared_ptr<AbstractState> State(AbstractState::factory(backend, fluid_string)); |
| 930 | return true; |
| 931 | } catch (...) { |
| 932 | return false; |
| 933 | } |
| 934 | } |
| 935 | double saturation_ancillary(const std::string& fluid_name, const std::string& output, int Q, const std::string& input, double value) { |
| 936 | |
| 937 | // Generate the state instance |
no test coverage detected