/* * Test program for Map_radial::poisson_compact * */ /* * 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 test_poisson_compact_C[] = "$Header: /cvsroot/Lorene/Codes/Test/Poisson_compact/test_poisson_compact.C,v 1.4 2015/08/10 15:32:27 j_novak Exp $" ; /* * $Id: test_poisson_compact.C,v 1.4 2015/08/10 15:32:27 j_novak Exp $ * $Log: test_poisson_compact.C,v $ * Revision 1.4 2015/08/10 15:32:27 j_novak * Better calls to Param::add_int(), to avoid weird problems (e.g. with g++ 4.8). * * Revision 1.3 2014/10/06 15:12:54 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.2 2003/01/09 11:07:54 j_novak * headcpp.h is now compliant with C++ norm. * The include files have been ordered, as well as the local_settings_linux * * Revision 1.1.1.1 2001/11/20 15:19:31 e_gourgoulhon * LORENE * * Revision 1.4 2000/02/25 09:56:04 eric * Nouveau constructeur de Tenseur (triade passee en argument) * fact_echelle est desormais passe en double_mod dans le Param. * * Revision 1.3 2000/01/27 16:04:50 eric * Suppression lecture des parametres dans un fichier. * * Revision 1.2 2000/01/14 17:35:33 eric * Annulation de la source avant l'appel a Map_radial::poisson_compact. * * Revision 1.1 2000/01/13 16:45:10 eric * Initial revision * * * $Header: /cvsroot/Lorene/Codes/Test/Poisson_compact/test_poisson_compact.C,v 1.4 2015/08/10 15:32:27 j_novak Exp $ * */ // version of 13.01.2000 // headers C #include #include // headers Lorene #include "tenseur.h" #include "param.h" #include "utilitaires.h" #include "nbr_spx.h" //****************************************************************************** void main(){ // Identification of all the subroutines called by the code : system("ident test_poisson_compact") ; //----------------------------------------------------------------------- // Input data : number of points, types of sampling, etc... //----------------------------------------------------------------------- int nt = 17 ; // Number of points in theta int np = 16 ; // Number of points in phi int nz = 3 ; // Number of domains int* nr = new int[nz]; int* nt_tab = new int[nz]; int* np_tab = new int[nz]; double* bornes = new double[nz+1]; int* type_r = new int[nz]; for (int l=0; l