OomphHelpers.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef OOMPHHELPERS_H
6 #define OOMPHHELPERS_H
7 #include "Vector.h"
8 
9 namespace oomph {
17  std::ostream &operator<<(std::ostream &os, const Vector<double> &a) {
18  if (not a.empty()) {
19  os << a[0];
20  }
21  for (int i = 1; i < a.size(); i++) {
22  os << ' ' << a[i];
23  }
24  return os;
25  }
26 }
27 
28 #endif //OOMPHHELPERS_H
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const Scalar * a
Definition: level2_cplx_impl.h:32
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
std::ostream & operator<<(std::ostream &os, const Vector< double > &a)
Definition: OomphHelpers.h:17