| 10 | #include <vector> |
| 11 | |
| 12 | ::testing::AssertionResult IsSubString(const std::string& str, |
| 13 | const std::string& substring) { |
| 14 | if (str.find(substring) != std::string::npos) { |
| 15 | return ::testing::AssertionSuccess(); |
| 16 | } else { |
| 17 | return ::testing::AssertionFailure() << '"' << substring << "\" not found in " << str; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | void fillField(Field3D& f, std::vector<std::vector<std::vector<BoutReal>>> values) { |
| 22 | f.allocate(); |