11 #if defined __cplusplus
33 if( size < 10 ) size = 10;
43 if( pops == NULL )
return( NULL );
55 if( pops == NULL )
return( 0 );
56 for( pop = pops->
first; pop != NULL; pop = next ) {
68 double level_MeV,
MCGIDI_POP *parent,
int globalParticle ) {
78 if( sorted == NULL )
return( NULL );
85 if( ( pop =
MCGIDI_POP_new( smr, name, mass_MeV, level_MeV, parent ) ) == NULL )
return( NULL );
88 if( pops->
first == NULL ) {
96 if( globalParticle ) {
108 if(
max == 0 )
return( -1 );
109 while( (
max -
min ) > 1 ) {
111 iCmp = strcmp( name, pops->
sorted[mid]->
name );
112 if( iCmp == 0 )
return( mid );
120 if( strcmp( name, pops->
sorted[0]->
name ) == 0 )
return( 0 );
122 if( max < pops->numberOfPOPs ) {
126 if( strcmp( name, pops->
sorted[0]->
name ) < 0 )
return( -1 );
137 if( index < 0 )
return( NULL );
138 return( pops->
sorted[index] );
147 fprintf( f,
"POPs Information: n = %d\n", pops->
numberOfPOPs );
170 if( pop == NULL )
return( NULL );
193 if( pop == NULL )
return( NULL );
203 if( pop == NULL )
return( NULL );
217 #if defined __cplusplus