KADATH
oned_add_eq.cpp
1 /*
2  Copyright 2017 Philippe Grandclement
3 
4  This file is part of Kadath.
5 
6  Kadath is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Kadath is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Kadath. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #include "headcpp.hpp"
21 #include "oned.hpp"
22 #include "system_of_eqs.hpp"
23 #include "name_tools.hpp"
24 namespace Kadath {
25 void Space_oned::add_eq_ori (System_of_eqs& sys, const char* name) {
26 
27  Index pos (domains[0]->get_nbr_points()) ;
28  char auxi[LMAX] ;
29  trim_spaces (auxi, name) ;
30  sys.add_eq_val (0, auxi, pos) ;
31 }}
Class that gives the position inside a multi-dimensional Array.
Definition: index.hpp:38
void add_eq_ori(System_of_eqs &syst, const char *eq)
Adds an equation being the value of some field at the origin.
Definition: oned_add_eq.cpp:25
Domain ** domains
Pointers on the various Domains.
Definition: space.hpp:1368
Class used to describe and solve a system of equations.
virtual void add_eq_val(int dom, const char *eq, const Index &pos)
Addition of an equation saying that the value of a field must be zero at one collocation point.
Definition: add_eq.cpp:462