src/compton_interface/CSK_Interface.cc
CSK_Interface::CSK_Interface(const std::string &filehandle, const bool llnl_style) {

  // Make a compton_interface file object to read the multigroup data
  compton_file Cfile(false);
  if (llnl_style) {
    // initialize the etemp/frequency interpolated with the library data:
    llnli = std::make_unique<llnl_interp>(Cfile.read_llnl_data(filehandle));
    // Make sure the SP exists...
    Ensure(llnli);
  } else {
    // initialize the electron temperature interpolator with the mg compton data
    ei = std::make_unique<etemp_interp>(Cfile.read_mg_csk_data(filehandle));
    // Make sure the SP exists...
    Ensure(ei);
  }
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Constructor for an existing multigroup libfile.
 *
 * This calls CSK_generator methods to read the data file and store everything in a CSK_Interface
 * data object, a smart pointer to which is then passed to (and held by) the CSK_generator
 * etemp_interp class.
 *
 * \param[in] filehandle The name of the Compton multigroup file
 * \param[in] llnl_style Defaults to false. True indicates that data uses LLNL format.
 */
\brief Constructor for an existing multigroup libfile.
This calls CSK_generator methods to read the data file and store everything in a CSK_Interface
data object, a smart pointer to which is then passed to (and held by) the CSK_generator
etemp_interp class.

\param[in] filehandle The name of the Compton multigroup file
\param[in] llnl_style Defaults to false. True indicates that data uses LLNL format.
\ brief Constructor for an existing multigroup libfile . This calls CSK_generator methods to read the data file and store everything in a CSK_Interface data object a smart pointer to which is then passed to ( and held by ) the CSK_generator etemp_interp class . \ param [ in ] filehandle The name of the Compton multigroup file \ param [ in ] llnl_style Defaults to false . True indicates that data uses LLNL format .
CSK_Interface::CSK_Interface(const std::string &filehandle, const bool llnl_style) {
  compton_file Cfile(false);
  if (llnl_style) {
    llnli = std::make_unique<llnl_interp>(Cfile.read_llnl_data(filehandle));
    Ensure(llnli);
  } else {
    ei = std::make_unique<etemp_interp>(Cfile.read_mg_csk_data(filehandle));
    Ensure(ei);
  }
}
CSK_Interface :: CSK_Interface ( const std :: string & filehandle , const bool llnl_style ) { compton_file Cfile ( false ) ; if ( llnl_style ) { llnli = std :: make_unique < llnl_interp > ( Cfile . read_llnl_data ( filehandle ) ) ; Ensure ( llnli ) ; } else { ei = std :: make_unique < etemp_interp > ( Cfile . read_mg_csk_data ( filehandle ) ) ; Ensure ( ei ) ; } }
\brief Constructor for an existing multigroup libfile.
\ brief Constructor for an existing multigroup libfile .
// Make a compton_interface file object to read the multigroup data // initialize the etemp/frequency interpolated with the library data: // Make sure the SP exists... // initialize the electron temperature interpolator with the mg compton data // Make sure the SP exists...