/* * Copyright (c) 1999-2001 Philippe Grandclement * Copyright (c) 2001 Eric Gourgoulhon * Copyright (c) 2001 Keisuke Taniguchi * * 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 base_val_mult_C[] = "$Header: /cvsroot/Lorene/C++/Source/Base_val/base_val_mult.C,v 1.11 2014/10/13 08:52:38 j_novak Exp $" ; /* * $Id: base_val_mult.C,v 1.11 2014/10/13 08:52:38 j_novak Exp $ * $Log: base_val_mult.C,v $ * Revision 1.11 2014/10/13 08:52:38 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.10 2014/10/06 15:12:56 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.9 2013/01/11 08:20:11 j_novak * New radial spectral bases with Legendre polynomials (R_LEG, R_LEGP, R_LEGI). * * Revision 1.8 2009/10/23 12:55:16 j_novak * New base T_LEG_MI * * Revision 1.7 2009/10/08 16:20:13 j_novak * Addition of new bases T_COS and T_SIN. * * Revision 1.6 2008/08/27 08:46:30 jl_cornou * Added R_JACO02 base (Jacobi(0,2) polynomials) * * Revision 1.5 2004/11/23 15:08:00 m_forot * Added the bases for the cases without any equatorial symmetry * (T_COSSIN_C, T_COSSIN_S, T_LEG, R_CHEBPI_P, R_CHEBPI_I). * * Revision 1.4 2002/10/16 14:36:30 j_novak * Reorganization of #include instructions of standard C++, in order to * use experimental version 3 of gcc. * * Revision 1.3 2002/08/02 15:07:41 j_novak * Member function determinant has been added to the class Metrique. * A better handling of spectral bases is now implemented for the class Tenseur. * * Revision 1.2 2002/02/07 14:55:07 e_gourgoulhon * Add more cases in theta and phi * * Revision 1.1.1.1 2001/11/20 15:19:28 e_gourgoulhon * LORENE * * Revision 2.3 2001/08/29 09:31:00 keisuke * Addition of the cases T_COSSIN_SP * T_COSSIN_SP, * T_COSSIN_SI * T_COSSIN_SI, etc. * * Revision 2.2 2001/08/27 14:59:27 keisuke * Ajout du cas T_COSSIN_CP * T_COSSIN_SI * * Revision 2.1 2001/08/27 13:40:18 eric * Ajout du cas T_COSSIN_CP * T_COSSIN_SP * * Revision 2.0 1999/10/26 14:42:47 phil * *** empty log message *** * * * $Header: /cvsroot/Lorene/C++/Source/Base_val/base_val_mult.C,v 1.11 2014/10/13 08:52:38 j_novak Exp $ * */ // Fichier includes #include #include #include #include "headcpp.h" #include "type_parite.h" #include "base_val.h" /* * Routine calculant le produit de deux bases spectrales en utilisant en fait * le produit des symetries par rapport au plan z=0 * * Si le resultat n'est pas defini le resultat est dans etat == ETATNONDEF * */ namespace Lorene { Base_val operator* (const Base_val& b1, const Base_val& b2) { assert (b1.nzone == b2.nzone) ; Base_val res(b1.nzone) ; int base, indic_r, indic_t, indic_p ; int b1_r, b2_r, b1_t, b2_t, b1_p, b2_p ; // Confort ; int indic_total = 1 ; //Boucle sur les zones : for (int l=0 ; l