/* * Test code for LORENE: given the Kerr metric in quasi-isotropic * gauge, it tests it within the 3+1 formalism, in cartesian components. * */ /* * 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 version 2 * as published by the Free Software Foundation. * * 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_kerr_C[] = "$Header: /cvsroot/Lorene/Codes/Test/Einstein/test_kerr.C,v 1.5 2014/10/13 08:54:00 j_novak Exp $" ; /* * $Id: test_kerr.C,v 1.5 2014/10/13 08:54:00 j_novak Exp $ * $Log: test_kerr.C,v $ * Revision 1.5 2014/10/13 08:54:00 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.4 2014/10/06 15:12:52 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.3 2002/10/16 14:37:17 j_novak * Reorganization of #include instructions of standard C++, in order to * use experimental version 3 of gcc. * * Revision 1.2 2002/09/11 08:31:26 j_novak * *** empty log message *** * * Revision 1.1 2002/09/10 13:23:19 j_novak * A test code for LORENE on Kerr metric is now available. * * * $Header: /cvsroot/Lorene/Codes/Test/Einstein/test_kerr.C,v 1.5 2014/10/13 08:54:00 j_novak Exp $ * */ //standard #include // Headers Lorene : #include "utilitaires.h" #include "param.h" #include "tenseur.h" #include "metrique.h" #include "graphique.h" #include "proto.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