Debian Codegraph @

C++/Source/Cmp/cmp_pde.C

raw
1 /*
2 * Methods of the class Cmp for various partial differential equations
3 */
4
5 /*
6 * Copyright (c) 1999-2001 Eric Gourgoulhon
7 * Copyright (c) 1999-2001 Philippe Grandclement
8 * Copyright (c) 2000-2001 Jerome Novak
9 *
10 * This file is part of LORENE.
11 *
12 * LORENE is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * LORENE is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with LORENE; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 */
27
28
29 char cmp_pde_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde.C,v 1.5 2014/10/13 08:52:47 j_novak Exp $" ;
30
31 /*
32 * $Id: cmp_pde.C,v 1.5 2014/10/13 08:52:47 j_novak Exp $
33 * $Log: cmp_pde.C,v $
34 * Revision 1.5 2014/10/13 08:52:47 j_novak
35 * Lorene classes and functions now belong to the namespace Lorene.
36 *
37 * Revision 1.4 2005/08/30 08:35:12 p_grandclement
38 * Addition of the Tau version of the vectorial Poisson equation for the Tensors
39 *
40 * Revision 1.3 2004/03/01 09:54:59 j_novak
41 * Suppression of the Cmp version of avance_dalembert (now only with Scalar's)
42 *
43 * Revision 1.2 2002/01/03 15:30:27 j_novak
44 * Some comments modified.
45 *
46 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
47 * LORENE
48 *
49 * Revision 1.8 2001/10/16 09:59:00 novak
50 * deletion of source(t=jm1) from the argument list of d'Alembert solvers
51 *
52 * Revision 1.7 2001/07/19 14:04:07 novak
53 * new argument list for Cmp::avance_dalembert
54 *
55 * Revision 1.6 2000/12/04 15:07:55 novak
56 * *** empty log message ***
57 *
58 * Revision 1.5 2000/10/19 14:16:43 novak
59 * Ajout de Cmp::avance_dalembert (etat experimental)
60 *
61 * Revision 1.4 1999/12/21 14:47:30 eric
62 * *** empty log message ***
63 *
64 * Revision 1.3 1999/12/21 13:04:00 eric
65 * Changement de prototype de la routine poisson avec Param& : la solution est
66 * desormais passee en argument (et non plus en valeur de retour)
67 * pour permettre l'initialisation de methodes de resolution iteratives.
68 *
69 * Revision 1.2 1999/12/21 10:07:25 eric
70 * Il y a desormais deux versions de poisson: une sans Param et une
71 * avec Param.
72 *
73 * Revision 1.1 1999/12/02 14:30:13 eric
74 * Initial revision
75 *
76 *
77 * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde.C,v 1.5 2014/10/13 08:52:47 j_novak Exp $
78 *
79 */
80
81 // Header Lorene:
82 #include "map.h"
83 #include "cmp.h"
84 #include "param.h"
85
86 //-----------------------------------//
87 // Scalar Poisson equation //
88 //-----------------------------------//
89
90 // Version without parameters
91 // --------------------------
92
93 namespace Lorene {
94 Cmp Cmp::poisson() const {
95
96 Param bidon ;
97 Cmp resu(*mp) ;
98
99 mp->poisson(*this, bidon, resu) ;
100
101 return resu ;
102 }
103
104 // Version with parameters
105 // -----------------------
106
107 void Cmp::poisson(Param& par, Cmp& uu) const {
108
109 mp->poisson(*this, par, uu) ;
110
111 }
112
113 //--------------------------------------------------//
114 // Scalar Poisson equation with a Tau method //
115 //--------------------------------------------------//
116
117 // Version without parameters
118 // --------------------------
119
120 Cmp Cmp::poisson_tau() const {
121
122 Param bidon ;
123 Cmp resu(*mp) ;
124
125 mp->poisson_tau(*this, bidon, resu) ;
126
127 return resu ;
128 }
129
130 // Version with parameters
131 // -----------------------
132
133 void Cmp::poisson_tau(Param& par, Cmp& uu) const {
134
135 mp->poisson_tau(*this, par, uu) ;
136
137 }
138
139 }