map_radial.C
/*
* 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() ;
}
}
Lorene::Map_radial::d2rdx2
Coord d2rdx2
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1619
Lorene::Map_radial::sr2drdt
Coord sr2drdt
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1600
Lorene::Map_radial::srstdrdp
Coord srstdrdp
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1592
Lorene::Map_radial::d2rdtdx
Coord d2rdtdx
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1640
Lorene::Map_radial::sstd2rdpdx
Coord sstd2rdpdx
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1648
Lorene::Map_radial::reset_coord
virtual void reset_coord()
Resets all the member Coords.
Definition map_radial.C:126
Lorene::Map_radial::lapr_tp
Coord lapr_tp
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1631
Lorene::Map_radial::sr2stdrdp
Coord sr2stdrdp
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1608
Lorene::Map_radial::drdt
Coord drdt
in the nucleus and in the non-compactified shells; \ in the compactified external domain (CED).
Definition map.h:1568
Lorene::Map_radial::srdrdt
Coord srdrdt
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1584
Lorene::Map_radial::Map_radial
Map_radial(const Mg3d &mgrid)
Constructor from a grid (protected to make Map_radial an abstract class).
Definition map_radial.C:89
Lorene::Map_radial::xsr
Coord xsr
in the nucleus; \ 1/R in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1549
Lorene::Map_radial::sauve
virtual void sauve(FILE *) const
Save in a file.
Definition map_radial.C:116
Lorene::Map_radial::~Map_radial
virtual ~Map_radial()
Destructor.
Definition map_radial.C:110
Lorene::Map_radial::dxdr
Coord dxdr
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1560
Lorene::Map_radial::sr2d2rdt2
Coord sr2d2rdt2
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Definition map.h:1657
Lorene::Map_radial::stdrdp
Coord stdrdp
in the nucleus and in the non-compactified shells; \ in the compactified external domain (CED).
Definition map.h:1576
Lorene::Mg3d
Multi-domain grid.
Definition grilles.h:273
Lorene
Lorene prototypes.
Definition app_hor.h:64
Lorene::Map
Map(const Mg3d &)
Constructor from a multi-domain 3D grid.
Definition map.C:139