/* * Test program for the Etoile class * */ /* * 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_etoile_C[] = "$Header: /cvsroot/Lorene/Codes/Test/Etoile/test_etoile.C,v 1.3 2014/10/06 15:12:52 j_novak Exp $" ; /* * $Id: test_etoile.C,v 1.3 2014/10/06 15:12:52 j_novak Exp $ * $Log: test_etoile.C,v $ * Revision 1.3 2014/10/06 15:12:52 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.2 2002/10/16 14:37:18 j_novak * Reorganization of #include instructions of standard C++, in order to * use experimental version 3 of gcc. * * Revision 1.1.1.1 2001/11/20 15:19:31 e_gourgoulhon * LORENE * * Revision 1.2 2000/01/28 17:19:14 eric * *** empty log message *** * * Revision 1.1 2000/01/27 16:48:01 eric * Initial revision * * * $Header: /cvsroot/Lorene/Codes/Test/Etoile/test_etoile.C,v 1.3 2014/10/06 15:12:52 j_novak Exp $ * */ // headers C #include #include // headers Lorene #include "etoile.h" #include "eos.h" #include "utilitaires.h" #include "graphique.h" #include "nbr_spx.h" //****************************************************************************** void main(){ { // Main block // Identification of all the subroutines called by the code : // system("ident test_etoile > identification.d") ; //----------------------------------------------------------------------- // Input data : number of points, types of sampling, etc... //----------------------------------------------------------------------- int nt = 7 ; // Number of points in theta int np = 4 ; // 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