15 #if defined __cplusplus
23 #if defined __cplusplus
31 #if defined __cplusplus
42 for( i1 = 0; i1 < n1; ++i1 ) {
46 sprintf( ZAName,
"%d%.3d", pop->
Z, pop->
A );
52 if(
smr_isOk( smr ) == 0 )
return( 1 );
65 if( ( pop =
PoP_new( smr ) ) != NULL ) {
78 for( i = 0; i <
n; i++ ) {
79 if( strcmp(
PoPDatas[i].name, name ) == 0 ) {
104 int ZA = 1000 * pop->Z + pop->A;
109 mass_ = cbdflsGetMass( (cbdfls_file *)
BDFLS_Data, ZA ); }
111 if( pop->name[0] ==
'e' ) mass_ = cbdflsGetMass( (cbdfls_file *)
BDFLS_Data, 8 );
113 if( mass_ < 0 ) mass_ = mass;
131 if( ( p = cbdflsOpen( name, &Error ) ) == NULL )
return( 1 );
140 #if defined __cplusplus
PoP * PoP_new(statusMessageReporting *smr)
#define smr_allocateCopyString2(smr, s, forItem)
int PoPs_particleReadDatabase(statusMessageReporting *smr, char const *name)
int lPoPs_addParticleIfNeeded(statusMessageReporting *smr, char const *name, char const *special)
#define smr_setReportError2(smr, libraryID, code, fmt,...)
PoP * PoPs_addParticleIfNeeded(statusMessageReporting *smr, PoP *pop)
int PoPs_particleLoadInfo(statusMessageReporting *smr, const char *name, PoP *pop)
int smr_isOk(statusMessageReporting *smr)
static struct PoPDatas PoPDatas[]
void * smr_freeMemory(void **p)
static double PoPs_getBDFLS_mass(char const *name, PoP *pop, double mass)
char const * unitsDB_addUnitIfNeeded(statusMessageReporting *smr, char const *unit)
PoP * PoPs_particleCreateLoadInfo(statusMessageReporting *smr, const char *name)
int PoPs_setBDFLS_File(char const *name)