Browse Source

Fixed some copy-paste errors.

tempestpy_adaptions
dehnert 12 years ago
parent
commit
cbe162ab84
  1. 4
      src/exceptions/NoConvergence.h
  2. 2
      src/utility/vector.h

4
src/exceptions/NoConvergence.h

@ -26,11 +26,11 @@ class NoConvergence : public std::exception
this->maxIterations = maxIterations; this->maxIterations = maxIterations;
} }
#else #else
InvalidSettings() : exception() {
NoConvergence() : exception() {
iterations = -1; iterations = -1;
maxIterations = -1; maxIterations = -1;
} }
InvalidSettings(const char * const s, int iterations, int maxIterations): exception() {
NoConvergence(const char * const s, int iterations, int maxIterations): exception() {
this->iterations = iterations; this->iterations = iterations;
this->maxIterations = maxIterations; this->maxIterations = maxIterations;
} }

2
src/utility/vector.h

@ -32,7 +32,7 @@ void setVectorValues(std::vector<T>* vector, const mrmc::storage::BitVector& pos
template<class T> template<class T>
void setVectorValues(Eigen::Matrix<T, -1, 1, 0, -1, 1>* eigenVector, const mrmc::storage::BitVector& positions, T value) { void setVectorValues(Eigen::Matrix<T, -1, 1, 0, -1, 1>* eigenVector, const mrmc::storage::BitVector& positions, T value) {
for (auto position : positions) { for (auto position : positions) {
(*vector)(position, 0) = value;
(*eigenVector)(position, 0) = value;
} }
} }

Loading…
Cancel
Save