field_seq_put_bamg_bb.cc
Go to the documentation of this file.
//
// bamg .bb output, for mesh adaptation
//
// author: Pierre.Saramito@imag.fr
//
// date: 12 may 1997 update: 23 oct 2011
//
#include "rheolef/field.h"
#include "rheolef/piola_util.h"
#include "rheolef/rheostream.h"
#include "rheolef/iorheo.h"
#include "rheolef/field_evaluate.h"
#include "rheolef/space_component.h"
#include "rheolef/field_expr.h"
namespace rheolef {
using namespace std;
template <class T>
odiststream&
field_put_bamg_bb (odiststream& ods, const field_basic<T,sequential>& uh)
{
typedef typename field_basic<T,sequential>::size_type size_type;
ostream& os = ods.os();
check_macro (uh.valued() == "scalar", uh.valued() << "-valued: not yet");
os << "2 1 " << uh.ndof() << " 2" << endl;
for (typename field_basic<T,sequential>::const_iterator iter = uh.begin_dof(), last = uh.end_dof();
iter != last; ++iter) {
os << *iter << endl;
}
return ods;
}
// ----------------------------------------------------------------------------
// instanciation in library
// ----------------------------------------------------------------------------
template odiststream& field_put_bamg_bb<Float> (odiststream&, const field_basic<Float,sequential>&);
}// namespace rheolef
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::field_basic::end_dof
iterator end_dof()
Definition: field.h:509
rheolef::field_basic::begin_dof
iterator begin_dof()
Definition: field.h:501
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::const_iterator
Definition: field.h:518
rheolef::field_basic::size_type
std::size_t size_type
Definition: field.h:239