#include <GIDI_settings.hh>
Definition at line 171 of file GIDI_settings.hh.
◆ GIDI_settings_processedFlux() [1/2]
GIDI_settings_processedFlux::GIDI_settings_processedFlux |
( |
GIDI_settings_flux const & |
flux, |
|
|
GIDI::ptwXPoints * |
groupX |
|
) |
| |
◆ GIDI_settings_processedFlux() [2/2]
Definition at line 156 of file GIDI_settings_particle.cc.
156 : mFlux( flux.mFlux ) {
157
161
162 for(
int order = 0; order < (int) mFlux.
size( ); ++order ) {
163 if( ( fluxXY =
ptwXY_clone( flux.mFluxXY[order], &status_nf ) ) == NULL )
goto err;
164 mFluxXY.push_back( fluxXY );
165 if( ( fluxX =
ptwX_clone( flux.mGroupedFlux[order], &status_nf ) ) == NULL )
goto err;
166 mGroupedFlux.push_back( fluxX );
167 }
168 return;
169
170err:
171 for( std::vector<ptwXYPoints *>::iterator iter = mFluxXY.begin( ); iter != mFluxXY.end( ); ++iter )
ptwXY_free( *iter );
172 for( std::vector<ptwXPoints *>::iterator iter = mGroupedFlux.begin( ); iter != mGroupedFlux.end( ); ++iter )
ptwX_free( *iter );
173 throw 1;
174}
enum nfu_status_e nfu_status
ptwXYPoints * ptwXY_free(ptwXYPoints *ptwXY)
ptwXYPoints * ptwXY_clone(ptwXYPoints *ptwXY, nfu_status *status)
ptwXPoints * ptwX_clone(ptwXPoints *ptwX, nfu_status *status)
ptwXPoints * ptwX_free(ptwXPoints *ptwX)
◆ ~GIDI_settings_processedFlux()
GIDI_settings_processedFlux::~GIDI_settings_processedFlux |
( |
| ) |
|
Definition at line 205 of file GIDI_settings_particle.cc.
205 {
206
207 for( std::vector<ptwXYPoints *>::iterator iter = mFluxXY.begin( ); iter != mFluxXY.end( ); ++iter )
ptwXY_free( *iter );
208 for( std::vector<ptwXPoints *>::iterator iter = mGroupedFlux.begin( ); iter != mGroupedFlux.end( ); ++iter )
ptwX_free( *iter );
209}
◆ getTemperature()
double GIDI_settings_processedFlux::getTemperature |
( |
| ) |
const |
|
inline |
◆ groupFunction()
ptwXPoints * GIDI_settings_processedFlux::groupFunction |
( |
GIDI::statusMessageReporting * |
smr, |
|
|
GIDI::ptwXPoints * |
groupX, |
|
|
GIDI::ptwXYPoints * |
ptwXY1, |
|
|
int |
order |
|
) |
| const |
Definition at line 213 of file GIDI_settings_particle.cc.
213 {
214
218
219 if( groupX == NULL ) return( NULL );
220 if( order < 0 ) order = 0;
221 if( order >= (int) mFluxXY.size( ) ) order = (int) mFluxXY.size( ) - 1;
222
224
225
228
229 return( groupedX );
230}
ptwXYPoints * ptwXY_xSlice(ptwXYPoints *ptwXY, double xMin, double xMax, int64_t secondarySize, int fill, nfu_status *status)
@ ptwXY_group_normType_norm
double ptwXY_getXMin(ptwXYPoints *ptwXY)
ptwXPoints * ptwXY_groupTwoFunctions(ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, ptwXPoints *groupBoundaries, ptwXY_group_normType normType, ptwXPoints *ptwX_norm, nfu_status *status)
double ptwXY_getXMax(ptwXYPoints *ptwXY)
Referenced by GIDI_settings_particle::groupFunction().
◆ operator=()
Definition at line 178 of file GIDI_settings_particle.cc.
178 {
179 if ( this != &flux ) {
180
181 for( std::vector<ptwXYPoints *>::iterator iter = mFluxXY.begin( ); iter != mFluxXY.end( ); ++iter )
ptwXY_free( *iter );
182 for( std::vector<ptwXPoints *>::iterator iter = mGroupedFlux.begin( ); iter != mGroupedFlux.end( ); ++iter )
ptwX_free( *iter );
183
184 mFlux = flux.mFlux;
188 for(
int order = 0; order < (int) mFlux.
size( ); ++order ) {
189 if( ( fluxXY =
ptwXY_clone( flux.mFluxXY[order], &status_nf ) ) == NULL )
goto err;
190 mFluxXY.push_back( fluxXY );
191 if( ( fluxX =
ptwX_clone( flux.mGroupedFlux[order], &status_nf ) ) == NULL )
goto err;
192 mGroupedFlux.push_back( fluxX );
193 }
194 }
195 return *this;
196
197err:
198 for( std::vector<ptwXYPoints *>::iterator iter = mFluxXY.begin( ); iter != mFluxXY.end( ); ++iter )
ptwXY_free( *iter );
199 for( std::vector<ptwXPoints *>::iterator iter = mGroupedFlux.begin( ); iter != mGroupedFlux.end( ); ++iter )
ptwX_free( *iter );
200 throw 1;
201}
The documentation for this class was generated from the following files: