/* * Main code for testing the classes Qmetrique and Qtenseur. */ /* * Copyright (c) 2002 Jerome Novak * * 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_qmetrique_C[] = "$Header: /cvsroot/Lorene/Codes/Test/QuadriD/test_qmetrique.C,v 1.4 2014/10/13 08:54:02 j_novak Exp $" ; /* * $Id: test_qmetrique.C,v 1.4 2014/10/13 08:54:02 j_novak Exp $ * $Log: test_qmetrique.C,v $ * Revision 1.4 2014/10/13 08:54:02 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.3 2014/10/06 15:12:55 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.2 2003/01/09 11:07:59 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 2002/09/19 11:41:29 j_novak * Added main program for testing the classes Qmetrique and Qtenseur * * * $Header: /cvsroot/Lorene/Codes/Test/QuadriD/test_qmetrique.C,v 1.4 2014/10/13 08:54:02 j_novak Exp $ * */ //standard #include // Headers Lorene : #include "qmetrique.h" #include "nbr_spx.h" using namespace Lorene ; int main() { double M = 1. ; double a = 0.99 ; int nz = 2 ; double R = 2*M ; // Nombre points en r int nr = 21 ; // echantillonnage en phi : int* np = new int [nz] ; for (int l=0 ; l