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);
115 double sourceCoefficient=0.0,
116 double diffusionCoefficient=1.0);
180namespace serialization
185template<
class Archive,
unsigned DIM>
186inline void save_construct_data(
191 ar & p_cell_population;
197template<
class Archive,
unsigned DIM>
198inline void load_construct_data(
203 ar >> p_cell_population;
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
double GetUptakeRateForElement(unsigned elementIndex)
c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX)
double GetCoefficient() const
double ComputeConstantInUSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
void serialize(Archive &archive, const unsigned int version)
double mSourceCoefficient
double mDiffusionCoefficient
std::vector< double > mCellDensityOnCoarseElements
AbstractCellPopulation< DIM > & mrCellPopulation
virtual void SetupSourceTerms(TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=nullptr)
double ComputeLinearInUCoeffInSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
friend class boost::serialization::access
const AbstractCellPopulation< DIM > & rGetCellPopulation() const