cmp_pde.C

00001 /*
00002  * Methods of the class Cmp for various partial differential equations
00003  */
00004 
00005 /*
00006  *   Copyright (c) 1999-2001 Eric Gourgoulhon
00007  *   Copyright (c) 1999-2001 Philippe Grandclement
00008  *   Copyright (c) 2000-2001 Jerome Novak
00009  *
00010  *   This file is part of LORENE.
00011  *
00012  *   LORENE is free software; you can redistribute it and/or modify
00013  *   it under the terms of the GNU General Public License as published by
00014  *   the Free Software Foundation; either version 2 of the License, or
00015  *   (at your option) any later version.
00016  *
00017  *   LORENE is distributed in the hope that it will be useful,
00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *   GNU General Public License for more details.
00021  *
00022  *   You should have received a copy of the GNU General Public License
00023  *   along with LORENE; if not, write to the Free Software
00024  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  */
00027 
00028 
00029 char cmp_pde_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde.C,v 1.4 2005/08/30 08:35:12 p_grandclement Exp $" ;
00030 
00031 /*
00032  * $Id: cmp_pde.C,v 1.4 2005/08/30 08:35:12 p_grandclement Exp $
00033  * $Log: cmp_pde.C,v $
00034  * Revision 1.4  2005/08/30 08:35:12  p_grandclement
00035  * Addition of the Tau version of the vectorial Poisson equation for the Tensors
00036  *
00037  * Revision 1.3  2004/03/01 09:54:59  j_novak
00038  * Suppression of the Cmp version of avance_dalembert (now only with Scalar's)
00039  *
00040  * Revision 1.2  2002/01/03 15:30:27  j_novak
00041  * Some comments modified.
00042  *
00043  * Revision 1.1.1.1  2001/11/20 15:19:27  e_gourgoulhon
00044  * LORENE
00045  *
00046  * Revision 1.8  2001/10/16  09:59:00  novak
00047  * deletion of source(t=jm1) from the argument list of d'Alembert solvers
00048  *
00049  * Revision 1.7  2001/07/19 14:04:07  novak
00050  * new argument list for Cmp::avance_dalembert
00051  *
00052  * Revision 1.6  2000/12/04 15:07:55  novak
00053  * *** empty log message ***
00054  *
00055  * Revision 1.5  2000/10/19 14:16:43  novak
00056  * Ajout de Cmp::avance_dalembert (etat experimental)
00057  *
00058  * Revision 1.4  1999/12/21 14:47:30  eric
00059  * *** empty log message ***
00060  *
00061  * Revision 1.3  1999/12/21  13:04:00  eric
00062  * Changement de prototype de la routine poisson avec Param& : la solution est
00063  * desormais passee en argument (et non plus en valeur de retour)
00064  * pour permettre l'initialisation de methodes de resolution iteratives.
00065  *
00066  * Revision 1.2  1999/12/21  10:07:25  eric
00067  * Il y a desormais deux versions de poisson: une sans Param et une
00068  * avec Param.
00069  *
00070  * Revision 1.1  1999/12/02  14:30:13  eric
00071  * Initial revision
00072  *
00073  *
00074  * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde.C,v 1.4 2005/08/30 08:35:12 p_grandclement Exp $
00075  *
00076  */
00077 
00078 // Header Lorene:
00079 #include "map.h"
00080 #include "cmp.h"
00081 #include "param.h"
00082 
00083             //-----------------------------------//
00084             //      Scalar Poisson equation  //
00085             //-----------------------------------//
00086 
00087 // Version without parameters
00088 // --------------------------
00089 
00090 Cmp Cmp::poisson() const {
00091     
00092     Param bidon ;
00093     Cmp resu(*mp) ; 
00094     
00095     mp->poisson(*this, bidon, resu) ; 
00096 
00097     return resu ;          
00098 }
00099 
00100 // Version with parameters
00101 // -----------------------
00102 
00103 void Cmp::poisson(Param& par, Cmp& uu) const {
00104     
00105     mp->poisson(*this, par, uu) ;     
00106     
00107 }
00108 
00109                   //--------------------------------------------------//
00110             //      Scalar Poisson equation with a Tau method    //
00111             //--------------------------------------------------//
00112 
00113 // Version without parameters
00114 // --------------------------
00115 
00116 Cmp Cmp::poisson_tau() const {
00117     
00118     Param bidon ;
00119     Cmp resu(*mp) ; 
00120     
00121     mp->poisson_tau(*this, bidon, resu) ; 
00122 
00123     return resu ;          
00124 }
00125 
00126 // Version with parameters
00127 // -----------------------
00128 
00129 void Cmp::poisson_tau(Param& par, Cmp& uu) const {
00130     
00131     mp->poisson_tau(*this, par, uu) ;     
00132     
00133 }
00134 

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