/* * Copyright (c) 2000-2001 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 som_asymy_C[] = "$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Operators/som_asymy.C,v 1.3 2014/10/13 08:53:26 j_novak Exp $" ; /* * Ensemble des routine pour la sommation directe en r, theta et phi dans * le cas symetrie equatoriale (plan z=0) + antisymetrie par rapport au plan y=0 * * SYNOPSYS: * double som_r_XX_asymy * (double* ti, int nr, int nt, int np, double x, double* trtp) * * x est l'argument du polynome de Chebychev: x in [0, 1] ou x in [-1, 1] * * * double som_tet_XX_asymy * (double* ti, int nt, int np, double tet, double* to) * * double som_phi_XX_asymy * (double* ti, int np, double phi, double* xo) * * ATTENTION: np est suppose etre le nombre de points (sans le +2) * on suppose que trtp tient compte de ca. */ /* * $Id: som_asymy.C,v 1.3 2014/10/13 08:53:26 j_novak Exp $ * $Log: som_asymy.C,v $ * Revision 1.3 2014/10/13 08:53:26 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.2 2014/10/06 15:16:06 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.1.1.1 2001/11/20 15:19:29 e_gourgoulhon * LORENE * * Revision 2.0 2000/03/06 10:27:45 eric * *** empty log message *** * * * $Header: /cvsroot/Lorene/C++/Source/Non_class_members/Operators/som_asymy.C,v 1.3 2014/10/13 08:53:26 j_novak Exp $ * */ // Headers C #include namespace Lorene { //**************************************************************************** // Sommation en r //**************************************************************************** ////////////////// /// Cas R_CHEB /// ////////////////// void som_r_cheb_asymy(double* ti, const int nr, const int nt, const int np, const double x, double* trtp) { // Variables diverses int i, j, k ; double* pi = ti ; // pointeur courant sur l'entree double* po = trtp ; // pointeur courant sur la sortie // Valeurs des polynomes de Chebyshev au point x demande double* cheb = new double [nr] ; cheb[0] = 1. ; cheb[1] = x ; for (i=2; i 1 for (j=0 ; j 1 for (j=0 ; j 1 (*po) = 0 ; for (j=0 ; j 1 (*po) = 0 ; for (j=0 ; j