MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / compareInputAndOutput

Function compareInputAndOutput

src/model/Model.cpp:2281–2292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2279 }
2280
2281 bool compareInputAndOutput(const ModelObject& object, const std::string& attributeName, double inputResult, double outputResult, double tol,
2282 LogLevel logLevel) {
2283 if (!openstudio::equal(inputResult, outputResult, tol)) {
2284 LOG_FREE(logLevel, "openstudio.model.Model",
2285 "The " << attributeName << " values determined for " << object.briefDescription()
2286 << " using input and output data differ by a (relative) error " << "greater than " << tol
2287 << ". The value calculated from input data was " << inputResult << ", whereas the value calculated from output data was "
2288 << outputResult << ".");
2289 return false;
2290 }
2291 return true;
2292 }
2293
2294 Model exampleModel() {
2295 Model model;

Callers 7

uFactorMethod · 0.85
thermalConductanceMethod · 0.85
visibleTransmittanceMethod · 0.85
uFactorMethod · 0.85
thermalConductanceMethod · 0.85

Calls 2

briefDescriptionMethod · 0.80
equalFunction · 0.50

Tested by

no test coverage detected