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

Method saveIDFToRootDirIfDebug

src/workflow/OSWorkflow.cpp:240–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void OSWorkflow::saveIDFToRootDirIfDebug() {
241 if (!workflowJSON.runOptions() || !workflowJSON.runOptions()->debug()) {
242 return;
243 }
244 LOG(Info, "Saving IDF to Root Directory");
245 auto savePath = workflowJSON.absoluteRootDir() / "in.idf";
246 detailedTimeBlock("Saving IDF To Root Directory (debug)", [this, &savePath]() {
247 // TODO: workflow gem was actually serializating via model.to_s for speed...
248 workspace_->save(savePath, true);
249 });
250 LOG(Info, "Saved IDF as " << savePath);
251}
252
253void standardFormatterWithStringSeverity(boost::log::record_view const& rec, boost::log::formatting_ostream& strm) {
254

Callers

nothing calls this directly

Calls 4

runOptionsMethod · 0.80
debugMethod · 0.80
absoluteRootDirMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected