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
31
32/*
33 * $Id: cmp_poisson_regu.C,v 1.3 2016/12/05 16:17:49 j_novak Exp $
34 * $Log: cmp_poisson_regu.C,v $
35 * Revision 1.3 2016/12/05 16:17:49 j_novak
36 * Suppression of some global variables (file names, loch, ...) to prevent redefinitions
37 *
38 * Revision 1.2 2014/10/13 08:52:48 j_novak
39 * Lorene classes and functions now belong to the namespace Lorene.
40 *
41 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
42 * LORENE
43 *
44 * Revision 2.9 2000/09/07 15:29:14 keisuke
45 * Add a new argument Cmp& uu.
46 *
47 * Revision 2.8 2000/09/04 15:53:08 keisuke
48 * Insert the polar and azimuthal parts of duu_div into Map_af::poisson_regular.
49 *
50 * Revision 2.7 2000/09/04 13:19:34 keisuke
51 * Suppress the version without parameters.
52 * Express the code by using Map_af::poisson_regular.
53 *
54 * Revision 2.6 2000/08/31 15:58:53 keisuke
55 * Modify the polar and azimuthal derivatives of uu_div.
56 *
57 * Revision 2.5 2000/08/30 16:01:52 keisuke
58 * Change the constant "R" into "mp_radial->dxdr".
59 *
60 * Revision 2.4 2000/08/29 13:52:19 keisuke
61 * Add the polar and azimuthal derivatives of the diverging potential.
62 * Modify the argumants.
63 *
64 * Revision 2.3 2000/08/29 08:39:37 keisuke
65 * Minor change.
66 *
67 * Revision 2.2 2000/08/28 15:57:39 keisuke
68 * *** empty log message ***
69 *
70 * Revision 2.1 2000/08/28 15:54:18 keisuke
71 * Add "int nzet" in the argumant.
72 *
73 * Revision 2.0 2000/08/25 08:43:38 keisuke
74 * *** empty log message ***
75 *
76 *
77 * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_poisson_regu.C,v 1.3 2016/12/05 16:17:49 j_novak Exp $
78 *
79 */
80
81// Header Lorene
82#include "cmp.h"
83#include "tenseur.h"
84#include "map.h"
85#include "param.h"
86
87namespace Lorene {
88
89//******************************************************************
90
91void Cmp::poisson_regular(int k_div, int nzet, double unsgam1, Param& par,
92 Cmp& uu, Cmp& uu_regu, Cmp& uu_div,
93 Tenseur& duu_div,
94 Cmp& source_regu, Cmp& source_div) const {
95
96 mp->poisson_regular(*this, k_div, nzet, unsgam1, par,
97 uu, uu_regu, uu_div, duu_div,
98 source_regu, source_div) ;
99
100
101}
102
103
104}
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...
const Map * mp
Reference mapping.
Definition cmp.h:451
Cmp(const Map &map)
Constructor from mapping.
Definition cmp.C:211
Parameter storage.
Definition param.h:125
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Definition tenseur.h:304
Lorene prototypes.
Definition app_hor.h:67