Go to the documentation of this file.
61 content_ = std::cref<std::string>(
s);
68 std::string::const_iterator
71 const std::string&
s = content_.get();
73 if (start_ >=
s.length())
78 return s.cbegin() + start_;
82 std::string::const_iterator
85 const std::string&
s = content_.get();
87 if (length_ == std::string::npos || start_ >=
s.length())
92 const size_t strEnd = start_ + length_;
94 if (strEnd >=
s.length())
99 return s.cbegin() + strEnd;
108 const auto endIter =
cend();
110 for (
auto iter =
cbegin(); iter != endIter; ++iter)
133 const std::string& msg
138 reportFatal(msg, position_);
150 os <<
nl << msg.c_str() <<
" in expression\n"
162 const std::string& msg,
174 os <<
nl << msg.c_str()
175 <<
" in expression at position:" << long(
pos) <<
nl
178 const auto begIter =
cbegin();
179 const auto endIter =
cend();
182 size_t newline0 = 0, newline1 = 0;
186 for (; iter != endIter; ++iter)
199 newline1 = (iter-begIter);
217 if (newline0 == newline1 || newline1 ==
pos)
222 size_t col =
std::min(newline0, newline1);
235 os <<
"^^^^ near here\n";
238 for (; iter != endIter; ++iter)
genericRagelLemonDriver()
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const std::string & content() const
A class for handling character strings derived from std::string.
label min(const labelHashSet &set, label minValue=labelMax)
std::reference_wrapper< const std::string > content_
OBJstream os(runTime.globalPath()/outputName)
constexpr auto cend(const C &c) -> decltype(c.end())
std::string::const_iterator cend() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
std::string::const_iterator cbegin() const
Ostream & printBuffer(Ostream &os) const
constexpr auto cbegin(const C &c) -> decltype(c.begin())
const dimensionedScalar c
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void reportFatal(const std::string &msg) const
dimensionedScalar pos(const dimensionedScalar &ds)