/* * Main code for Isolated Horizon in spherical symmetry and flat * conformal metric: to test kappa = const condition * */ /* * Copyright (c) 2004-2005 Jose Luis Jaramillo * Francois limousin * * 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 isolhor_C[] = "$Header: /cvsroot/Lorene/Codes/Isol_hor/isolhor_spher.C,v 1.3 2014/10/13 08:53:57 j_novak Exp $" ; // C++ headers #include "headcpp.h" // C headers #include #include #include // Lorene headers #include "tenseur.h" #include "metric.h" #include "evolution.h" #include "param.h" #include "nbr_spx.h" #include "utilitaires.h" #include "graphique.h" #include "time_slice.h" #include "isol_hor.h" using namespace Lorene ; int main() { //====================================================================== // Construction and initialization of the various objects //====================================================================== // Setup of a multi-domain grid (Lorene class Mg3d) // ------------------------------------------------ int nz, nt, np, nr1, nrp1 ; ifstream fpar("par_hor.d") ; fpar.ignore(1000, '\n') ; fpar.ignore(1000, '\n') ; fpar >> nz; fpar.ignore(1000, '\n'); fpar >> nt; fpar.ignore(1000, '\n'); fpar >> np; fpar.ignore(1000, '\n'); fpar >> nr1; fpar.ignore(1000, '\n'); fpar >> nrp1; fpar.ignore(1000, '\n'); int type_t = SYM ; // symmetry with respect to the equatorial plane int type_p = NONSYM ; // no symmetry in phi // Reading of the parameter file // ------------------------------ int niter, bound_nn, bound_psi, bound_beta, solve_lapse, solve_psi ; int solve_shift ; double radius, relax, seuil, ang_vel, boost_x, boost_z, lim_nn ; fpar >> radius; fpar.ignore(1000, '\n'); fpar >> relax; fpar.ignore(1000, '\n'); fpar >> seuil; fpar.ignore(1000, '\n'); fpar >> niter; fpar.ignore(1000, '\n'); fpar >> ang_vel; fpar.ignore(1000, '\n'); fpar >> boost_x ; fpar >> boost_z; fpar.ignore(1000, '\n'); fpar >> bound_nn ; fpar >> lim_nn ; fpar.ignore(1000, '\n'); fpar >> bound_psi ; fpar.ignore(1000, '\n'); fpar >> bound_beta ; fpar.ignore(1000, '\n'); fpar >> solve_lapse ; fpar.ignore(1000, '\n'); fpar >> solve_psi ; fpar.ignore(1000, '\n'); fpar >> solve_shift ; fpar.ignore(1000, '\n'); int* nr_tab = new int[nz]; int* nt_tab = new int[nz]; int* np_tab = new int[nz]; double* bornes = new double[nz+1]; for (int l=0; lget_np(1) ; int nnt = mp.get_mg()->get_nt(1) ; for (int k=0 ; k max_exp) max_exp = expansion.val_grid_point(1, k, j, 0) ; if (expansion.val_grid_point(1, k, j, 0) < min_exp) min_exp = expansion.val_grid_point(1, k, j, 0) ; } cout << "max_exp = " << max_exp << endl << "min_kss = " << min_exp << endl ; // Save in a file // -------------- FILE* fresu = fopen("resu.d", "w") ; mgrid.sauve(fresu) ; mp.sauve(fresu) ; isolhor.sauve(fresu, true) ; fclose(fresu) ; // Test of the constraints //------------------------ /* if (solve_shift == 1) isolhor.update_aa() ; else isolhor.aa_kerr_ww(mm, aaa) ; */ cout<< "----------------------------------------" <