/* * Test program the contract and flat_scalar_prod operations on Tenseur's * */ /* * 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_tenseur_contract_C[] = "$Header: /cvsroot/Lorene/Codes/Test/Tenseur/test_tenseur_contract.C,v 1.6 2014/10/13 08:54:03 j_novak Exp $" ; /* * $Id: test_tenseur_contract.C,v 1.6 2014/10/13 08:54:03 j_novak Exp $ * $Log: test_tenseur_contract.C,v $ * Revision 1.6 2014/10/13 08:54:03 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.5 2014/10/06 15:12:55 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.4 2008/08/27 08:54:07 jl_cornou * Tests for angular potential A added * * Revision 1.3 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.2 2002/08/08 15:10:45 j_novak * The flag "plat" has been added to the class Metrique to show flat metrics. * * Revision 1.1.1.1 2001/11/20 15:19:31 e_gourgoulhon * LORENE * * Revision 1.1 2000/02/01 14:56:14 eric * Initial revision * * * $Header: /cvsroot/Lorene/Codes/Test/Tenseur/test_tenseur_contract.C,v 1.6 2014/10/13 08:54:03 j_novak Exp $ * */ // headers C #include #include // headers Lorene #include "type_parite.h" #include "tenseur.h" #include "utilitaires.h" #include "nbr_spx.h" //****************************************************************************** using namespace Lorene ; int main(){ // Identification of all the subroutines called by the code : system("ident test_tenseur_contract") ; //----------------------------------------------------------------------- // Input data : number of points, types of sampling, etc... //----------------------------------------------------------------------- int nt = 7 ; // Number of points in theta int np = 6 ; // 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