Skip to content
Snippets Groups Projects
  • Nora Abi Akar's avatar
    Expose information about the CV discretization to the public inteface (#1758) · 1363f092
    Nora Abi Akar authored
    Refactor the CV-cable logic from `fvm_layout.cpp`. Specifically, move `cv_geometry_from_ends` into the new public header `cv_data.hpp` and rename it to `cv_data_from_locset`, and move `pw_over_cable` into another new public header `util/piecewise_over_cable.hpp`. 
    Create a new public class `cell_cv_data`, similar to the private `cv_geometry` but which only carries the cv information for a single cable-cell. Add a new constructor to `cv_geometry` which takes `cell_cv_data` as an argument. 
    Add new public function `intersect_region` that takes as arguments a cable-cell, a region on that cell and a `cell_cv_data` object and returns a vector of CV indices and proportions belonging to the region. 
    Add docs, python wrapper and unit tests. 
    
    Fixes #1720. 
    Unverified
    1363f092