rheolef  7.0
field_seq_put_bamg_bb.cc
Go to the documentation of this file.
1 #include "rheolef/field.h"
2 #include "rheolef/piola.h"
3 #include "rheolef/rheostream.h"
4 #include "rheolef/iorheo.h"
5 #include "rheolef/field_evaluate.h"
6 #include "rheolef/space_component.h"
7 #include "rheolef/field_expr_v2_linear.h"
8 
9 namespace rheolef {
10 using namespace std;
11 
12 template <class T>
13 odiststream&
15 {
17  ostream& os = ods.os();
18  check_macro (uh.valued() == "scalar", uh.valued() << "-valued: not yet");
19  os << "2 1 " << uh.ndof() << " 2" << endl;
20  for (typename field_basic<T,sequential>::const_iterator iter = uh.begin_dof(), last = uh.end_dof();
21  iter != last; ++iter) {
22  os << *iter << endl;
23  }
24  return ods;
25 }
27 
28 }// namespace rheolef
size_type ndof() const
Definition: field.h:318
std::size_t size_type
Definition: field.h:234
field - piecewise polynomial finite element field
idiststream, odiststream - distributed interface for large data streams
Definition: diststream.h:68
STL namespace.
irheostream, orheostream - large data streams
Definition: compiler.h:7
const std::string & valued() const
Definition: field.h:288
#define check_macro(ok_condition, message)
Definition: compiler.h:104
odiststream & field_put_bamg_bb(odiststream &, const field_basic< T, sequential > &)
template odiststream & field_put_bamg_bb< Float >(odiststream &, const field_basic< Float, sequential > &)
iterator begin_dof()
Definition: field.h:433
iterator end_dof()
Definition: field.h:441
std::ostream & os()
Definition: diststream.h:166