src/cdi/test/DummyGrayOpacity.cc
DummyGrayOpacity::DummyGrayOpacity(rtt_cdi::Reaction reaction, rtt_cdi::Model model)
    : dataFilename("none"), dataDescriptor("DummyGrayOpacity"), energyPolicyDescriptor("Gray"),
      temperatureGrid(), densityGrid(), reaction_type(reaction), model_type(model) {
  // Set up the temperature and density grid.
  temperatureGrid.resize(numTemperatures);
  densityGrid.resize(numDensities);
  for (size_t i = 0; i < numTemperatures; ++i)
    temperatureGrid[i] = static_cast<double>(i + 1);
  for (size_t i = 0; i < numDensities; ++i)
    densityGrid[i] = 0.1 * static_cast<double>(i + 1);
}
/*!
 * \brief Constructor for DummyGrayOpacity object.
 *
 * The constructor assigns fixed values for all of the member data.  Every instance of this object
 * has the same member data.
 *
 * Temperatures = { 1.0, 2.0, 3.0 }
 * Densities    = { 0.1, 0.2 }
 */
\brief Constructor for DummyGrayOpacity object.
The constructor assigns fixed values for all of the member data.  Every instance of this object
has the same member data.


\ brief Constructor for DummyGrayOpacity object . The constructor assigns fixed values for all of the member data . Every instance of this object has the same member data .
DummyGrayOpacity::DummyGrayOpacity(rtt_cdi::Reaction reaction, rtt_cdi::Model model)
    : dataFilename("none"), dataDescriptor("DummyGrayOpacity"), energyPolicyDescriptor("Gray"),
      temperatureGrid(), densityGrid(), reaction_type(reaction), model_type(model) {
  temperatureGrid.resize(numTemperatures);
  densityGrid.resize(numDensities);
  for (size_t i = 0; i < numTemperatures; ++i)
    temperatureGrid[i] = static_cast<double>(i + 1);
  for (size_t i = 0; i < numDensities; ++i)
    densityGrid[i] = 0.1 * static_cast<double>(i + 1);
}
DummyGrayOpacity :: DummyGrayOpacity ( rtt_cdi :: Reaction reaction , rtt_cdi :: Model model ) : dataFilename ( " " ) , dataDescriptor ( " " ) , energyPolicyDescriptor ( " " ) , temperatureGrid ( ) , densityGrid ( ) , reaction_type ( reaction ) , model_type ( model ) { temperatureGrid . resize ( numTemperatures ) ; densityGrid . resize ( numDensities ) ; for ( size_t i = 0 ; i < numTemperatures ; ++ i ) temperatureGrid [ i ] = static_cast < double > ( i + 1 ) ; for ( size_t i = 0 ; i < numDensities ; ++ i ) densityGrid [ i ] = 0.1 * static_cast < double > ( i + 1 ) ; }
\brief Constructor for DummyGrayOpacity object.
\ brief Constructor for DummyGrayOpacity object .
// Set up the temperature and density grid.