[cig-commits] r13751 - cs/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Wed Dec 17 02:33:07 PST 2008


Author: luis
Date: 2008-12-17 02:33:06 -0800 (Wed, 17 Dec 2008)
New Revision: 13751

Modified:
   cs/cigma/trunk/src/FE.cpp
   cs/cigma/trunk/src/FE.h
Log:
New constructor for class cigma::FE

Modified: cs/cigma/trunk/src/FE.cpp
===================================================================
--- cs/cigma/trunk/src/FE.cpp	2008-12-17 10:33:04 UTC (rev 13750)
+++ cs/cigma/trunk/src/FE.cpp	2008-12-17 10:33:06 UTC (rev 13751)
@@ -12,6 +12,7 @@
 shared_ptr<FE> FE::New(const FE_Info& fe_info)
 {
     TRI_LOG_STR("FE::New()");
+    TRI_LOG(fe_info);
 
     shared_ptr<FE> fe;
 
@@ -30,11 +31,21 @@
 
 FE::FE()
 {
-    jxw = 0;
-    basis_tab = 0;
-    basis_jet = 0;
+    this->jxw = 0;
+    this->basis_tab = 0;
+    this->basis_jet = 0;
 }
 
+FE::FE(Cell::type celltype)
+{
+    this->jxw = 0;
+    this->basis_tab = 0;
+    this->basis_jet = 0;
+    this->cell = Cell::New(celltype);
+    this->quadrature = Quadrature::default_rule(celltype);
+    this->init_basis();
+}
+
 FE::FE(const FE& other)
 {
     this->init(other.quadrature);

Modified: cs/cigma/trunk/src/FE.h
===================================================================
--- cs/cigma/trunk/src/FE.h	2008-12-17 10:33:04 UTC (rev 13750)
+++ cs/cigma/trunk/src/FE.h	2008-12-17 10:33:06 UTC (rev 13751)
@@ -18,6 +18,7 @@
 {
 public:
     FE();
+    FE(Cell::type celltype);
     FE(const FE& other);
     ~FE();
 



More information about the CIG-COMMITS mailing list