ug4
truncated_monotone_transfer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2015: G-CSC, Goethe University Frankfurt
3  * Author: Raphael Prohl
4  *
5  * This file is part of UG4.
6  *
7  * UG4 is free software: you can redistribute it and/or modify it under the
8  * terms of the GNU Lesser General Public License version 3 (as published by the
9  * Free Software Foundation) with the following additional attribution
10  * requirements (according to LGPL/GPL v3 §7):
11  *
12  * (1) The following notice must be displayed in the Appropriate Legal Notices
13  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
14  *
15  * (2) The following notice must be displayed at a prominent place in the
16  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
17  *
18  * (3) The following bibliography is recommended for citation and must be
19  * preserved in all covered files:
20  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
21  * parallel geometric multigrid solver on hierarchically distributed grids.
22  * Computing and visualization in science 16, 4 (2013), 151-164"
23  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
24  * flexible software system for simulating pde based models on high performance
25  * computers. Computing and visualization in science 16, 4 (2013), 165-179"
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  * GNU Lesser General Public License for more details.
31  */
32 
33 #ifndef __H__UG__LIB_DISC__OPERATOR__NON_LINEAR_OPERATOR__TRUNCATED_MONOTONE_MG__TRUNCATED_MONOTONE_TRANSFER_H_
34 #define __H__UG__LIB_DISC__OPERATOR__NON_LINEAR_OPERATOR__TRUNCATED_MONOTONE_MG__TRUNCATED_MONOTONE_TRANSFER_H_
35 
37 
38 namespace ug{
39 
40 template <typename TDomain, typename TAlgebra>
42  public StdTransfer<TDomain, TAlgebra>
43 {
44  public:
47 
50 
52  typedef TDomain domain_type;
53 
55  typedef TAlgebra algebra_type;
56 
58  typedef typename TAlgebra::vector_type vector_type;
59 
61  typedef typename TAlgebra::matrix_type matrix_type;
62 
63  public:
66  m_bInit(false)
67  {};
68 
69  public:
71  // INTERFACE METHODS
73 
75  void init();
76 
78  void set_levels(GridLevel coarseLevel, GridLevel fineLevel);
79 
82  const GridLevel& coarseGL,
84 
87  const GridLevel& fineGL,
91 
92  private:
94  bool m_bInit;
95 
98 
102 };
103 
104 } // end namespace ug
105 
106 // include implementation
108 
109 #endif /* __H__UG__LIB_DISC__OPERATOR__NON_LINEAR_OPERATOR__TRUNCATED_MONOTONE_MG__TRUNCATED_MONOTONE_TRANSFER_H_ */
Definition: smart_pointer.h:296
base class for approximation spaces without type of algebra or dof distribution
Definition: approximation_space.h:279
Definition: grid_level.h:42
interface for transfer routines
Definition: transfer_interface.h:50
Standard Prolongation Operator.
Definition: std_transfer.h:59
std::vector< SmartPtr< IConstraint< TAlgebra > > > m_vConstraint
list of post processes
Definition: transfer_interface.h:117
Definition: truncated_monotone_transfer.h:43
SmartPtr< ITransferOperator< TDomain, TAlgebra > > clone()
Clone.
Definition: truncated_monotone_transfer_impl.h:114
void init()
initialize the operator
Definition: truncated_monotone_transfer_impl.h:56
SmartPtr< matrix_type > restriction(const GridLevel &coarseGL, const GridLevel &fineGL, ConstSmartPtr< ApproximationSpace< TDomain > > spApproxSpace)
returns restriction as a matrix
Definition: truncated_monotone_transfer_impl.h:77
SmartPtr< matrix_type > prolongation(const GridLevel &fineGL, const GridLevel &coarseGL, ConstSmartPtr< ApproximationSpace< TDomain > > spApproxSpace)
returns prolongation as a matrix
Definition: truncated_monotone_transfer_impl.h:66
void set_levels(GridLevel coarseLevel, GridLevel fineLevel)
Set Levels for Prolongation coarse -> fine.
Definition: truncated_monotone_transfer_impl.h:43
TruncatedMonotoneTransfer()
Constructor.
Definition: truncated_monotone_transfer.h:65
bool m_bInit
init flag
Definition: truncated_monotone_transfer.h:94
TAlgebra algebra_type
Type of algebra.
Definition: truncated_monotone_transfer.h:55
TAlgebra::vector_type vector_type
Type of Vector.
Definition: truncated_monotone_transfer.h:58
StdTransfer< TDomain, TAlgebra > base_type
base type
Definition: truncated_monotone_transfer.h:49
GridLevel m_fineLevel
Definition: truncated_monotone_transfer.h:101
TDomain domain_type
Type of Domain.
Definition: truncated_monotone_transfer.h:52
TruncatedMonotoneTransfer< TDomain, TAlgebra > this_type
This type.
Definition: truncated_monotone_transfer.h:46
TAlgebra::matrix_type matrix_type
Type of Matrix.
Definition: truncated_monotone_transfer.h:61
GridLevel m_coarseLevel
coarse and fine Gridlevel
Definition: truncated_monotone_transfer.h:100
the ug namespace