/* * Methods of the class HiggsMonopole * * (see file compobj.h for documentation). * */ /* * Copyright (c) 2014 Marie Leroy, 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 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 HiggsMonopole_C[] = "$Header: /cvsroot/Lorene/C++/Source/Compobj/higgs_monopole.C,v 1.3 2014/10/13 08:52:49 j_novak Exp $" ; /* * $Id: higgs_monopole.C,v 1.3 2014/10/13 08:52:49 j_novak Exp $ * $Log: higgs_monopole.C,v $ * Revision 1.3 2014/10/13 08:52:49 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.2 2014/01/31 15:35:27 e_gourgoulhon * Reading file in constructor * * Revision 1.1 2014/01/29 16:31:42 e_gourgoulhon * New class HiggsMonopole * * * $Header: /cvsroot/Lorene/C++/Source/Compobj/higgs_monopole.C,v 1.3 2014/10/13 08:52:49 j_novak Exp $ * */ // C headers #include // Lorene headers #include "compobj.h" #include "unites.h" //--------------// // Constructors // //--------------// // Standard constructor // -------------------- namespace Lorene { HiggsMonopole::HiggsMonopole(Map& mpi, const char* file_name) : Compobj(mpi) , hh(mpi) , grr(mpi) , press(mpi) { ifstream file(file_name) ; if ( !file.good() ) { cerr << "Problem in opening the file " << file_name << endl ; abort() ; } file.getline(description1, 256) ; file.getline(description2, 256) ; cout << "description1 : " << description1 << endl ; cout << "description2 : " << description2 << endl ; // description1[0] = " " ; // description2[0] = " " ; file.ignore(1000,'\n') ; const Mg3d* mg = mp.get_mg() ; double tmp ; int nz = mg->get_nzone() ; cout << "nz : " << nz << endl ; nn.set_etat_qcq() ; // Memory allocation for N grr.allocate_all() ; // Memory allocation for g_rr hh.allocate_all() ; // Memory allocation for h press.allocate_all() ; // Memory allocation for press double explamb_last, nn_last, hh_last, press_last ; for (int l=0; l>(ostream& ost) const { using namespace Unites ; ost << endl << "Higgs monopole" << endl ; ost << description1 << endl ; ost << description2 << endl ; Compobj::operator>>(ost) ; return ost ; } }