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

« back to all changes in this revision

Viewing changes to nfem/pform_element/form_element_list.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:
25
25
namespace rheolef {
26
26
using namespace std;
27
27
 
28
 
template<class T>
29
 
form_element_rep<T>* 
30
 
form_element_rep<T>::make_ptr (
 
28
template<class T, class M>
 
29
form_element_rep<T,M>* 
 
30
form_element_rep<T,M>::make_ptr (
31
31
    string                name,
32
 
    const element<T>&     X,
33
 
    const element<T>&     Y,
34
 
    const geo_basic<T>&   omega)
 
32
    const element_type&   X,
 
33
    const element_type&   Y,
 
34
    const geo_type&       omega)
35
35
{
36
36
  // TODO: use gperf instead of a long if-else test suite
37
37
  if (name == "")          return 0;
38
 
  if (name == "mass")      return new_macro (mass<T>(X,Y,omega));
39
 
  if (name == "grad_grad") return new_macro (grad_grad<T>(X,Y,omega));
 
38
  if (name == "mass")      return new_macro ((mass<T,M>)(X,Y,omega));
 
39
  if (name == "grad_grad") return new_macro ((grad_grad<T,M>)(X,Y,omega));
40
40
  error_macro ("undefined form_element `" << name << "'");
41
41
  return 0;
42
42
}
43
43
// ----------------------------------------------------------------------------
44
44
// instanciation in library
45
45
// ----------------------------------------------------------------------------
46
 
template class form_element_rep<Float>;
 
46
template class form_element_rep<Float,sequential>;
 
47
 
 
48
#ifdef _RHEOLEF_HAVE_MPI
 
49
template class form_element_rep<Float,distributed>;
 
50
#endif // _RHEOLEF_HAVE_MPI
47
51
 
48
52
} // namespace rheolef