src/cdi_ipcress/IpcressMultigroupOpacity.cc
std::vector<double> IpcressMultigroupOpacity::getOpacity(double targetTemperature,
                                                         double targetDensity) const {
  // number of groups in this multigroup set.
  size_t const numGroups = spIpcressDataTable->getNumGroupBoundaries() - 1;

  // temporary opacity vector used by the wrapper.  The returned data will be
  // copied into the opacityIterator.
  std::vector<double> opacity(numGroups, -99.0);

  // logarithmic interpolation:
  for (size_t g = 0; g < numGroups; ++g) {
    opacity[g] = spIpcressDataTable->interpOpac(targetTemperature, targetDensity, g);
    Check(opacity[g] >= 0.0);
  }
  return opacity;
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Opacity accessor that returns a single opacity (or a vector of
 *     opacities for the multigroup EnergyPolicy) that corresponds to the
 *     provided temperature and density.
 */
\brief Opacity accessor that returns a single opacity (or a vector of
opacities for the multigroup EnergyPolicy) that corresponds to the
provided temperature and density.
\ brief Opacity accessor that returns a single opacity ( or a vector of opacities for the multigroup EnergyPolicy ) that corresponds to the provided temperature and density .
std::vector<double> IpcressMultigroupOpacity::getOpacity(double targetTemperature,
                                                         double targetDensity) const {
  size_t const numGroups = spIpcressDataTable->getNumGroupBoundaries() - 1;
  std::vector<double> opacity(numGroups, -99.0);
  for (size_t g = 0; g < numGroups; ++g) {
    opacity[g] = spIpcressDataTable->interpOpac(targetTemperature, targetDensity, g);
    Check(opacity[g] >= 0.0);
  }
  return opacity;
}
std :: vector < double > IpcressMultigroupOpacity :: getOpacity ( double targetTemperature , double targetDensity ) const { size_t const numGroups = spIpcressDataTable -> getNumGroupBoundaries ( ) - 1 ; std :: vector < double > opacity ( numGroups , -99.0 ) ; for ( size_t g = 0 ; g < numGroups ; ++ g ) { opacity [ g ] = spIpcressDataTable -> interpOpac ( targetTemperature , targetDensity , g ) ; Check ( opacity [ g ] >= 0.0 ) ; } return opacity ; }
\brief Opacity accessor that returns a single opacity (or a vector of
     opacities for the multigroup EnergyPolicy) that corresponds to the
     provided temperature and density.
\ brief Opacity accessor that returns a single opacity ( or a vector of opacities for the multigroup EnergyPolicy ) that corresponds to the provided temperature and density .
// number of groups in this multigroup set. // temporary opacity vector used by the wrapper.  The returned data will be // copied into the opacityIterator. // logarithmic interpolation: