/* * 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) ; } }