LORENE
cmp_poisson_regu.C
1 /*
2  * Method of regularization of the source of Poisson equation
3  *
4  * (see file cmp.h for documentation).
5  *
6  */
7 
8 /*
9  * Copyright (c) 2000-2001 Keisuke Taniguchi
10  *
11  * This file is part of LORENE.
12  *
13  * LORENE is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * LORENE is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with LORENE; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26  *
27  */
28 
29 
30 char cmp_poisson_regu_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_poisson_regu.C,v 1.2 2014/10/13 08:52:48 j_novak Exp $" ;
31 
32 /*
33  * $Id: cmp_poisson_regu.C,v 1.2 2014/10/13 08:52:48 j_novak Exp $
34  * $Log: cmp_poisson_regu.C,v $
35  * Revision 1.2 2014/10/13 08:52:48 j_novak
36  * Lorene classes and functions now belong to the namespace Lorene.
37  *
38  * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
39  * LORENE
40  *
41  * Revision 2.9 2000/09/07 15:29:14 keisuke
42  * Add a new argument Cmp& uu.
43  *
44  * Revision 2.8 2000/09/04 15:53:08 keisuke
45  * Insert the polar and azimuthal parts of duu_div into Map_af::poisson_regular.
46  *
47  * Revision 2.7 2000/09/04 13:19:34 keisuke
48  * Suppress the version without parameters.
49  * Express the code by using Map_af::poisson_regular.
50  *
51  * Revision 2.6 2000/08/31 15:58:53 keisuke
52  * Modify the polar and azimuthal derivatives of uu_div.
53  *
54  * Revision 2.5 2000/08/30 16:01:52 keisuke
55  * Change the constant "R" into "mp_radial->dxdr".
56  *
57  * Revision 2.4 2000/08/29 13:52:19 keisuke
58  * Add the polar and azimuthal derivatives of the diverging potential.
59  * Modify the argumants.
60  *
61  * Revision 2.3 2000/08/29 08:39:37 keisuke
62  * Minor change.
63  *
64  * Revision 2.2 2000/08/28 15:57:39 keisuke
65  * *** empty log message ***
66  *
67  * Revision 2.1 2000/08/28 15:54:18 keisuke
68  * Add "int nzet" in the argumant.
69  *
70  * Revision 2.0 2000/08/25 08:43:38 keisuke
71  * *** empty log message ***
72  *
73  *
74  * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_poisson_regu.C,v 1.2 2014/10/13 08:52:48 j_novak Exp $
75  *
76  */
77 
78 // Header Lorene
79 #include "cmp.h"
80 #include "tenseur.h"
81 #include "map.h"
82 #include "param.h"
83 
84 namespace Lorene {
85 
86 //******************************************************************
87 
88 void Cmp::poisson_regular(int k_div, int nzet, double unsgam1, Param& par,
89  Cmp& uu, Cmp& uu_regu, Cmp& uu_div,
90  Tenseur& duu_div,
91  Cmp& source_regu, Cmp& source_div) const {
92 
93  mp->poisson_regular(*this, k_div, nzet, unsgam1, par,
94  uu, uu_regu, uu_div, duu_div,
95  source_regu, source_div) ;
96 
97 
98 }
99 
100 
101 }
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Definition: cmp.h:446
Lorene prototypes.
Definition: app_hor.h:64
Parameter storage.
Definition: param.h:125
virtual void poisson_regular(const Cmp &source, int k_div, int nzet, double unsgam1, Param &par, Cmp &uu, Cmp &uu_regu, Cmp &uu_div, Tenseur &duu_div, Cmp &source_regu, Cmp &source_div) const =0
Computes the solution of a scalar Poisson equation.
const Map * mp
Reference mapping.
Definition: cmp.h:451
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Definition: tenseur.h:301
void poisson_regular(int k_div, int nzet, double unsgam1, Param &par, Cmp &uu, Cmp &uu_regu, Cmp &uu_div, Tenseur &duu_div, Cmp &source_regu, Cmp &source_div) const
Solves the scalar Poisson equation with *this as a source (version with parameters to control the res...