VertexT3SwapLocationsWriter.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #include "VertexT3SwapLocationsWriter.hpp"
00037 #include "AbstractCellPopulation.hpp"
00038 #include "MeshBasedCellPopulation.hpp"
00039 #include "CaBasedCellPopulation.hpp"
00040 #include "NodeBasedCellPopulation.hpp"
00041 #include "PottsBasedCellPopulation.hpp"
00042 #include "VertexBasedCellPopulation.hpp"
00043 #include "UblasIncludes.hpp"
00044
00045 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00046 VertexT3SwapLocationsWriter<ELEMENT_DIM, SPACE_DIM>::VertexT3SwapLocationsWriter()
00047 : AbstractCellPopulationWriter<ELEMENT_DIM, SPACE_DIM>("T3SwapLocations.dat")
00048 {
00049 }
00050
00051 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00052 void VertexT3SwapLocationsWriter<ELEMENT_DIM, SPACE_DIM>::Visit(MeshBasedCellPopulation<ELEMENT_DIM, SPACE_DIM>* pCellPopulation)
00053 {
00054 }
00055
00056 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00057 void VertexT3SwapLocationsWriter<ELEMENT_DIM, SPACE_DIM>::Visit(CaBasedCellPopulation<SPACE_DIM>* pCellPopulation)
00058 {
00059 }
00060
00061 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00062 void VertexT3SwapLocationsWriter<ELEMENT_DIM, SPACE_DIM>::Visit(NodeBasedCellPopulation<SPACE_DIM>* pCellPopulation)
00063 {
00064 }
00065
00066 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00067 void VertexT3SwapLocationsWriter<ELEMENT_DIM, SPACE_DIM>::Visit(PottsBasedCellPopulation<SPACE_DIM>* pCellPopulation)
00068 {
00069 }
00070
00071 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00072 void VertexT3SwapLocationsWriter<ELEMENT_DIM, SPACE_DIM>::Visit(VertexBasedCellPopulation<SPACE_DIM>* pCellPopulation)
00073 {
00074 std::vector< c_vector<double, SPACE_DIM> > t3_swap_locations = pCellPopulation->rGetMesh().GetLocationsOfT3Swaps();
00075
00076 *this->mpOutStream << t3_swap_locations.size() << "\t";
00077 for (unsigned index = 0; index < t3_swap_locations.size(); index++)
00078 {
00079 for (unsigned i=0; i<SPACE_DIM; i++)
00080 {
00081 *this->mpOutStream << t3_swap_locations[index][i] << "\t";
00082 }
00083 }
00084
00085 pCellPopulation->rGetMesh().ClearLocationsOfT3Swaps();
00086 }
00087
00088
00089 template class VertexT3SwapLocationsWriter<1,1>;
00090 template class VertexT3SwapLocationsWriter<1,2>;
00091 template class VertexT3SwapLocationsWriter<2,2>;
00092 template class VertexT3SwapLocationsWriter<1,3>;
00093 template class VertexT3SwapLocationsWriter<2,3>;
00094 template class VertexT3SwapLocationsWriter<3,3>;
00095
00096 #include "SerializationExportWrapperForCpp.hpp"
00097
00098 EXPORT_TEMPLATE_CLASS_ALL_DIMS(VertexT3SwapLocationsWriter)