/* * Plots the spectral coefficients of a Valeur. * * (see file graphique.h for the documentation). * */ /* * Copyright (c) 1999-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 des_coef_valeur_C[] = "$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Graphics/des_coef_valeur.C,v 1.4 2014/10/13 08:53:21 j_novak Exp $" ; /* * $Id: des_coef_valeur.C,v 1.4 2014/10/13 08:53:21 j_novak Exp $ * $Log: des_coef_valeur.C,v $ * Revision 1.4 2014/10/13 08:53:21 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.3 2014/10/06 15:16:04 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.2 2008/08/19 06:42:00 j_novak * Minor modifications to avoid warnings with gcc 4.3. Most of them concern * cast-type operations, and constant strings that must be defined as const char* * * Revision 1.1.1.1 2001/11/20 15:19:29 e_gourgoulhon * LORENE * * Revision 1.5 2000/02/25 10:28:02 eric * Suppression des appels a Mtbl_cf::nettoie(). * * Revision 1.4 1999/12/20 14:27:21 eric * Amelioration des legendes. * * Revision 1.3 1999/12/20 10:57:33 eric * Ajout des arguments device, newgraph, nxpage et nypage. * * Revision 1.2 1999/12/10 12:30:44 eric * *** empty log message *** * * Revision 1.1 1999/12/10 12:14:28 eric * Initial revision * * * $Header: /cvsroot/Lorene/C++/Source/Non_class_members/Graphics/des_coef_valeur.C,v 1.4 2014/10/13 08:53:21 j_novak Exp $ * */ // Header C #include #include // Header Lorene #include "valeur.h" #include "graphique.h" //-------------------------// // xi coefficients // //-------------------------// namespace Lorene { void des_coef_xi(const Valeur& uu, int l, int k, int j, double pzero, const char* nomy, const char* title, const char* device, int newgraph, int nxpage, int nypage) { assert(uu.get_etat() != ETATNONDEF) ; uu.coef() ; int nr = uu.get_mg()->get_nr(l) ; double* cf = new double[nr] ; // Are all the coefficients zero ? // ------------------------------- if (uu.get_etat() == ETATZERO) { for (int i=0; iget_nt(l) ; double* cf = new double[nt] ; // Are all the coefficients zero ? // ------------------------------- if (uu.get_etat() == ETATZERO) { for (int j=0; jget_np(l) + 2 ; double* cf = new double[np] ; // Are all the coefficients zero ? // ------------------------------- if (uu.get_etat() == ETATZERO) { for (int k=0; k