Rheolef
7.1
an efficient C++ finite element environment
field_seq_put_bamg_bb.cc
Go to the documentation of this file.
1
//
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::end_dof
iterator end_dof()
Definition:
field.h:509
rheolef::field_basic::ndof
size_type ndof() const
Definition:
field.h:341
rheolef::odiststream::os
std::ostream & os()
Definition:
diststream.h:236
rheolef::size_type
size_t size_type
Definition:
basis_get.cc:76
rheolef::field_basic
Definition:
field_expr_utilities.h:38
rheolef
This file is part of Rheolef.
Definition:
compiler_eigen.h:37
rheolef::field_put_bamg_bb< Float >
template odiststream & field_put_bamg_bb< Float >(odiststream &, const field_basic< Float, sequential > &)
rheolef::odiststream
odiststream: see the diststream page for the full documentation
Definition:
diststream.h:126
rheolef::field_put_bamg_bb
odiststream & field_put_bamg_bb(odiststream &, const field_basic< T, sequential > &)
Definition:
field_seq_put_bamg_bb.cc:41
rheolef::field_basic::valued
const std::string & valued() const
Definition:
field.h:305
rheolef::field_basic::begin_dof
iterator begin_dof()
Definition:
field.h:501
rheolef::field_basic::const_iterator
Definition:
field.h:518
rheolef::field_basic::size_type
std::size_t size_type
Definition:
field.h:239