1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
/*
* Methods of class Map_radial
*
* (see file map.h for documentation)
*
*/
/*
* Copyright (c) 1999-2003 Eric Gourgoulhon
*
* This file is part of LORENE.
*
* LORENE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* LORENE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LORENE; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
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 $" ;
/*
* $Id: map_radial.C,v 1.5 2014/10/13 08:53:06 j_novak Exp $
* $Log: map_radial.C,v $
* Revision 1.5 2014/10/13 08:53:06 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.4 2004/01/29 08:50:03 p_grandclement
* Modification of Map::operator==(const Map&) and addition of the surface
* integrales using Scalar.
*
* Revision 1.3 2003/11/07 10:10:20 e_gourgoulhon
* In the constructor from a grid, changed the name of the argument
* from "mg" to "mgi" in order not to shadow data member.
*
* Revision 1.2 2003/10/15 10:41:10 e_gourgoulhon
* Added new Coord's drdt and stdrdp.
*
* Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
* LORENE
*
* Revision 2.6 1999/11/22 10:37:24 eric
* Fonction del_coord() rebaptisee reset_coord().
*
* Revision 2.5 1999/10/15 14:27:20 eric
* Suppression de l'appel a del_coord() dans le destructeur de Map_radial.
*
* Revision 2.4 1999/10/15 09:23:14 eric
* *** empty log message ***
*
* Revision 2.3 1999/10/14 14:27:49 eric
* Depoussierage.
*
* Revision 2.2 1999/03/01 16:57:35 eric
* Suppression de l'operateur <<
*
* Revision 2.1 1999/03/01 14:59:25 eric
* *** empty log message ***
*
* Revision 2.0 1999/02/15 10:42:45 hyc
* *** empty log message ***
*
*
* $Header: /cvsroot/Lorene/C++/Source/Map/map_radial.C,v 1.5 2014/10/13 08:53:06 j_novak Exp $
*
*/
// headers Lorene
#include "map.h"
//---------------//
// Constructeurs //
//---------------//
// Constructor from a grid
// -----------------------
namespace Lorene {
Map_radial::Map_radial(const Mg3d& mgi) : Map(mgi)
{
// The Coord's are constructed by the default Coord constructor
}
// Copy constructor
// ----------------
Map_radial::Map_radial(const Map_radial & mp) : Map(mp)
{
// The Coord's are constructed by the default Coord constructor
}
// Constructor from file
// ---------------------
Map_radial::Map_radial(const Mg3d& mgi, FILE* fd) : Map(mgi, fd) {}
//--------------//
// Destructeurs //
//--------------//
// Destructeur
Map_radial::~Map_radial() {}
//------------//
// Sauvegarde //
//------------//
void Map_radial::sauve(FILE* fd) const {
Map::sauve(fd) ;
}
//-----------------//
// Gestion memoire //
//-----------------//
void Map_radial::reset_coord() {
// Les Coord communs a toutes les classes derivees de Map :
Map::reset_coord() ;
// Les Coord specifiques a Map_radial :
xsr.del_t() ;
dxdr.del_t() ;
drdt.del_t() ;
stdrdp.del_t() ;
srdrdt.del_t() ;
srstdrdp.del_t() ;
sr2drdt.del_t() ;
sr2stdrdp.del_t() ;
d2rdx2.del_t() ;
lapr_tp.del_t() ;
d2rdtdx.del_t() ;
sstd2rdpdx.del_t() ;
sr2d2rdt2.del_t() ;
}
}
|