LifeV
MultiscaleAlgorithmExplicit.cpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  * @file
29  * @brief File containing the Multiscale Explicit Algorithm
30  *
31  * @date 26-10-2009
32  * @author Cristiano Malossi <cristiano.malossi@epfl.ch>
33  *
34  * @maintainer Cristiano Malossi <cristiano.malossi@epfl.ch>
35  */
36 
37 #include <lifev/multiscale/algorithms/MultiscaleAlgorithmExplicit.hpp>
38 
39 namespace LifeV
40 {
41 namespace Multiscale
42 {
43 
44 // ===================================================
45 // Constructors & Destructor
46 // ===================================================
49 {
50 
51 #ifdef HAVE_LIFEV_DEBUG
52  debugStream ( 8011 ) << "MultiscaleAlgorithmExplicit::MultiscaleAlgorithmExplicit() \n";
53 #endif
54 
55  M_type = Explicit;
56 }
57 
58 // ===================================================
59 // Multiscale Algorithm Virtual Methods
60 // ===================================================
61 void
62 MultiscaleAlgorithmExplicit::setupData ( const std::string& fileName )
63 {
64 
65 #ifdef HAVE_LIFEV_DEBUG
66  debugStream ( 8013 ) << "MultiscaleAlgorithmNewton::setupData( fileName ) \n";
67 #endif
68 
69  // Read parameters
70  multiscaleParameterListPtr_Type solverParametersList = Teuchos::rcp ( new Teuchos::ParameterList );
71  solverParametersList = Teuchos::getParametersFromXmlFile ( fileName );
72 
73  setAlgorithmName ( solverParametersList->sublist ( "Multiscale", true, "" ) );
74  setAlgorithmParameters ( solverParametersList->sublist ( "Multiscale Algorithm", true, "" ) );
75 }
76 
77 void
78 MultiscaleAlgorithmExplicit::subIterate()
79 {
80  checkResidual ( 0 );
81 }
82 
83 } // Namespace Multiscale
84 } // Namespace LifeV
void setupData(const std::string &fileName)
Setup the data of the algorithm using a data file.
MultiscaleAlgorithm multiscaleAlgorithm_Type
MultiscaleAlgorithmExplicit - The Multiscale Algorithm implementation of Explicit.
LinearSolver::parameterListPtr_Type multiscaleParameterListPtr_Type