37#if CHASTE_SUNDIALS_VERSION >= 60000
41#include <nvector/nvector_serial.h>
43#include "CvodeContextManager.hpp"
45CvodeContextManager::CvodeContextManager() : mSundialsContext() {}
47CvodeContextManager* CvodeContextManager::Instance()
50 static thread_local std::unique_ptr<CvodeContextManager> instance = std::unique_ptr<CvodeContextManager>(
new CvodeContextManager());
51 return instance.get();
54sundials::Context& CvodeContextManager::GetSundialsContext()
56 assert(mSundialsContext);
57 return mSundialsContext;