#include <string.h>
#include "PoPs.h"
#include "PoPs_private.h"
#include "PoPs_data.h"
Go to the source code of this file.
static double PoPs_getBDFLS_mass |
( |
char const * |
name, |
|
|
PoP * |
pop, |
|
|
double |
mass |
|
) |
| |
|
static |
Definition at line 100 of file PoPs_data.cc.
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;
Definition at line 61 of file PoPs_data.cc.
65 if( ( pop =
PoP_new( smr ) ) != NULL ) {
PoP * PoP_new(statusMessageReporting *smr)
int PoPs_particleLoadInfo(statusMessageReporting *smr, const char *name, PoP *pop)
Definition at line 73 of file PoPs_data.cc.
78 for( i = 0; i <
n; i++ ) {
#define smr_allocateCopyString2(smr, s, forItem)
#define smr_setReportError2(smr, libraryID, code, fmt,...)
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)
Definition at line 36 of file PoPs_data.cc.
42 for( i1 = 0; i1 < n1; ++i1 ) {
46 sprintf( ZAName,
"%d%.3d", pop->
Z, pop->
A );
52 if(
smr_isOk( smr ) == 0 )
return( 1 );
int lPoPs_addParticleIfNeeded(statusMessageReporting *smr, char const *name, char const *special)
PoP * PoPs_addParticleIfNeeded(statusMessageReporting *smr, PoP *pop)
int smr_isOk(statusMessageReporting *smr)
static struct PoPDatas PoPDatas[]
PoP * PoPs_particleCreateLoadInfo(statusMessageReporting *smr, const char *name)
int PoPs_setBDFLS_File |
( |
char const * |
name | ) |
|
Definition at line 121 of file PoPs_data.cc.
131 if( ( p = cbdflsOpen(
name, &Error ) ) == NULL )
return( 1 );