ope_elementary.C

00001 /*
00002  *   Copyright (c) 2003 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 version 2
00008  *   as published by the Free Software Foundation.
00009  *
00010  *   LORENE is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with LORENE; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  *
00019  */
00020 
00021 char ope_elementary_C[] = "$Header: /cvsroot/Lorene/C++/Source/Ope_elementary/ope_elementary.C,v 1.1 2003/12/11 14:48:50 p_grandclement Exp $" ;
00022 
00023 /*
00024  * $Id: ope_elementary.C,v 1.1 2003/12/11 14:48:50 p_grandclement Exp $
00025  * $Log: ope_elementary.C,v $
00026  * Revision 1.1  2003/12/11 14:48:50  p_grandclement
00027  * Addition of ALL (and that is a lot !) the files needed for the general elliptic solver ... UNDER DEVELOPEMENT...
00028  *
00029  * 
00030  * $Header: /cvsroot/Lorene/C++/Source/Ope_elementary/ope_elementary.C,v 1.1 2003/12/11 14:48:50 p_grandclement Exp $
00031  *
00032  */
00033 
00034 #include "proto.h"
00035 #include "ope_elementary.h"
00036 
00037 // Standard constructor :
00038 Ope_elementary::Ope_elementary (int nbr, int base, double alf, double bet) : 
00039   nr (nbr), base_r (base), alpha(alf), beta(bet),
00040   ope_mat(0x0), ope_cl (0x0), non_dege(0x0) {}
00041 
00042 // Constructor by copy:
00043 Ope_elementary::Ope_elementary (const Ope_elementary& so) : 
00044   nr (so.nr), base_r(so.base_r), alpha(so.alpha), beta(so.beta), 
00045   ope_mat(0x0), ope_cl (0x0), non_dege(0x0) {
00046   
00047   if (so.ope_mat != 0x0)
00048     ope_mat = new Matrice (*so.ope_mat) ;
00049 
00050   if (so.ope_cl != 0x0)
00051     ope_cl = new Matrice (*so.ope_cl) ;
00052 
00053    if (so.non_dege != 0x0)
00054     non_dege = new Matrice (*so.non_dege) ;
00055 }
00056 
00057 // Destructor :
00058 Ope_elementary::~Ope_elementary() {
00059   if (ope_mat != 0x0)
00060     delete ope_mat ;
00061 
00062   if (ope_cl != 0x0)
00063     delete ope_cl ;
00064   
00065   if (non_dege != 0x0)
00066     delete non_dege ;
00067 }
00068 

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