escript Revision_
FluxLimiter.h
Go to the documentation of this file.
1
2/*****************************************************************************
3*
4* Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
14* Development from 2019 by School of Earth and Environmental Sciences
15**
16*****************************************************************************/
17
18#ifndef __PASO_FLUXLIMITER_H__
19#define __PASO_FLUXLIMITER_H__
20
21#include "Transport.h"
22
23namespace paso {
24
25
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);
42 void addLimitedFluxes_Start();
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
index_t dim_t
Definition DataTypes.h:66
boost::shared_ptr< JMPI_ > JMPI
Definition EsysMPI.h:76
Definition BiCGStab.cpp:25
boost::shared_ptr< Coupler< T > > Coupler_ptr
Definition Coupler.h:43
boost::shared_ptr< SystemMatrix< T > > SystemMatrix_ptr
Definition SystemMatrix.h:42
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition SystemMatrixPattern.h:41
boost::shared_ptr< const TransportProblem > const_TransportProblem_ptr
Definition Transport.h:34
#define PASO_DLL_API
Definition paso/src/system_dep.h:29
Definition FluxLimiter.h:27
double * MQ
Definition FluxLimiter.h:49
SystemMatrix_ptr< double > antidiffusive_fluxes
Definition FluxLimiter.h:45
double * u_tilde
Definition FluxLimiter.h:48
Coupler_ptr< real_t > R_coupler
Definition FluxLimiter.h:52
double * borrowed_lumped_mass_matrix
Definition FluxLimiter.h:54
SystemMatrixPattern_ptr getFluxPattern() const
Definition FluxLimiter.h:36
Coupler_ptr< real_t > u_tilde_coupler
Definition FluxLimiter.h:53
double * R
Definition FluxLimiter.h:50
double dt
Definition FluxLimiter.h:47
dim_t getTotalNumRows() const
Definition FluxLimiter.h:31
escript::JMPI mpi_info
Definition FluxLimiter.h:46