LORENE
cmp_pde_ylm.C
1 /*
2  * Methods of the class Cmp for partial differential equations
3  * with a multipole falloff condition at the outer boundary
4  *
5  * (see file cmp.h for documentation).
6  *
7  */
8 
9 /*
10  * Copyright (c) 2004 Joshua A. Faber
11  *
12  * This file is part of LORENE.
13  *
14  * LORENE is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License version 2
16  * as published by the Free Software Foundation.
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  * $Id: cmp_pde_ylm.C,v 1.3 2016/12/05 16:17:49 j_novak Exp $
33  * $Log: cmp_pde_ylm.C,v $
34  * Revision 1.3 2016/12/05 16:17:49 j_novak
35  * Suppression of some global variables (file names, loch, ...) to prevent redefinitions
36  *
37  * Revision 1.2 2014/10/13 08:52:48 j_novak
38  * Lorene classes and functions now belong to the namespace Lorene.
39  *
40  * Revision 1.1 2004/12/29 16:27:48 k_taniguchi
41  * *** empty log message ***
42  *
43  *
44  * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_ylm.C,v 1.3 2016/12/05 16:17:49 j_novak Exp $
45  *
46  */
47 
48 // Lorene headers
49 #include "map.h"
50 #include "cmp.h"
51 #include "param.h"
52 
53  //-----------------------------------//
54  // Scalar Poisson equation //
55  //-----------------------------------//
56 
57 // Version without parameters
58 // --------------------------
59 
60 namespace Lorene {
61 Cmp Cmp::poisson_ylm(int nylm, double* intvec) const {
62 
63  Param bidon ;
64  Cmp resu(*mp) ;
65 
66  mp->poisson_ylm(*this, bidon, resu, nylm, intvec) ;
67 
68  return resu ;
69 }
70 
71 // Version with parameters
72 // -----------------------
73 
74 void Cmp::poisson_ylm(Param& par, Cmp& uu, int nylm, double* intvec) const {
75 
76  mp->poisson_ylm(*this, par, uu, nylm, intvec) ;
77 
78 }
79 }
Lorene prototypes.
Definition: app_hor.h:67
const Map * mp
Reference mapping.
Definition: cmp.h:451
Cmp(const Map &map)
Constructor from mapping.
Definition: cmp.C:211