~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to nfem/plib/form.cc

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2012-05-14 14:02:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120514140209-dzbdlidkotyflf9e
Tags: 6.1-1
[ Pierre Saramito ]
* New upstream release 6.1 (minor changes):
  - support arbitrarily polynomial order Pk
  - source code supports g++-4.7 (closes: #671996)

[ Sylvestre Ledru ]
* update of the watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "rheolef/form_assembly.h"
25
25
#include "rheolef/field_expr.h"
26
26
#include "rheolef/field_expr_ops.h"
 
27
#include "rheolef/band.h"
27
28
 
28
29
 
29
30
namespace rheolef { 
140
141
{
141
142
  form_init (name, true, weight, qopt);
142
143
}
 
144
template<class T, class M>
 
145
form_basic<T,M>::form_basic (
 
146
    const space_type& X,
 
147
    const space_type& Y,
 
148
    const std::string& name,
 
149
    const band_basic<T,M>& bh,
 
150
    quadrature_option_type qopt)
 
151
  : _X(X), 
 
152
    _Y(Y), 
 
153
    _uu(),
 
154
    _ub(),
 
155
    _bu(),
 
156
    _bb()
 
157
{
 
158
  const geo_basic<T,M>& lambda = _X.get_geo();
 
159
  const geo_basic<T,M>& gamma  = bh.level_set();
 
160
  check_macro (_X.get_geo() == bh.band(), "form on band: first space should be defined on the band \""
 
161
        << lambda.name() << "\"; find \"" << _X.get_geo().name() << "\"");
 
162
  check_macro (_Y.get_geo() == bh.band(), "form on band: second space should be defined on the band \""
 
163
        << lambda.name() << "\"; find \"" << _Y.get_geo().name() << "\"");
 
164
  form_element<T,M> form_e (name, _X, _Y, gamma, qopt);
 
165
  form_e.set_band (bh);
 
166
  assembly (form_e, gamma, gamma);
 
167
}
143
168
// ----------------------------------------------------------------------------
144
169
// blas2
145
170
// ----------------------------------------------------------------------------