cmp_pde_falloff.C

00001 /*
00002  *  Methods of the class Cmp for partial differential equations
00003  *   with a falloff condition at the outer boundary
00004  *
00005  *    (see file cmp.h for documentation).
00006  *
00007  */
00008 
00009 /*
00010  *   Copyright (c) 2004 Joshua A. Faber
00011  *
00012  *   This file is part of LORENE.
00013  *
00014  *   LORENE is free software; you can redistribute it and/or modify
00015  *   it under the terms of the GNU General Public License version 2
00016  *   as published by the Free Software Foundation.
00017  *
00018  *   LORENE is distributed in the hope that it will be useful,
00019  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  *   GNU General Public License for more details.
00022  *
00023  *   You should have received a copy of the GNU General Public License
00024  *   along with LORENE; if not, write to the Free Software
00025  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  *
00027  */
00028 
00029 char cmp_pde_falloff_C[] = "$Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_falloff.C,v 1.1 2004/11/30 20:47:38 k_taniguchi Exp $" ;
00030 
00031 /*
00032  * $Id: cmp_pde_falloff.C,v 1.1 2004/11/30 20:47:38 k_taniguchi Exp $
00033  * $Log: cmp_pde_falloff.C,v $
00034  * Revision 1.1  2004/11/30 20:47:38  k_taniguchi
00035  * *** empty log message ***
00036  *
00037  *
00038  * $Header: /cvsroot/Lorene/C++/Source/Cmp/cmp_pde_falloff.C,v 1.1 2004/11/30 20:47:38 k_taniguchi Exp $
00039  *
00040  */
00041 
00042 // Header Lorene:
00043 #include "map.h"
00044 #include "cmp.h"
00045 #include "param.h"
00046 
00047             //-----------------------------------//
00048             //      Scalar Poisson equation  //
00049             //-----------------------------------//
00050 
00051 // Version without parameters
00052 // --------------------------
00053 
00054 Cmp Cmp::poisson_falloff(int k_falloff) const {
00055     
00056     Param bidon ;
00057     Cmp resu(*mp) ; 
00058     
00059     mp->poisson_falloff(*this, bidon, resu, k_falloff) ; 
00060 
00061     return resu ;          
00062 }
00063 
00064 // Version with parameters
00065 // -----------------------
00066 
00067 void Cmp::poisson_falloff(Param& par, Cmp& uu, int k_falloff) const {
00068     
00069     mp->poisson_falloff(*this, par, uu, k_falloff) ;     
00070     
00071 }

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