escript  Revision_
FluxLimiter.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 #ifndef __PASO_FLUXLIMITER_H__
18 #define __PASO_FLUXLIMITER_H__
19 
20 #include "Transport.h"
21 
22 namespace paso {
23 
24 
27 {
30 
31  inline dim_t getTotalNumRows() const
32  {
33  return antidiffusive_fluxes->getTotalNumRows();
34  }
35 
37  {
38  return antidiffusive_fluxes->pattern;
39  }
40 
41  void setU_tilde(const double* Mu_tilde);
43  void addLimitedFluxes_Complete(double* b);
44 
47  double dt;
48  double* u_tilde;
49  double* MQ; // (M_C* Q_min, M_C* Q_max)
50  double* R; // (R-, R+)
51  //Coupler_ptr MQ_coupler;
54  double* borrowed_lumped_mass_matrix; // borrowed reference
55 };
56 
57 } // namespace paso
58 
59 #endif // __PASO_FLUXLIMITER_H__
60 
#define PASO_DLL_API
Definition: Paso.h:58
Definition: FluxLimiter.h:26
dim_t getTotalNumRows() const
Definition: FluxLimiter.h:31
SystemMatrix_ptr antidiffusive_fluxes
Definition: FluxLimiter.h:45
Coupler_ptr u_tilde_coupler
Definition: FluxLimiter.h:53
escript::JMPI mpi_info
Definition: FluxLimiter.h:46
~FCT_FluxLimiter()
Definition: FluxLimiter.cpp:53
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:39
double * R
Definition: FluxLimiter.h:50
FCT_FluxLimiter(const_TransportProblem_ptr tp)
Definition: FluxLimiter.cpp:32
double * MQ
Definition: FluxLimiter.h:49
boost::shared_ptr< SystemMatrix > SystemMatrix_ptr
Definition: SystemMatrix.h:40
Definition: AMG.cpp:45
Coupler_ptr R_coupler
Definition: FluxLimiter.h:52
SystemMatrixPattern_ptr getFluxPattern() const
Definition: FluxLimiter.h:36
void setU_tilde(const double *Mu_tilde)
Definition: FluxLimiter.cpp:62
boost::shared_ptr< const TransportProblem > const_TransportProblem_ptr
Definition: Transport.h:33
double dt
Definition: FluxLimiter.h:47
void addLimitedFluxes_Complete(double *b)
Definition: FluxLimiter.cpp:207
double * u_tilde
Definition: FluxLimiter.h:48
void addLimitedFluxes_Start()
Definition: FluxLimiter.cpp:137
boost::shared_ptr< Coupler > Coupler_ptr
Definition: Coupler.h:41
double * borrowed_lumped_mass_matrix
Definition: FluxLimiter.h:54
index_t dim_t
Definition: DataTypes.h:64