36#ifndef AVERAGEDSOURCEELLIPTICPDE_HPP_
37#define AVERAGEDSOURCEELLIPTICPDE_HPP_
40#include <boost/serialization/base_object.hpp>
41#include <boost/serialization/vector.hpp>
43#include "AbstractCellPopulation.hpp"
44#include "TetrahedralMesh.hpp"
45#include "AbstractLinearEllipticPde.hpp"
70 friend class TestCellBasedEllipticPdes;
82 template<
class Archive>
83 void serialize(Archive & archive,
const unsigned int version)
85 archive & boost::serialization::base_object<AbstractLinearEllipticPde<DIM, DIM> >(*this);
83 void serialize(Archive & archive,
const unsigned int version) {
…}
125 double constantSourceCoefficient=0.0,
126 double linearSourceCoefficient=0.0,
127 double diffusionCoefficient=1.0,
128 bool scaleByCellVolume=
false);
207namespace serialization
212template<
class Archive,
unsigned DIM>
213inline void save_construct_data(
218 ar & p_cell_population;
224template<
class Archive,
unsigned DIM>
225inline void load_construct_data(
230 ar >> p_cell_population;
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
double ComputeConstantInUSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement) override
double GetUptakeRateForElement(unsigned elementIndex)
double mLinearSourceCoefficient
double GetDiffusionCoefficient() const
void serialize(Archive &archive, const unsigned int version)
double GetConstantCoefficient() const
double GetLinearCoefficient() const
double ComputeLinearInUCoeffInSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement) override
c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX) override
bool GetScaleByCellVolume() const
double mDiffusionCoefficient
std::vector< double > mCellDensityOnCoarseElements
double mConstantSourceCoefficient
AbstractCellPopulation< DIM > & mrCellPopulation
virtual void SetupSourceTerms(TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=nullptr)
friend class boost::serialization::access
const AbstractCellPopulation< DIM > & rGetCellPopulation() const