map_poisson_vect.C

00001 /*
00002  *   Copyright (c) 2000-2001 Philippe Grandclement
00003  *
00004  *   This file is part of LORENE.
00005  *
00006  *   LORENE is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   LORENE is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with LORENE; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 
00022 
00023 char map_poisson_vect_C[] = "$Header: /cvsroot/Lorene/C++/Source/Map/map_poisson_vect.C,v 1.4 2003/12/19 16:21:43 j_novak Exp $" ;
00024 
00025 /*
00026  * $Id: map_poisson_vect.C,v 1.4 2003/12/19 16:21:43 j_novak Exp $
00027  * $Log: map_poisson_vect.C,v $
00028  * Revision 1.4  2003/12/19 16:21:43  j_novak
00029  * Shadow hunt
00030  *
00031  * Revision 1.3  2002/07/09 16:46:23  p_grandclement
00032  * The Param in the case of an affine mapping is now 0x0 and not deleted
00033  * (I wonder why it was working before)
00034  *
00035  * Revision 1.2  2002/05/07 07:10:45  e_gourgoulhon
00036  * Compatibilty with xlC compiler on IBM SP2:
00037  *  suppressed the parenthesis around argument of instruction new:
00038  *  e.g.   aa = new (Tbl*[nzone])  --->  aa = new Tbl*[nzone]
00039  *      result = new (Param)   --->  result = new Param
00040  *
00041  * Revision 1.1.1.1  2001/11/20 15:19:27  e_gourgoulhon
00042  * LORENE
00043  *
00044  * Revision 2.3  2000/03/07  16:53:51  eric
00045  * niter est desormais passe en parametres.
00046  *
00047  * Revision 2.2  2000/02/15  10:25:49  phil
00048  * suppression des fonctions poisson_vect et poisson_vect_oohara
00049  *
00050  * Revision 2.1  2000/02/09  10:01:46  phil
00051  * ajout version oohara
00052  *
00053  * Revision 2.0  2000/01/21  12:59:10  phil
00054  * *** empty log message ***
00055  *
00056  *
00057  * $Header: /cvsroot/Lorene/C++/Source/Map/map_poisson_vect.C,v 1.4 2003/12/19 16:21:43 j_novak Exp $
00058  *
00059  */
00060 
00061 
00062 #include "map.h"
00063 #include "tenseur.h"
00064 #include "param.h"
00065 
00066 Param* Map_af::donne_para_poisson_vect(Param&, int) const {
00067     return 0x0 ;
00068 }
00069 
00070 
00071 Param* Map_et::donne_para_poisson_vect(Param& para, int i) const {
00072     assert ((i>=0) && (i<4)) ;
00073     
00074     Param* result ;
00075     result = new Param ;
00076     result->add_int(para.get_int()) ;   //nbre max iterations
00077     result->add_double(para.get_double(0), 0) ; // relaxation
00078     result->add_double(para.get_double(1), 1) ; // precision
00079     
00080     if (i!=3)
00081     result->add_cmp_mod(para.get_tenseur_mod().set(i)) ; //source au pas precedent.
00082     else
00083     result->add_cmp_mod(para.get_cmp_mod()) ; //la scalaire...
00084     
00085 
00086     result->add_int_mod(para.get_int_mod()) ;
00087     return result ;
00088 }

Generated on Tue Feb 7 01:35:18 2012 for LORENE by  doxygen 1.4.6