38 auto first = wPath.find_first_of(
'/');
39 auto last = wPath.find_last_of(
'/');
41 if( first == word::npos)
48 if( last == wPath.size()-1)
50 wPath = wPath.substr(0,last);
51 last = wPath.find_last_of(
'/');
54 word rName = wPath.substr(last+1);
69 auto first = wPath.find_first_of(
'/');
70 auto last = wPath.find_last_of(
'/');
72 if( first == word::npos)
79 if( last == wPath.size()-1)
81 wPath = wPath.substr(0,last);
82 last = wPath.find_last_of(
'/');
85 word tFolder = wPath.substr(0,last);
125 settings().emplaceObject<dictionary>
131 objectFile::READ_ALWAYS,
132 objectFile::WRITE_NEVER
138 libs_(settingsDict_),
140 settingsDict_.getValOrSet(
"outFilePrecision",
static_cast<size_t>(6))
148 settingsDict_.getVal<
realx3>(
"g")
151 settingsDict_.subDict(
"domain")
156 settingsDict_.getValOrSet(
"timersReport",
Logical(
"Yes"))
158 writeToFileTimer_(
"Write to file", &timers_)
162 const real startTime,
164 const real saveInterval,
165 const word startTimeName,
209 libs_(settingsDict_),
219 externalTimeControl_(true),
221 settingsDict_.getVal<
realx3>(
"g")
224 settingsDict_.subDict(
"domain")
229 settingsDict_.getValOrSet(
"timersReport",
Logical(
"Yes"))
231 writeToFileTimer_(
"Write to file", &timers_)
238 auto toContinue = time()++;
242 writeToFileTimer_.start();
246 if( !time().write() )
252 writeToFileTimer_.end();
254 if( time().timersReportTime() &&
257 timers_.write(
output,
true);
261 else if (time().finalTime())
263 writeToFileTimer_.start();
264 if( !time().write() )
269 writeToFileTimer_.end();
271 timers_.write(
output,
true);