/* * Small utility for determining the surface for 2-fluid stars. * */ /* * 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 prolonge_c1_C[] = "$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Utilities/prolonge_c1.C,v 1.4 2016/09/19 15:26:23 j_novak Exp $" ; #include "cmp.h" namespace Lorene { Cmp prolonge_c1(const Cmp& uu, const int nzet) { const Map_radial* mpi = dynamic_cast( uu.get_mp() ) ; if (mpi == 0x0) { cout << "prolonge_c1 : The mapping does not belong to the class Map_radial !" << endl ; abort() ; } const Map_radial& mp = *mpi ; const Mg3d& mg = *(mp.get_mg()) ; int nz = mg.get_nzone() ; assert((nzet > 0)&&(nzet