LORENE
map_et_dalembert.C
1 /*
2  * Copyright (c) 2000-2001 Jerome Novak
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 as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * LORENE is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with LORENE; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */
21 
22 
23 
24 
25 /*
26  * $Id: map_et_dalembert.C,v 1.6 2016/12/05 16:17:57 j_novak Exp $
27  * $Log: map_et_dalembert.C,v $
28  * Revision 1.6 2016/12/05 16:17:57 j_novak
29  * Suppression of some global variables (file names, loch, ...) to prevent redefinitions
30  *
31  * Revision 1.5 2014/10/13 08:53:03 j_novak
32  * Lorene classes and functions now belong to the namespace Lorene.
33  *
34  * Revision 1.4 2004/03/01 09:57:03 j_novak
35  * the wave equation is solved with Scalars. It now accepts a grid with a
36  * compactified external domain, which the solver ignores and where it copies
37  * the values of the field from one time-step to the next.
38  *
39  * Revision 1.3 2003/06/18 08:45:27 j_novak
40  * In class Mg3d: added the member get_radial, returning only a radial grid
41  * For dAlembert solver: the way the coefficients of the operator are defined has been changed.
42  *
43  * Revision 1.2 2002/01/03 15:30:28 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.3 2001/10/16 10:07:52 novak
50  * *** empty log message ***
51  *
52  * Revision 1.2 2001/07/19 14:13:55 novak
53  * new list of arguments for Map_et::dalembert
54  *
55  * Revision 1.1 2000/10/19 15:41:15 novak
56  * Initial revision
57  *
58  *
59  * $Header: /cvsroot/Lorene/C++/Source/Map/map_et_dalembert.C,v 1.6 2016/12/05 16:17:57 j_novak Exp $
60  *
61  */
62 
63 // Header Lorene:
64 #include "tensor.h"
65 #include "param.h"
66 
67 namespace Lorene {
68 Mtbl_cf sol_dalembert(Param&, const Map_af&, const Mtbl_cf&) ;
69 
70 //*****************************************************************************
71 
72 void Map_et::dalembert(Param& , Scalar& fJp1, const Scalar& fJ, const Scalar& fJm1,
73  const Scalar& source) const {
74 
75  assert(source.get_etat() != ETATNONDEF) ;
76  assert(source.get_mp().get_mg() == mg) ;
77  assert(fJ.get_etat() != ETATNONDEF) ;
78  assert(fJ.get_mp().get_mg() == mg) ;
79  assert(fJm1.get_etat() != ETATNONDEF) ;
80  assert(fJm1.get_mp().get_mg() == mg) ;
81  assert(fJp1.get_mp().get_mg() == mg) ;
82 
83  cout << "Map_et_dalembert:" << endl ;
84  cout << "Not implemented" << endl ;
85  cout << fJp1 << fJ << fJm1 << source ;
86  abort() ;
87 
88 
89 }
90 
91 
92 }
Lorene prototypes.
Definition: app_hor.h:67
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Definition: map.h:783
Tensor field of valence 0 (or component of a tensorial field).
Definition: scalar.h:393
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
Definition: scalar.h:560
Parameter storage.
Definition: param.h:125
const Mg3d * mg
Pointer on the multi-grid Mgd3 on which this is defined.
Definition: map.h:694
virtual void dalembert(Param &par, Scalar &fJp1, const Scalar &fJ, const Scalar &fJm1, const Scalar &source) const
Not yet implemented.
const Map & get_mp() const
Returns the mapping.
Definition: tensor.h:874