MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / stringToReal

Function stringToReal

src/sys/utils.cxx:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89BoutReal stringToReal(const std::string& s) {
90 std::stringstream ss(s);
91 BoutReal val;
92 if (!(ss >> val)) {
93 throw BoutException("Could not convert string '{:s}' to BoutReal\n", s);
94 }
95 return val;
96}
97
98int stringToInt(const std::string& s) {
99 std::stringstream ss(s);

Callers 3

cloneMethod · 0.85
cloneModMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68