# | Line 135 | Line 135 | SimInfo::~SimInfo() { | |
---|---|---|
135 | ||
136 | } | |
137 | ||
138 | + | int SimInfo::getNGlobalConstraints() { |
139 | + | int nGlobalConstraints; |
140 | + | #ifdef IS_MPI |
141 | + | MPI_Allreduce(&nConstraints_, &nGlobalConstraints, 1, MPI_INT, MPI_SUM, |
142 | + | MPI_COMM_WORLD); |
143 | + | #else |
144 | + | nGlobalConstraints = nConstraints_; |
145 | + | #endif |
146 | + | return nGlobalConstraints; |
147 | + | } |
148 | ||
149 | bool SimInfo::addMolecule(Molecule* mol) { | |
150 | MoleculeIterator i; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |