#include <GIDI_settings.hh>
Definition at line 184 of file GIDI_settings.hh.
GIDI_settings_particle::GIDI_settings_particle |
( |
int |
PoPId, |
|
|
bool |
transporting, |
|
|
int |
energyMode |
|
) |
| |
Definition at line 23 of file GIDI_settings_particle.cc.
25 initialize( particle.mPoPId, particle.mTransporting, particle.mEnergyMode );
27 for( std::vector<GIDI_settings_processedFlux>::const_iterator iter = particle.mProcessedFluxes.begin( ); iter != particle.mProcessedFluxes.end( ); ++iter ) {
28 mProcessedFluxes.push_back( *iter );
void setGroup(GIDI_settings_group const &group)
int initialize(int PoPId, bool transporting, int energyMode)
GIDI_settings_particle::~GIDI_settings_particle |
( |
| ) |
|
Definition at line 75 of file GIDI_settings_particle.cc.
77 double temperature = flux.getTemperature( );
78 std::vector<GIDI_settings_processedFlux>::iterator iter;
80 for( iter = mProcessedFluxes.begin( ); iter != mProcessedFluxes.end( ); ++iter ) {
81 if( temperature <= iter->getTemperature( ) )
break;
int GIDI_settings_particle::getEnergyMode |
( |
void |
| ) |
const |
|
inline |
int GIDI_settings_particle::getGroupIndexFromEnergy |
( |
double |
e_in, |
|
|
bool |
encloseOutOfRange |
|
) |
| const |
|
inline |
Definition at line 202 of file GIDI_settings.hh.
int getGroupIndexFromEnergy(double energy, bool encloseOutOfRange) const
int GIDI_settings_particle::getNumberOfGroups |
( |
void |
| ) |
const |
|
inline |
int GIDI_settings_particle::getPoPId |
( |
void |
| ) |
const |
|
inline |
bool GIDI_settings_particle::getTransporting |
( |
void |
| ) |
const |
|
inline |
Definition at line 118 of file GIDI_settings_particle.cc.
120 if( mGroupX == NULL )
return( NULL );
122 if( processedFlux == NULL )
return( NULL );
123 return( processedFlux->
groupFunction( smr, mGroupX, ptwXY1, order ) );
GIDI::ptwXPoints * groupFunction(GIDI::statusMessageReporting *smr, GIDI::ptwXPoints *groupX, GIDI::ptwXYPoints *ptwXY1, int order) const
GIDI_settings_processedFlux const * nearestFluxToTemperature(double temperature) const
int GIDI_settings_particle::initialize |
( |
int |
PoPId, |
|
|
bool |
transporting, |
|
|
int |
energyMode |
|
) |
| |
Definition at line 34 of file GIDI_settings_particle.cc.
37 mTransporting = transporting;
43 if( energyMode_ != energyMode )
throw 1;
44 mEnergyMode = energyMode;
void setGroup(GIDI_settings_group const &group)
#define GIDI_settings_projectileEnergyMode_grouped
#define GIDI_settings_projectileEnergyMode_continuousEnergy
bool GIDI_settings_particle::isEnergyMode_continuous |
( |
void |
| ) |
const |
|
inline |
Definition at line 212 of file GIDI_settings.hh.
#define GIDI_settings_projectileEnergyMode_continuousEnergy
bool GIDI_settings_particle::isEnergyMode_fixedGrid |
( |
void |
| ) |
const |
|
inline |
Definition at line 214 of file GIDI_settings.hh.
#define GIDI_settings_projectileEnergyMode_fixedGrid
bool GIDI_settings_particle::isEnergyMode_grouped |
( |
void |
| ) |
const |
|
inline |
Definition at line 213 of file GIDI_settings.hh.
#define GIDI_settings_projectileEnergyMode_grouped
Definition at line 90 of file GIDI_settings_particle.cc.
92 double priorTemperature, lastTemperature;
93 std::vector<GIDI_settings_processedFlux>::const_iterator iter;
95 if( mProcessedFluxes.size( ) == 0 )
return( NULL );
97 priorTemperature = mProcessedFluxes[0].getTemperature( );
99 lastTemperature = mProcessedFluxes[0].getTemperature( );
100 for( iter = mProcessedFluxes.begin( ); iter != mProcessedFluxes.end( ); ++iter ) {
101 lastTemperature = iter->getTemperature( );
102 if( lastTemperature > temperature )
break;
104 priorTemperature = iter->getTemperature( );
106 if( iter == mProcessedFluxes.end( ) ) {
111 if( std::fabs( lastTemperature - temperature ) > std::fabs( temperature - priorTemperature ) ) --iter;
Definition at line 53 of file GIDI_settings_particle.cc.
59 if( mGroupX != NULL )
ptwX_free( mGroupX );
61 if( mGroup.
size( ) > 0 ) {
ptwXPoints * ptwX_create(int64_t size, int64_t length, double const *xs, nfu_status *status)
ptwXPoints * ptwX_free(ptwXPoints *ptwX)
enum nfu_status_e nfu_status
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
double const * pointer(void) const
The documentation for this class was generated from the following files: