Feature/generic cell groups (#259)
Refactor model and recipe to build models that have different cell types. Refactor recipe::get_cell to return unique_any so that. All recipe definitions in tests and miniap had to be updated to use the new interface. Make a cell_group_factory that forwards arguments for building a cell group to the appropriate cell_group constructor. Refactor model to use generic cell types Constructor now delegates cell_group generation to the cell_group_factory. Add an implementation file model.cpp for model to reduce compilation times (by 2-7 seconds on my desktop). Refactor probe enumeration code in model and cell_group add interface to cell_group for querying enumeration of probes in a cell_group use this interface instead of directly computing enumeration in model constructor, which no longer has easy access to probe information.
Showing
- miniapp/miniapp.cpp 10 additions, 6 deletionsminiapp/miniapp.cpp
- miniapp/miniapp_recipes.cpp 4 additions, 2 deletionsminiapp/miniapp_recipes.cpp
- src/CMakeLists.txt 2 additions, 0 deletionssrc/CMakeLists.txt
- src/cell.hpp 4 additions, 19 deletionssrc/cell.hpp
- src/cell_group.hpp 3 additions, 2 deletionssrc/cell_group.hpp
- src/cell_group_factory.cpp 39 additions, 0 deletionssrc/cell_group_factory.cpp
- src/cell_group_factory.hpp 20 additions, 0 deletionssrc/cell_group_factory.hpp
- src/mc_cell_group.hpp 34 additions, 0 deletionssrc/mc_cell_group.hpp
- src/model.cpp 227 additions, 0 deletionssrc/model.cpp
- src/model.hpp 18 additions, 225 deletionssrc/model.hpp
- src/probes.hpp 22 additions, 0 deletionssrc/probes.hpp
- src/recipe.hpp 4 additions, 3 deletionssrc/recipe.hpp
- src/segment.hpp 13 additions, 1 deletionsrc/segment.hpp
- tests/unit/test_domain_decomposition.cpp 2 additions, 2 deletionstests/unit/test_domain_decomposition.cpp
Please register or sign in to comment