/* * Copyright (c) 2000-2001 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 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 cmp_raccord_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_raccord.C,v 1.4 2014/10/13 08:52:48 j_novak Exp $" ; /* * $Id: cmp_raccord.C,v 1.4 2014/10/13 08:52:48 j_novak Exp $ * $Log: cmp_raccord.C,v $ * Revision 1.4 2014/10/13 08:52:48 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.3 2014/10/06 15:13:03 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.2 2003/10/03 15:58:45 j_novak * Cleaning of some headers * * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon * LORENE * * Revision 2.1 2000/09/07 13:19:58 phil * *** empty log message *** * * Revision 2.0 2000/06/06 12:18:27 phil * *** empty log message *** * * * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_raccord.C,v 1.4 2014/10/13 08:52:48 j_novak Exp $ * */ //standard #include #include // LORENE #include "matrice.h" #include "cmp.h" #include "proto.h" namespace Lorene { Matrice matrice_raccord_pair (int cont, double alpha_kernel) { Matrice systeme (cont, cont) ; systeme.set_etat_qcq() ; for (int i=0 ; i= cont) ; Tbl resu (nr) ; resu.set_etat_qcq() ; double* x4coef = new double[nr] ; for (int i=0 ; i=0) ; int cont = aux+1 ; const Map_af* mapping = dynamic_cast(get_mp() ) ; if (mapping == 0x0) { cout << "raccord : The mapping does not belong to the class Map_af !" << endl ; abort() ; } assert (mapping->get_mg()->get_type_r(1) == FIN) ; assert (mapping->get_mg()->get_type_r(0) == RARE) ; // On passe en Ylm et vire tout dans la zone interne... va.coef() ; va.ylm() ; va.set_etat_cf_qcq() ; va.c_cf->t[0]->annule_hard() ; // Confort : int nz = mapping->get_mg()->get_nzone() ; int nbrer_kernel = mapping->get_mg()->get_nr(0) ; int nbrer_shell = mapping->get_mg()->get_nr(1) ; int nbret_kernel = mapping->get_mg()->get_nt(0) ; int nbret_shell = mapping->get_mg()->get_nt(1) ; int nbrep_kernel = mapping->get_mg()->get_np(0) ; int nbrep_shell = mapping->get_mg()->get_np(1) ; double alpha_kernel = mapping->get_alpha()[0] ; double alpha_shell = mapping->get_alpha()[1] ; int base_r, m_quant, l_quant ; for (int k=0 ; kset(0, k, j, i) = soluce(i) ; else { if (l_quant %2 == 0) regulier = regularise (soluce, nbrer_kernel, R_CHEBP) ; else regulier = regularise (soluce, nbrer_kernel, R_CHEBI) ; for (int i=0 ; iset(0, k, j, i) = regulier(i) ; } } va.ylm_i() ; } }