idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.71k stars 1.04k forks source link

Get Block IDs where Material Property Exists #741

Closed friedmud closed 10 years ago

friedmud commented 10 years ago

Should have an interface for asking for the block ids where a material property exists.

friedmud commented 10 years ago

This is going in in a moment. The blocks a material property exists on can now be had by doing something like:

  std::vector<unsigned int> blocks = _problem->getMaterialPropertyBlocks("thermal_conductivity");

  for(unsigned int i=0; i<blocks.size(); i++)
    std::cout<<"Thermal Conductivity On Block: "<<blocks[i]<<std::endl;
friedmud commented 10 years ago

In e1f8d758b6939ac911ec606cad022f7f96afda89:

add the ability to get the block ids a material property is present on fixes #741