/* * Main code for computing Misner-Lindquist solution * */ /* * Copyright (c) 2005 Philippe Grandclement * * 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 init_bh_mdiff_C[] = "$Header: "; /* * $Id: init_bh_mdiff.C,v 1.3 2014/10/13 08:53:52 j_novak Exp $ * $Log: init_bh_mdiff.C,v $ * Revision 1.3 2014/10/13 08:53:52 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.2 2014/10/06 15:09:41 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.1 2005/08/29 15:10:19 p_grandclement * Addition of things needed : * 1) For BBH with different masses * 2) Provisory files for the mixted binaries (Bh and NS) : THIS IS NOT * WORKING YET !!! * * * $Header: /cvsroot/Lorene/Codes/Bin_BH_mass_diff/init_bh_mdiff.C,v 1.3 2014/10/13 08:53:52 j_novak Exp $ * */ #include "headcpp.h" //standard #include #include // LORENE #include "type_parite.h" #include "nbr_spx.h" #include "proto.h" #include "coord.h" #include "tenseur.h" #include "bhole.h" #include "utilitaires.h" #include "graphique.h" using namespace Lorene ; int main(int argc, char** argv) { // Lecture du fichier de parametres : if (argc <2) { cout <<" Passer nom du ficher en arguments SVP !" << endl ; abort() ; } char blabla [119] ; char* name_fich = argv[1] ; ifstream param(name_fich) ; double precis, relax, distance ; int nz_un, nz_deux, nbrer, nbret, nbrep ; param >> distance ; param.getline(blabla, 120) ; param >> nz_un ; param >> nz_deux ; param.getline(blabla, 120) ; param >> nbrer ; param >> nbret ; param >> nbrep ; param.getline(blabla, 120) ; double* bornes_un = new double[nz_un+1] ; for (int i=0 ; i> bornes_un[i] ; bornes_un[nz_un] = __infinity ; param.getline(blabla, 120) ; double* bornes_deux = new double[nz_deux+1] ; for (int i=0 ; i> bornes_deux[i] ; bornes_deux[nz_deux] = __infinity ; param.getline(blabla, 120) ; param >> precis ; param.getline(blabla, 120) ; param >> relax ; param.getline(blabla, 120) ; param.close() ; int symetrie = NONSYM ; // echantillonnage en phi : int* np_un = new int [nz_un] ; for (int l=0 ; l