#include <GIDI_settings.hh>
This class stores the flux for one Legendre order (see class GIDI_settings_flux).
Definition at line 92 of file GIDI_settings.hh.
◆ GIDI_settings_flux_order() [1/4]
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.
15 {
16
17 if( order < 0 ) throw 1;
18 mOrder = order;
19}
◆ GIDI_settings_flux_order() [2/4]
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.
23 {
24
25 initialize( order, length, energies, fluxes );
26}
◆ GIDI_settings_flux_order() [3/4]
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.
30 {
31
32 int length = (int) energies.size( );
33
34 if( length != (int) fluxes.size( ) ) throw 1;
35 initialize( order, length, &(energies[0]), &(fluxes[0]) );
36}
◆ GIDI_settings_flux_order() [4/4]
- Parameters
-
fluxOrder | Legendre flux order to copy. |
Definition at line 40 of file GIDI_settings_flux.cc.
40 {
41
42 initialize( fluxOrder.mOrder, fluxOrder.size( ), &(fluxOrder.mEnergies[0]), &(fluxOrder.mFluxes[0]) );
43}
◆ ~GIDI_settings_flux_order()
GIDI_settings_flux_order::~GIDI_settings_flux_order |
( |
| ) |
|
◆ getEnergies()
double const * GIDI_settings_flux_order::getEnergies |
( |
void |
| ) |
const |
|
inline |
◆ getFluxes()
double const * GIDI_settings_flux_order::getFluxes |
( |
void |
| ) |
const |
|
inline |
◆ getOrder()
int GIDI_settings_flux_order::getOrder |
( |
void |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 59 of file GIDI_settings_flux.cc.
59 {
60 if ( this != &fluxOrder ) {
61 initialize( fluxOrder.mOrder, fluxOrder.
size(), &(fluxOrder.mEnergies[0]), &(fluxOrder.mFluxes[0]) );
62 }
63 return *this;
64}
◆ print()
void GIDI_settings_flux_order::print |
( |
int |
valuesPerLine = 10 | ) |
const |
Definition at line 74 of file GIDI_settings_flux.cc.
74 {
75
76 int nE = (int) mEnergies.size( );
77 bool printIndent = true;
78 char buffer[2 * 128];
79
80 std::cout << " ORDER: " << mOrder << std::endl;
81 for( int iE = 0; iE < nE; ++iE ) {
82 if( printIndent ) std::cout << " ";
83 printIndent = false;
84 snprintf( buffer, sizeof buffer, " %15.8e %15.8e", mEnergies[iE], mFluxes[iE] );
85 std::cout << buffer;
86 if( ( ( iE + 1 ) % valuesPerLine ) == 0 ) {
87 std::cout << std::endl;
88 printIndent = true;
89 }
90 }
91 if( nE % valuesPerLine ) std::cout << std::endl;
92}
◆ size()
int GIDI_settings_flux_order::size |
( |
void |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: