26 if (buffer ==
"Closed" || buffer ==
"closed") {
27 policy = Species::Closed;
29 if (buffer ==
"Open" || buffer ==
"open") {
30 policy = Species::Open;
32 UTIL_THROW(
"Invalid Species::Ensemble string in operator >>");
42 if (policy == Species::Closed) {
45 if (policy == Species::Open) {
48 if (policy == Species::Unknown) {
51 std::cout <<
"Invalid Species::Ensemble value on input" << std::endl;
52 UTIL_THROW(
"Unrecognized value for Species::Ensemble");
Base class for a molecular species (polymer or solvent).
Species()
Default constructor.
Ensemble
Statistical ensemble for number of molecules.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.