diff --git a/solvers/CardiacEPSolver/EquationSystems/Bidomain.cpp b/solvers/CardiacEPSolver/EquationSystems/Bidomain.cpp index bc437a1211c8ada57e15a7a8789dbe6f8d912261..3f56371cf706b1b77dc25424a1fc588127da7602 100644 --- a/solvers/CardiacEPSolver/EquationSystems/Bidomain.cpp +++ b/solvers/CardiacEPSolver/EquationSystems/Bidomain.cpp @@ -157,7 +157,7 @@ namespace Nektar if (x->first == "CheckpointCellModel") { boost::shared_ptr c - = boost::shared_dynamic_cast( + = boost::dynamic_pointer_cast( m_filters[k]); c->SetCellModel(m_cell); } diff --git a/solvers/CardiacEPSolver/EquationSystems/Monodomain.cpp b/solvers/CardiacEPSolver/EquationSystems/Monodomain.cpp index 8cbd91a9a98523356c18b55d1975d32027e314fa..dedcf00756d4f34f72018bc89ed8eb528425f699 100644 --- a/solvers/CardiacEPSolver/EquationSystems/Monodomain.cpp +++ b/solvers/CardiacEPSolver/EquationSystems/Monodomain.cpp @@ -216,7 +216,7 @@ namespace Nektar if (x->first == "CheckpointCellModel") { boost::shared_ptr c - = boost::shared_dynamic_cast( + = boost::dynamic_pointer_cast( m_filters[k]); c->SetCellModel(m_cell); }