Mercurial > fem-fenics-eugenio
changeset 9:3bf1ca6397a2
New function. Load the environment for the fem-fenics pkg
* fem_init_env.cc: regyster the new class defined (mesh)
author | gedeone-octave <marco.vassallo@outlook.com> |
---|---|
date | Fri, 05 Jul 2013 18:26:54 +0200 |
parents | 30b7372376fb |
children | 277b60c6618a |
files | src/fem_init_env.cc |
diffstat | 1 files changed, 36 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/fem_init_env.cc Fri Jul 05 18:26:54 2013 +0200 @@ -0,0 +1,36 @@ +/* + Copyright (C) 2013 Marco Vassallo + + 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 2 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 <mesh.h> + +DEFUN_DLD (fem_init_env, args, , "initialize a fem-fenics environment") +{ + int nargin = args.length (); + octave_value retval; + + if (nargin < 0 || nargin > 0) + print_usage (); + else + { + mesh::register_type (); + mlock (); + std::cout << "mesh_type_loaded" << std::endl; + } + return retval; +}