9#include "BlockDescriptor.h"
50 UTIL_THROW(
"Error: Negative block vertexId 0");
53 UTIL_THROW(
"Error: Negative block vertexId 1");
56 UTIL_THROW(
"Error: Equal vertex indices in block");
60 propagatorId[0] = block.
id();
63 outPropagatorIds_.append(propagatorId);
65 inPropagatorIds_.append(propagatorId);
69 outPropagatorIds_.append(propagatorId);
71 inPropagatorIds_.append(propagatorId);
73 UTIL_THROW(
"Neither block vertex id matches this vertex");
Description of a linear homopolymer block within a block polymer.
int vertexId(int i) const
Get id of an associated vertex.
int id() const
Get the id of this block.
void setId(int id)
Set the integer identifier of this vertex.
void addBlock(BlockDescriptor const &block)
Add block to the list of attached blocks.
int id() const
Get the id of this vertex.
An array of exactly 2 objects.
File containing preprocessor macros for error handling.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
C++ namespace for polymer self-consistent field theory (PSCF).