/*SetAbundances sets initial abundances after parameters are entered by reading input */ #include "cddefines.h" #include "prtelem.h" #include "physconst.h" #include "abuntabllg.h" #include "ionfracs.h" #include "solar.h" #include "scalem.h" #include "deplon.h" #include "dmetal.h" #include "he.h" #include "phycon.h" #include "called.h" #include "trace.h" #include "wind.h" #include "elmton.h" #include "elementnames.h" #include "radius.h" #include "fluct.h" #include "printe82.h" #include "tababun.h" #include "setabundances.h" void SetAbundances(void) { long int i, nelem; double fac; static int lgFirstCall=TRUE; static int lgElOnOff[LIMELM]; # ifdef DEBUG_FUN fputs( "<+>SetAbundances()\n", debug_fp ); # endif /* if this is the first call to this routine in this coreload, * save the state of the lgElmOn array, so that it is possible * to turn off elements in later models, but not turn on an * element that was initally turned off. This is necessary since * the Create... routines that create space for elements will * not be revisited in later models. You can turn off an initally * enabled element, but not turn a disabled one on. */ if( lgFirstCall ) { /* first call - save the inital state of the lgElmtOn vector */ for( i=0; iSetAbundances()\n", debug_fp ); # endif return; }