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 char cmp_pde_ylm_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_ylm.C,v 1.2 2014/10/13 08:52:48 j_novak Exp $" ;
30 
31 /*
32  * $Id: cmp_pde_ylm.C,v 1.2 2014/10/13 08:52:48 j_novak Exp $
33  * $Log: cmp_pde_ylm.C,v $
34  * Revision 1.2 2014/10/13 08:52:48 j_novak
35  * Lorene classes and functions now belong to the namespace Lorene.
36  *
37  * Revision 1.1 2004/12/29 16:27:48 k_taniguchi
38  * *** empty log message ***
39  *
40  *
41  * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_ylm.C,v 1.2 2014/10/13 08:52:48 j_novak Exp $
42  *
43  */
44 
45 // Lorene headers
46 #include "map.h"
47 #include "cmp.h"
48 #include "param.h"
49 
50  //-----------------------------------//
51  // Scalar Poisson equation //
52  //-----------------------------------//
53 
54 // Version without parameters
55 // --------------------------
56 
57 namespace Lorene {
58 Cmp Cmp::poisson_ylm(int nylm, double* intvec) const {
59 
60  Param bidon ;
61  Cmp resu(*mp) ;
62 
63  mp->poisson_ylm(*this, bidon, resu, nylm, intvec) ;
64 
65  return resu ;
66 }
67 
68 // Version with parameters
69 // -----------------------
70 
71 void Cmp::poisson_ylm(Param& par, Cmp& uu, int nylm, double* intvec) const {
72 
73  mp->poisson_ylm(*this, par, uu, nylm, intvec) ;
74 
75 }
76 }
Lorene
Lorene prototypes.
Definition: app_hor.h:64
Lorene::Cmp::mp
const Map * mp
Reference mapping.
Definition: cmp.h:451
Lorene::Cmp::Cmp
Cmp(const Map &map)
Constructor from mapping.
Definition: cmp.C:208