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 
int MCGIDI_POPs_findParticleIndex(MCGIDI_POPs *pops, char const *name)
 
#define smr_allocateCopyString2(smr, s, forItem)
 
void * MCGIDI_POPs_free(MCGIDI_POPs *pops)
 
void MCGIDI_POPs_writeSortedList(MCGIDI_POPs *pops, FILE *f)
 
MCGIDI_POP * MCGIDI_POPs_findParticle(MCGIDI_POPs *pops, char const *name)
 
MCGIDI_POP * MCGIDI_POPs_addParticleIfNeeded(statusMessageReporting *smr, MCGIDI_POPs *pops, char const *name, double mass_MeV, double level_MeV, MCGIDI_POP *parent, int globalParticle)
 
int lPoPs_addParticleIfNeeded(statusMessageReporting *smr, char const *name, char const *special)
 
MCGIDI_POP * MCGIDI_POP_release(MCGIDI_POP *pop)
 
void MCGIDI_POPs_printSortedList(MCGIDI_POPs *pops)
 
double MCGIDI_POP_getMass_MeV(MCGIDI_POP *pop)
 
double A(double temperature)
 
static constexpr double m
 
MCGIDI_GammaBranching * gammas
 
MCGIDI_POP * MCGIDI_POP_free(MCGIDI_POP *pop)
 
#define smr_malloc2(smr, size, zero, forItem)
 
int MCGIDI_miscNameToZAm(statusMessageReporting *smr, const char *name, int *Z, int *A, int *m, int *level)
 
int MCGIDI_POPs_release(MCGIDI_POPs *pops)
 
void * smr_freeMemory(void **p)
 
MCGIDI_POPs * MCGIDI_POPs_new(statusMessageReporting *smr, int size)
 
T max(const T t1, const T t2)
brief Return the largest of the two arguments 
 
T min(const T t1, const T t2)
brief Return the smallest of the two arguments 
 
MCGIDI_POP * MCGIDI_POP_new(statusMessageReporting *smr, char const *name, double mass_MeV, double level_MeV, MCGIDI_POP *parent)
 
int MCGIDI_POPs_initial(statusMessageReporting *smr, MCGIDI_POPs *pops, int size)