LORENE
map_radial.C
1 /*
2  * Methods of class Map_radial
3  *
4  * (see file map.h for documentation)
5  *
6  */
7 
8 /*
9  * Copyright (c) 1999-2003 Eric Gourgoulhon
10  *
11  * This file is part of LORENE.
12  *
13  * LORENE is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
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 /*
33  * $Id: map_radial.C,v 1.6 2016/12/05 16:17:58 j_novak Exp $
34  * $Log: map_radial.C,v $
35  * Revision 1.6 2016/12/05 16:17:58 j_novak
36  * Suppression of some global variables (file names, loch, ...) to prevent redefinitions
37  *
38  * Revision 1.5 2014/10/13 08:53:06 j_novak
39  * Lorene classes and functions now belong to the namespace Lorene.
40  *
41  * Revision 1.4 2004/01/29 08:50:03 p_grandclement
42  * Modification of Map::operator==(const Map&) and addition of the surface
43  * integrales using Scalar.
44  *
45  * Revision 1.3 2003/11/07 10:10:20 e_gourgoulhon
46  * In the constructor from a grid, changed the name of the argument
47  * from "mg" to "mgi" in order not to shadow data member.
48  *
49  * Revision 1.2 2003/10/15 10:41:10 e_gourgoulhon
50  * Added new Coord's drdt and stdrdp.
51  *
52  * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
53  * LORENE
54  *
55  * Revision 2.6 1999/11/22 10:37:24 eric
56  * Fonction del_coord() rebaptisee reset_coord().
57  *
58  * Revision 2.5 1999/10/15 14:27:20 eric
59  * Suppression de l'appel a del_coord() dans le destructeur de Map_radial.
60  *
61  * Revision 2.4 1999/10/15 09:23:14 eric
62  * *** empty log message ***
63  *
64  * Revision 2.3 1999/10/14 14:27:49 eric
65  * Depoussierage.
66  *
67  * Revision 2.2 1999/03/01 16:57:35 eric
68  * Suppression de l'operateur <<
69  *
70  * Revision 2.1 1999/03/01 14:59:25 eric
71  * *** empty log message ***
72  *
73  * Revision 2.0 1999/02/15 10:42:45 hyc
74  * *** empty log message ***
75  *
76  *
77  * $Header: /cvsroot/Lorene/C++/Source/Map/map_radial.C,v 1.6 2016/12/05 16:17:58 j_novak Exp $
78  *
79  */
80 
81 // headers Lorene
82 #include "map.h"
83 
84 
85  //---------------//
86  // Constructeurs //
87  //---------------//
88 
89 // Constructor from a grid
90 // -----------------------
91 namespace Lorene {
92 Map_radial::Map_radial(const Mg3d& mgi) : Map(mgi)
93 {
94  // The Coord's are constructed by the default Coord constructor
95 }
96 
97 // Copy constructor
98 // ----------------
100 {
101  // The Coord's are constructed by the default Coord constructor
102 }
103 
104 // Constructor from file
105 // ---------------------
106 Map_radial::Map_radial(const Mg3d& mgi, FILE* fd) : Map(mgi, fd) {}
107 
108  //--------------//
109  // Destructeurs //
110  //--------------//
111 
112 // Destructeur
114 
115  //------------//
116  // Sauvegarde //
117  //------------//
118 
119 void Map_radial::sauve(FILE* fd) const {
120 
121  Map::sauve(fd) ;
122 
123 }
124 
125  //-----------------//
126  // Gestion memoire //
127  //-----------------//
128 
130 
131  // Les Coord communs a toutes les classes derivees de Map :
132 
133  Map::reset_coord() ;
134 
135  // Les Coord specifiques a Map_radial :
136 
137  xsr.del_t() ;
138  dxdr.del_t() ;
139  drdt.del_t() ;
140  stdrdp.del_t() ;
141  srdrdt.del_t() ;
142  srstdrdp.del_t() ;
143  sr2drdt.del_t() ;
144  sr2stdrdp.del_t() ;
145  d2rdx2.del_t() ;
146  lapr_tp.del_t() ;
147  d2rdtdx.del_t() ;
148  sstd2rdpdx.del_t() ;
149  sr2d2rdt2.del_t() ;
150 
151 }
152 }
Coord d2rdx2
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1640
Coord sr2d2rdt2
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1678
Coord sr2stdrdp
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1629
virtual void sauve(FILE *) const
Save in a file.
Definition: map.C:227
Lorene prototypes.
Definition: app_hor.h:67
Coord sr2drdt
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1621
Base class for coordinate mappings.
Definition: map.h:688
Coord srstdrdp
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1613
Coord stdrdp
in the nucleus and in the non-compactified shells; \ in the compactified external domain (CED)...
Definition: map.h:1597
Coord dxdr
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1581
Base class for pure radial mappings.
Definition: map.h:1557
Coord sstd2rdpdx
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1669
virtual void sauve(FILE *) const
Save in a file.
Definition: map_radial.C:119
Coord xsr
in the nucleus; \ 1/R in the non-compactified shells; \ in the compactified outer domain...
Definition: map.h:1570
virtual void reset_coord()
Resets all the member Coords.
Definition: map.C:279
Coord drdt
in the nucleus and in the non-compactified shells; \ in the compactified external domain (CED)...
Definition: map.h:1589
Multi-domain grid.
Definition: grilles.h:279
Map_radial(const Mg3d &mgrid)
Constructor from a grid (protected to make Map_radial an abstract class)
Definition: map_radial.C:92
Coord lapr_tp
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1652
virtual void reset_coord()
Resets all the member Coords.
Definition: map_radial.C:129
Coord srdrdt
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1605
void del_t() const
Logical destructor (deletes the Mtbl member *c ).
Definition: coord.C:128
virtual ~Map_radial()
Destructor.
Definition: map_radial.C:113
Coord d2rdtdx
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition: map.h:1661