/* * Functions Et_rot_diff::fait_omega_field * Et_rot_diff::fait_prim_field * * (see file et_rot_diff.h for documentation). * */ /* * Copyright (c) 2001 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 as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * 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 et_rot_diff_faitomeg_C[] = "$Header: /cvsroot/Lorene/C++/Source/Etoile/et_rot_diff_faitomeg.C,v 1.3 2014/10/13 08:52:57 j_novak Exp $" ; /* * $Id: et_rot_diff_faitomeg.C,v 1.3 2014/10/13 08:52:57 j_novak Exp $ * $Log: et_rot_diff_faitomeg.C,v $ * Revision 1.3 2014/10/13 08:52:57 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.2 2003/05/14 20:07:00 e_gourgoulhon * Suppressed the outputs (cout) * * Revision 1.1.1.1 2001/11/20 15:19:28 e_gourgoulhon * LORENE * * Revision 1.3 2001/10/25 09:43:18 eric * omega_min est determine dans l'etoile seulement (l(&par.get_etoile()) ; double fom = et->funct_omega(omeg) ; double omnp = omeg - nphi(l, k, j, i) ; return fom - brst2(l, k, j, i) * omnp / ( nnn2(l, k, j, i) - brst2(l, k, j, i) * omnp*omnp ) ; } //-----------------------------------// // fait_prim_field // //-----------------------------------// void Et_rot_diff::fait_prim_field() { const Mg3d& mg = *(mp.get_mg()) ; int nz = mg.get_nzone() ; // Loop on the grid points in the vicinity of the star // --------------------------------------------------- prim_field.allocate_all() ; for (int l=0; l