Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
field_seq_put_bamg_bb.cc
Go to the documentation of this file.
1
21//
22// bamg .bb output, for mesh adaptation
23//
24// author: Pierre.Saramito@imag.fr
25//
26// date: 12 may 1997 update: 23 oct 2011
27//
28#include "rheolef/field.h"
29#include "rheolef/piola_util.h"
30#include "rheolef/rheostream.h"
31#include "rheolef/iorheo.h"
32#include "rheolef/field_evaluate.h"
33#include "rheolef/space_component.h"
34#include "rheolef/field_expr.h"
35
36namespace rheolef {
37using namespace std;
38
39template <class T>
40odiststream&
42{
44 ostream& os = ods.os();
45 check_macro (uh.valued() == "scalar", uh.valued() << "-valued: not yet");
46 os << "2 1 " << uh.ndof() << " 2" << endl;
47 for (typename field_basic<T,sequential>::const_iterator iter = uh.begin_dof(), last = uh.end_dof();
48 iter != last; ++iter) {
49 os << *iter << endl;
50 }
51 return ods;
52}
53// ----------------------------------------------------------------------------
54// instanciation in library
55// ----------------------------------------------------------------------------
57
58}// namespace rheolef
field::size_type size_type
Definition branch.cc:430
iterator begin_dof()
Definition field.h:595
iterator end_dof()
Definition field.h:603
size_type ndof() const
Definition field.h:298
const std::string & valued() const
Definition field.h:274
std::size_t size_type
Definition field.h:225
odiststream: see the diststream page for the full documentation
Definition diststream.h:137
std::ostream & os()
Definition diststream.h:247
check_macro(expr1.have_homogeneous_space(Xh1), "dual(expr1,expr2); expr1 should have homogeneous space. HINT: use dual(interpolate(Xh, expr1),expr2)")
This file is part of Rheolef.
template odiststream & field_put_bamg_bb< Float >(odiststream &, const field_basic< Float, sequential > &)
odiststream & field_put_bamg_bb(odiststream &, const field_basic< T, sequential > &)
STL namespace.