36 #ifndef AVERAGEDSOURCEPDE_HPP_
37 #define AVERAGEDSOURCEPDE_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"
51 template<
unsigned DIM>
54 friend class TestCellBasedPdes;
66 template<
class Archive>
67 void serialize(Archive & archive,
const unsigned int version)
69 archive & boost::serialization::base_object<AbstractLinearEllipticPde<DIM, DIM> >(*this);
157 namespace serialization
162 template<
class Archive,
unsigned DIM>
163 inline void save_construct_data(
168 ar & p_cell_population;
174 template<
class Archive,
unsigned DIM>
175 inline void load_construct_data(
180 ar >> p_cell_population;
friend class boost::serialization::access
double ComputeConstantInUSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
const AbstractCellPopulation< DIM > & rGetCellPopulation() const
double ComputeLinearInUCoeffInSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
void serialize(Archive &archive, const unsigned int version)
std::vector< double > mCellDensityOnCoarseElements
virtual void SetupSourceTerms(TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=NULL)
double GetUptakeRateForElement(unsigned elementIndex)
double GetCoefficient() const
AbstractCellPopulation< DIM > & mrCellPopulation
AveragedSourcePde(AbstractCellPopulation< DIM > &rCellPopulation, double coefficient=0.0)
c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX)