compute_vertex_values

Issue #55 invalid
Chaffra Affouda created an issue

In python compute_vertex_values only takes a mesh as argument, but I do not find the corresponding function in c++ or swig. Where is compute_vertex_values(mesh) defined? I am asking because I created a function get_indices below an in python I would like to do

indices = mesh.domains.get_indices(0,1)

//----------------------------------------------------------------------------- void MeshDomains::get_indices(std::vector<std::size_t> indices, std::size_t dim, std::size_t marker) const { std::map<std::size_t, std::size_t>::const_iterator it; for (it = _markers[dim].begin(); it != _markers[dim].end(); it++ ){ if(it->second == marker) indices.push_back(it->first); } }

Comments (2)

  1. Jan Blechta

    Please, use markdown - this is not readable.

    In dolfin/function/Function.cpp there is

    void Function::compute_vertex_values(std::vector<double>& vertex_values,
                                         const Mesh& mesh) const
    
  2. Log in to comment