Merge remote-tracking branch 'origin/master' into windows
[scilab.git] / scilab / modules / differential_equations / sci_gateway / cpp / differential_equations_gw.cpp
1 /*
2  *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  *  Copyright (C) 2014 - Scilab Enterprises - Vincent COUVERT
4  *
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  *
7  * This file is hereby licensed under the terms of the GNU GPL v2.0,
8  * pursuant to article 5.3.4 of the CeCILL v.2.1.
9  * This file was originally licensed under the terms of the CeCILL v2.1,
10  * and continues to be available under such terms.
11  * For more information, see the COPYING file which you should have received
12  * along with this program.
13  *
14  */
15
16 #include "differential_equations_gw.hxx"
17 #include "function.hxx"
18 #include "context.hxx"
19
20 #define MODULE_NAME "differential_equations"
21
22 int DifferentialEquationsModule::Load()
23 {
24     symbol::Context::getInstance()->addFunction(types::Function::createFunction("ode", &sci_ode, NULL, MODULE_NAME));
25     symbol::Context::getInstance()->addFunction(types::Function::createFunction("impl", &sci_impl, NULL, MODULE_NAME));
26     symbol::Context::getInstance()->addFunction(types::Function::createFunction("dassl", &sci_dassl, NULL, MODULE_NAME));
27     symbol::Context::getInstance()->addFunction(types::Function::createFunction("dasrt", &sci_dasrt, NULL, MODULE_NAME));
28     symbol::Context::getInstance()->addFunction(types::Function::createFunction("daskr", &sci_daskr, NULL, MODULE_NAME));
29     symbol::Context::getInstance()->addFunction(types::Function::createFunction("odedc", &sci_odedc, NULL, MODULE_NAME));
30     symbol::Context::getInstance()->addFunction(types::Function::createFunction("intg", &sci_intg, NULL, MODULE_NAME));
31     symbol::Context::getInstance()->addFunction(types::Function::createFunction("int2d", &sci_int2d, NULL, MODULE_NAME));
32     symbol::Context::getInstance()->addFunction(types::Function::createFunction("int3d", &sci_int3d, NULL, MODULE_NAME));
33     symbol::Context::getInstance()->addFunction(types::Function::createFunction("feval", &sci_feval, NULL, MODULE_NAME));
34     symbol::Context::getInstance()->addFunction(types::Function::createFunction("bvode", &sci_bvode, NULL, MODULE_NAME));
35     return 1;
36 }