~ubuntu-branches/ubuntu/saucy/rheolef/saucy

« back to all changes in this revision

Viewing changes to nfem/pform_element/mass.cc

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Saramito
  • Date: 2011-03-23 11:14:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110323111426-cjvhey7lxt6077ty
Tags: 5.93-1
* New upstream release (minor changes):
  - some extra warning message deleted in heap_allocator
  - graphic output with mayavi2 fixed
  - add doc refman in .info and .pdf format

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
using namespace std;
25
25
using namespace ublas;
26
26
 
27
 
template<class T>
 
27
template<class T, class M>
28
28
void 
29
 
mass<T>::operator() (const geo_element& K, ublas::matrix<T>& m) const
 
29
mass<T,M>::operator() (const geo_element& K, ublas::matrix<T>& m) const
30
30
{
31
31
  build_scalar_mass (K, m);
32
32
}
33
 
template<class T>
 
33
template<class T, class M>
34
34
void
35
 
mass<T>::initialize ()
 
35
mass<T,M>::initialize ()
36
36
{
37
 
    warning_macro ("call set_n_derivative...");
38
37
    this->set_n_derivative(0);
39
38
}
40
39
// ----------------------------------------------------------------------------
41
40
// instanciation in library
42
41
// ----------------------------------------------------------------------------
43
 
template class mass<Float>;
 
42
template class mass<Float,sequential>;
 
43
 
 
44
#ifdef _RHEOLEF_HAVE_MPI
 
45
template class mass<Float,distributed>;
 
46
#endif // _RHEOLEF_HAVE_MPI
44
47
 
45
48
} // namespace rheolef