#include <GIDI_settings.hh>
This class stores the flux for one Legendre order (see class GIDI_settings_flux).
Definition at line 91 of file GIDI_settings.hh.
GIDI_settings_flux_order::GIDI_settings_flux_order |
( |
int |
order | ) |
|
- Parameters
-
order | The Legendre order for this flux data. |
Definition at line 15 of file GIDI_settings_flux.cc.
17 if( order < 0 )
throw 1;
GIDI_settings_flux_order::GIDI_settings_flux_order |
( |
int |
order, |
|
|
int |
length, |
|
|
double const * |
energies, |
|
|
double const * |
fluxes |
|
) |
| |
- Parameters
-
order | The Legendre order for this flux data. |
length | The number or values in energies and fluxes. |
energies | List of energies where flux is given. |
fluxes | List of flux value for each energies value. |
Definition at line 23 of file GIDI_settings_flux.cc.
25 initialize( order, length, energies, fluxes );
GIDI_settings_flux_order::GIDI_settings_flux_order |
( |
int |
order, |
|
|
std::vector< double > const & |
energies, |
|
|
std::vector< double > const & |
fluxes |
|
) |
| |
- Parameters
-
order | The Legendre order for this flux data. |
energies | List of energies where flux is given. |
fluxes | List of flux value for each energies value. |
Definition at line 30 of file GIDI_settings_flux.cc.
32 int length = (
int) energies.size( );
34 if( length != (
int) fluxes.size( ) )
throw 1;
35 initialize( order, length, &(energies[0]), &(fluxes[0]) );
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
- Parameters
-
fluxOrder | Legendre flux order to copy. |
Definition at line 40 of file GIDI_settings_flux.cc.
42 initialize( fluxOrder.mOrder, fluxOrder.size( ), &(fluxOrder.mEnergies[0]), &(fluxOrder.mFluxes[0]) );
GIDI_settings_flux_order::~GIDI_settings_flux_order |
( |
| ) |
|
double const* GIDI_settings_flux_order::getEnergies |
( |
void |
| ) |
const |
|
inline |
double const* GIDI_settings_flux_order::getFluxes |
( |
void |
| ) |
const |
|
inline |
int GIDI_settings_flux_order::getOrder |
( |
void |
| ) |
const |
|
inline |
void GIDI_settings_flux_order::print |
( |
int |
valuesPerLine = 10 | ) |
const |
Definition at line 65 of file GIDI_settings_flux.cc.
67 int nE = (
int) mEnergies.size( );
68 bool printIndent =
true;
71 std::cout <<
" ORDER: " << mOrder << std::endl;
72 for(
int iE = 0; iE <
nE; ++iE ) {
73 if( printIndent ) std::cout <<
" ";
75 sprintf( buffer,
" %15.8e %15.8e", mEnergies[iE], mFluxes[iE] );
77 if( ( ( iE + 1 ) % valuesPerLine ) == 0 ) {
78 std::cout << std::endl;
82 if( nE % valuesPerLine ) std::cout << std::endl;
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
int GIDI_settings_flux_order::size |
( |
void |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: