35 const std::string& str,
45 for (
const auto& item : items)
47 const std::string
s(item.str());
51 if (scalarRange::parse(
s,
range))
57 Info<<
"Bad scalar-range parsing: " <<
s <<
endl;
void resize(const label len)
Adjust allocated size of list.
Sub-ranges of a string with a structure similar to std::match_results, but without the underlying reg...
Scalar bounds to be used as a unary predicate.
A collection of scalar bounds to be used as a unary predicate.
static scalarRanges parse(const std::string &str, bool report=true)
Construct by parsing string for scalar ranges.
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))
Foam::SubStrings< StringType > splitAny(const StringType &str, const std::string &delim)
Split string into sub-strings using any characters in delimiter.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.