diff src/femfenics_factory.cc @ 247:8ca45824938e

Add factories hierarchy for matrices' and vectors' assembly
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Sat, 12 Jul 2014 12:30:13 +0200
parents
children 8f309b85bb7e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/femfenics_factory.cc	Sat Jul 12 12:30:13 2014 +0200
@@ -0,0 +1,27 @@
+/*
+ Copyright (C) 2014 Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
+
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ details.
+
+ You should have received a copy of the GNU General Public License along with
+ this program; if not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "femfenics_factory.h"
+#include "uBLAS_factory.h"
+
+femfenics_base_factory const&
+femfenics_factory::factory (void) const
+  {
+    //FIXME: Since just one backend has its interface implemented, this method
+    //       doesn't check which one to provide, yet
+    return uBLAS_factory::instance ();
+  }
\ No newline at end of file