cmp_r_manip.C
/*
* Member functions of the class Cmp for various r manipulations
*/
/*
* Copyright (c) 1999-2001 Eric Gourgoulhon
* Copyright (c) 1999-2001 Philippe Grandclement
* Copyright (c) 2001 Jerome Novak
*
* 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 cmp_r_manip_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_r_manip.C,v 1.4 2014/10/13 08:52:48 j_novak Exp $" ;
/*
* $Id: cmp_r_manip.C,v 1.4 2014/10/13 08:52:48 j_novak Exp $
* $Log: cmp_r_manip.C,v $
* Revision 1.4 2014/10/13 08:52:48 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.3 2012/08/12 17:35:36 p_cerda
* Magnetstar: adding new member to class Cmp
*
* Revision 1.2 2004/10/11 15:09:01 j_novak
* The radial manipulation functions take Scalar as arguments, instead of Cmp.
* Added a conversion operator from Scalar to Cmp.
* The Cmp radial manipulation function make conversion to Scalar, call to the
* Map_radial version with a Scalar argument and back.
*
* Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
* LORENE
*
* Revision 1.5 2001/10/29 15:37:06 novak
* Ajout de Cmp::div_r()
*
* Revision 1.4 2000/08/31 13:04:46 eric
* Ajout des fonctions mult_rsint et div_rsint.
*
* Revision 1.3 2000/05/22 14:39:52 phil
* ajout de inc_dzpuis et dec_dzpuis
*
* Revision 1.2 1999/12/10 16:33:48 eric
* Appel de del_deriv().
*
* Revision 1.1 1999/11/30 14:22:54 eric
* Initial revision
*
*
* $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_r_manip.C,v 1.4 2014/10/13 08:52:48 j_novak Exp $
*
*/
#include "cmp.h"
#include "scalar.h"
//---------------------------//
// div_r //
//---------------------------//
namespace Lorene {
void Cmp::div_r() {
Scalar resu(*this) ;
mp->div_r(resu) ; // Call to the Scalar version
operator=(Cmp(resu)) ;
del_deriv() ; // Delete the derived members
}
//---------------------------//
// mult_r //
//---------------------------//
void Cmp::mult_r() {
mp->mult_r(*this) ; // Call of the appropriate routine of the mapping
del_deriv() ; // Delete the derived members
}
//---------------------------//
// mult_r_zec //
//---------------------------//
void Cmp::mult_r_zec() {
Scalar resu(*this) ;
mp->mult_r_zec(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
del_deriv() ; // Delete the derived members
}
//---------------------------//
// mult_rsint //
//---------------------------//
void Cmp::mult_rsint() {
Scalar resu(*this) ;
mp->mult_rsint(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
del_deriv() ; // Delete the derived members
}
//---------------------------//
// mult_rcost //
//---------------------------//
void Cmp::mult_cost() {
Scalar resu(*this) ;
mp->mult_cost(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
del_deriv() ; // Delete the derived members
}
//---------------------------//
// div_rsint //
//---------------------------//
void Cmp::div_rsint() {
Scalar resu(*this) ;
mp->div_rsint(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
del_deriv() ; // Delete the derived members
}
//---------------------------//
// dec_dzpuis //
//---------------------------//
void Cmp::dec_dzpuis() {
Scalar resu(*this) ;
mp->dec_dzpuis(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
}
//---------------------------//
// inc_dzpuis //
//---------------------------//
void Cmp::inc_dzpuis() {
Scalar resu(*this) ;
mp->inc_dzpuis(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
}
//---------------------------//
// dec2_dzpuis //
//---------------------------//
void Cmp::dec2_dzpuis() {
Scalar resu(*this) ;
mp->dec2_dzpuis(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
}
//---------------------------//
// inc2_dzpuis //
//---------------------------//
void Cmp::inc2_dzpuis() {
Scalar resu(*this) ;
mp->inc2_dzpuis(resu) ; // Call of the appropriate routine of the mapping
operator=(resu) ;
}
}
Lorene::Cmp::mp
const Map * mp
Reference mapping.
Definition cmp.h:451
Lorene::Cmp::mult_r_zec
void mult_r_zec()
Multiplication by r in the external compactified domain (ZEC).
Definition cmp_r_manip.C:103
Lorene::Cmp::mult_rsint
void mult_rsint()
Multiplication by .
Definition cmp_r_manip.C:116
Lorene::Cmp::Cmp
Cmp(const Map &map)
Constructor from mapping.
Definition cmp.C:208
Lorene::Cmp::div_r
void div_r()
Division by r everywhere.
Definition cmp_r_manip.C:78
Lorene::Cmp::dec_dzpuis
void dec_dzpuis()
Decreases by 1 the value of dzpuis and changes accordingly the values of the Cmp in the external comp...
Definition cmp_r_manip.C:154
Lorene::Cmp::operator=
void operator=(const Cmp &a)
Assignment to another Cmp defined on the same mapping.
Definition cmp.C:398
Lorene::Cmp::mult_r
void mult_r()
Multiplication by r everywhere.
Definition cmp_r_manip.C:91
Lorene::Cmp::inc2_dzpuis
void inc2_dzpuis()
Increases by 2 the value of dzpuis and changes accordingly the values of the Cmp in the external comp...
Definition cmp_r_manip.C:192
Lorene::Cmp::del_deriv
void del_deriv()
Logical destructor of the derivatives.
Definition cmp.C:265
Lorene::Cmp::dec2_dzpuis
void dec2_dzpuis()
Decreases by 2 the value of dzpuis and changes accordingly the values of the Cmp in the external comp...
Definition cmp_r_manip.C:180
Lorene::Cmp::div_rsint
void div_rsint()
Division by .
Definition cmp_r_manip.C:141
Lorene::Cmp::mult_cost
void mult_cost()
Multiplication by \f\cos\theta\f$.
Definition cmp_r_manip.C:128
Lorene::Cmp::inc_dzpuis
void inc_dzpuis()
Increases by the value of dzpuis and changes accordingly the values of the Cmp in the external compac...
Definition cmp_r_manip.C:166
Lorene::Scalar
Tensor field of valence 0 (or component of a tensorial field).
Definition scalar.h:387
Lorene
Lorene prototypes.
Definition app_hor.h:64