00001 /* 00002 * Member functions of the class Scalar for various theta manipulations 00003 * 00004 * See file scalar.h for documentation. 00005 */ 00006 00007 /* 00008 * Copyright (c) 2003 Eric Gourgoulhon & Jerome Novak 00009 * 00010 * This file is part of LORENE. 00011 * 00012 * LORENE is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * LORENE is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with LORENE; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 * 00026 */ 00027 00028 00029 char scalar_th_manip_C[] = "$Header: /cvsroot/Lorene/C++/Source/Tensor/Scalar/scalar_th_manip.C,v 1.2 2006/05/26 09:00:12 j_novak Exp $" ; 00030 00031 /* 00032 * $Id: scalar_th_manip.C,v 1.2 2006/05/26 09:00:12 j_novak Exp $ 00033 * $Log: scalar_th_manip.C,v $ 00034 * Revision 1.2 2006/05/26 09:00:12 j_novak 00035 * New members for multiplication or division by cos(theta). 00036 * 00037 * Revision 1.1 2003/11/04 23:00:59 e_gourgoulhon 00038 * First version. 00039 * 00040 * 00041 * 00042 * $Header: /cvsroot/Lorene/C++/Source/Tensor/Scalar/scalar_th_manip.C,v 1.2 2006/05/26 09:00:12 j_novak Exp $ 00043 * 00044 */ 00045 00046 #include "tensor.h" 00047 00048 00049 //-------------------// 00050 // mult_cost // 00051 //-------------------// 00052 00053 00054 void Scalar::mult_cost() { 00055 00056 mp->mult_cost(*this) ; // Call of the appropriate routine of the mapping 00057 00058 del_deriv() ; // Delete the derived members 00059 00060 } 00061 //-------------------// 00062 // div_cost // 00063 //-------------------// 00064 00065 00066 void Scalar::div_cost() { 00067 00068 mp->div_cost(*this) ; // Call of the appropriate routine of the mapping 00069 00070 del_deriv() ; // Delete the derived members 00071 00072 } 00073 00074 00075 //-------------------// 00076 // mult_sint // 00077 //-------------------// 00078 00079 00080 void Scalar::mult_sint() { 00081 00082 mp->mult_sint(*this) ; // Call of the appropriate routine of the mapping 00083 00084 del_deriv() ; // Delete the derived members 00085 00086 } 00087 00088 00089 //-------------------// 00090 // div_sint // 00091 //-------------------// 00092 00093 00094 void Scalar::div_sint() { 00095 00096 mp->div_sint(*this) ; // Call of the appropriate routine of the mapping 00097 00098 del_deriv() ; // Delete the derived members 00099 00100 } 00101 00102 //-------------------// 00103 // div_tant // 00104 //-------------------// 00105 00106 00107 void Scalar::div_tant() { 00108 00109 mp->div_tant(*this) ; // Call of the appropriate routine of the mapping 00110 00111 del_deriv() ; // Delete the derived members 00112 00113 } 00114 00115 00116 00117
1.4.6