| 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 |
char map_radial_C[] = "$Header: /cvsroot/Lorene/C++/Source/Map/map_radial.C,v 1.5 2014/10/13 08:53:06 j_novak Exp $" ; |
| 31 |
|
| 32 |
/* |
| 33 |
* $Id: map_radial.C,v 1.5 2014/10/13 08:53:06 j_novak Exp $ |
| 34 |
* $Log: map_radial.C,v $ |
| 35 |
* Revision 1.5 2014/10/13 08:53:06 j_novak |
| 36 |
* Lorene classes and functions now belong to the namespace Lorene. |
| 37 |
* |
| 38 |
* Revision 1.4 2004/01/29 08:50:03 p_grandclement |
| 39 |
* Modification of Map::operator==(const Map&) and addition of the surface |
| 40 |
* integrales using Scalar. |
| 41 |
* |
| 42 |
* Revision 1.3 2003/11/07 10:10:20 e_gourgoulhon |
| 43 |
* In the constructor from a grid, changed the name of the argument |
| 44 |
* from "mg" to "mgi" in order not to shadow data member. |
| 45 |
* |
| 46 |
* Revision 1.2 2003/10/15 10:41:10 e_gourgoulhon |
| 47 |
* Added new Coord's drdt and stdrdp. |
| 48 |
* |
| 49 |
* Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon |
| 50 |
* LORENE |
| 51 |
* |
| 52 |
* Revision 2.6 1999/11/22 10:37:24 eric |
| 53 |
* Fonction del_coord() rebaptisee reset_coord(). |
| 54 |
* |
| 55 |
* Revision 2.5 1999/10/15 14:27:20 eric |
| 56 |
* Suppression de l'appel a del_coord() dans le destructeur de Map_radial. |
| 57 |
* |
| 58 |
* Revision 2.4 1999/10/15 09:23:14 eric |
| 59 |
* *** empty log message *** |
| 60 |
* |
| 61 |
* Revision 2.3 1999/10/14 14:27:49 eric |
| 62 |
* Depoussierage. |
| 63 |
* |
| 64 |
* Revision 2.2 1999/03/01 16:57:35 eric |
| 65 |
* Suppression de l'operateur << |
| 66 |
* |
| 67 |
* Revision 2.1 1999/03/01 14:59:25 eric |
| 68 |
* *** empty log message *** |
| 69 |
* |
| 70 |
* Revision 2.0 1999/02/15 10:42:45 hyc |
| 71 |
* *** empty log message *** |
| 72 |
* |
| 73 |
* |
| 74 |
* $Header: /cvsroot/Lorene/C++/Source/Map/map_radial.C,v 1.5 2014/10/13 08:53:06 j_novak Exp $ |
| 75 |
* |
| 76 |
*/ |
| 77 |
|
| 78 |
// headers Lorene |
| 79 |
#include "map.h" |
| 80 |
|
| 81 |
|
| 82 |
//---------------// |
| 83 |
// Constructeurs // |
| 84 |
//---------------// |
| 85 |
|
| 86 |
// Constructor from a grid |
| 87 |
// ----------------------- |
| 88 |
namespace Lorene { |
| 89 |
Map_radial::Map_radial(const Mg3d& mgi) : Map(mgi) |
| 90 |
{ |
| 91 |
// The Coord's are constructed by the default Coord constructor |
| 92 |
} |
| 93 |
|
| 94 |
// Copy constructor |
| 95 |
// ---------------- |
| 96 |
Map_radial::Map_radial(const Map_radial & mp) : Map(mp) |
| 97 |
{ |
| 98 |
// The Coord's are constructed by the default Coord constructor |
| 99 |
} |
| 100 |
|
| 101 |
// Constructor from file |
| 102 |
// --------------------- |
| 103 |
Map_radial::Map_radial(const Mg3d& mgi, FILE* fd) : Map(mgi, fd) {} |
| 104 |
|
| 105 |
//--------------// |
| 106 |
// Destructeurs // |
| 107 |
//--------------// |
| 108 |
|
| 109 |
// Destructeur |
| 110 |
Map_radial::~Map_radial() {} |
| 111 |
|
| 112 |
//------------// |
| 113 |
// Sauvegarde // |
| 114 |
//------------// |
| 115 |
|
| 116 |
void Map_radial::sauve(FILE* fd) const { |
| 117 |
|
| 118 |
Map::sauve(fd) ; |
| 119 |
|
| 120 |
} |
| 121 |
|
| 122 |
//-----------------// |
| 123 |
// Gestion memoire // |
| 124 |
//-----------------// |
| 125 |
|
| 126 |
void Map_radial::reset_coord() { |
| 127 |
|
| 128 |
// Les Coord communs a toutes les classes derivees de Map : |
| 129 |
|
| 130 |
Map::reset_coord() ; |
| 131 |
|
| 132 |
// Les Coord specifiques a Map_radial : |
| 133 |
|
| 134 |
xsr.del_t() ; |
| 135 |
dxdr.del_t() ; |
| 136 |
drdt.del_t() ; |
| 137 |
stdrdp.del_t() ; |
| 138 |
srdrdt.del_t() ; |
| 139 |
srstdrdp.del_t() ; |
| 140 |
sr2drdt.del_t() ; |
| 141 |
sr2stdrdp.del_t() ; |
| 142 |
d2rdx2.del_t() ; |
| 143 |
lapr_tp.del_t() ; |
| 144 |
d2rdtdx.del_t() ; |
| 145 |
sstd2rdpdx.del_t() ; |
| 146 |
sr2d2rdt2.del_t() ; |
| 147 |
|
| 148 |
} |
| 149 |
} |