KADATH
bbh_add_eq.cpp
1 /*
2  Copyright 2020 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 
22 #include "bbh.hpp"
23 #include "system_of_eqs.hpp"
24 #include "name_tools.hpp"
25 namespace Kadath {
26 
27 
28 void Space_bbh::add_matching (System_of_eqs& sys, const char* name, int nused, Array<int>** pused) {
29  sys.add_eq_matching (4, CHI_ONE_BC, name, nused, pused) ;
30  sys.add_eq_matching (5, ETA_PLUS_BC, name, nused, pused) ;
31  sys.add_eq_matching (6, ETA_PLUS_BC, name, nused, pused) ;
32  sys.add_eq_matching (7, CHI_ONE_BC, name, nused, pused) ;
33 }
34 
35 void Space_bbh::add_matching (System_of_eqs& sys, const char* name, const List_comp& list) {
36  add_matching (sys, name, list.get_ncomp(), list.get_pcomp()) ;
37 }
38 
39 }
Class for storing a list of tensorial components.
Definition: list_comp.hpp:33
int get_ncomp() const
Returns the number of components.
Definition: list_comp.hpp:64
Array< int > ** get_pcomp() const
Returns a pointer of the liste.
Definition: list_comp.hpp:69
void add_matching(System_of_eqs &syst, const char *rac, const List_comp &list)
Sets a matching condition accross all the bispheric domain (intended for a second order equation).
Definition: bbh_add_eq.cpp:35
Class used to describe and solve a system of equations.
virtual void add_eq_matching(int dom, int bb, const char *eq, int n_cmp=-1, Array< int > **p_cmp=nullptr)
Addition of an equation describing a matching condition between two domains (standard setting)
Definition: add_eq.cpp:198