LORENE
ope_helmholtz_minus_2d.C
1 /*
2  * Copyright (c) 2004 Philippe Grandclement
3  *
4  * This file is part of LORENE.
5  *
6  * LORENE is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2
8  * as published by the Free Software Foundation.
9  *
10  * LORENE is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with LORENE; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  */
20 
21 
22 
23 /*
24  * $Id: ope_helmholtz_minus_2d.C,v 1.3 2016/12/05 16:18:11 j_novak Exp $
25  * $Log: ope_helmholtz_minus_2d.C,v $
26  * Revision 1.3 2016/12/05 16:18:11 j_novak
27  * Suppression of some global variables (file names, loch, ...) to prevent redefinitions
28  *
29  * Revision 1.2 2014/10/13 08:53:33 j_novak
30  * Lorene classes and functions now belong to the namespace Lorene.
31  *
32  * Revision 1.1 2004/08/24 09:14:46 p_grandclement
33  * Addition of some new operators, like Poisson in 2d... It now requieres the
34  * GSL library to work.
35  *
36  * Also, the way a variable change is stored by a Param_elliptic is changed and
37  * no longer uses Change_var but rather 2 Scalars. The codes using that feature
38  * will requiere some modification. (It should concern only the ones about monopoles)
39  *
40  *
41  * $Header: /cvsroot/Lorene/C++/Source/Ope_elementary/Ope_helmholtz_minus_2d/ope_helmholtz_minus_2d.C,v 1.3 2016/12/05 16:18:11 j_novak Exp $
42  *
43  */
44 
45 #include "proto.h"
46 #include "ope_elementary.h"
47 
48 // Standard constructor :
49 namespace Lorene {
50 Ope_helmholtz_minus_2d::Ope_helmholtz_minus_2d (int nbr, int baser, double alf, double bet, int lq, double ma, int dz):
51  Ope_elementary(nbr, baser, alf, bet), l_quant (lq), masse(ma),
52  dzpuis (dz) {
53 
54  assert (dzpuis==2) ;
55 }
56 
57 // Constructor by copy :
60  Ope_elementary(so),
61  l_quant (so.l_quant), masse (so.masse), dzpuis (so.dzpuis) {
62 
63  assert (dzpuis==2) ;
64 }
65 
66 // Destructor :
68 
70 
71  cout << "inc_l_quant not implemented for this operator." << endl ;
72  abort() ;
73 }
74 
76 
77  cout << "dec_l_quant not implemented for this operator." << endl ;
78  abort() ;
79 }
80 }
virtual void inc_l_quant()
Increases the quatum number l by one unit.
Lorene prototypes.
Definition: app_hor.h:67
virtual ~Ope_helmholtz_minus_2d()
Destructor.
Ope_helmholtz_minus_2d(int nbr, int baser, double alf, double bet, int lq, double masse, int dz)
Standard constructor.
int dzpuis
the associated dzpuis, if in the compactified domain.
virtual void dec_l_quant()
Decreases the quatum number l by one unit.
Basic class for elementary elliptic operators.
Class for the operator of the Helmholtz equation in 2D.