Rheolef
7.2
an efficient C++ finite element environment
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
36
namespace
rheolef
{
37
using namespace
std
;
38
39
template
<
class
T>
40
odiststream&
41
field_put_bamg_bb
(
odiststream
& ods,
const
field_basic<T,sequential>
& uh)
42
{
43
typedef
typename
field_basic<T,sequential>::size_type
size_type
;
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
// ----------------------------------------------------------------------------
56
template
odiststream
&
field_put_bamg_bb<Float>
(
odiststream
&,
const
field_basic<Float,sequential>
&);
57
58
}
// namespace rheolef
rheolef::field_basic::const_iterator
Definition:
field.h:612
rheolef::field_basic
Definition:
field.h:219
rheolef::field_basic::begin_dof
iterator begin_dof()
Definition:
field.h:595
rheolef::field_basic::end_dof
iterator end_dof()
Definition:
field.h:603
rheolef::field_basic::ndof
size_type ndof() const
Definition:
field.h:298
rheolef::field_basic::valued
const std::string & valued() const
Definition:
field.h:274
rheolef::field_basic::size_type
std::size_t size_type
Definition:
field.h:225
rheolef::odiststream
odiststream: see the diststream page for the full documentation
Definition:
diststream.h:137
rheolef::odiststream::os
std::ostream & os()
Definition:
diststream.h:247
rheolef::size_type
size_t size_type
Definition:
basis_get.cc:76
check_macro
check_macro(expr1.have_homogeneous_space(Xh1), "dual(expr1,expr2); expr1 should have homogeneous space. HINT: use dual(interpolate(Xh, expr1),expr2)")
rheolef
This file is part of Rheolef.
Definition:
compiler_eigen.h:39
rheolef::field_put_bamg_bb< Float >
template odiststream & field_put_bamg_bb< Float >(odiststream &, const field_basic< Float, sequential > &)
rheolef::field_put_bamg_bb
odiststream & field_put_bamg_bb(odiststream &, const field_basic< T, sequential > &)
Definition:
field_seq_put_bamg_bb.cc:41
std
STL namespace.