24 for(
int j=0; j < 3; ++j )
28 for(
int nelem=0; nelem <
LIMELM; ++nelem )
30 int limit =
max(3,nelem+2);
33 for(
int ion=0; ion < limit; ++ion )
81 for(
int d=0; d < 3; ++d )
84 for(
int nelem=0; nelem <
LIMELM; nelem++ )
86 int limit =
max(3,nelem+2);
90 for(
int ion=0; ion < limit; ion++ )
99 mean.
xIonMean[d][nelem][ion][0] += dc;
100 mean.
xIonMean[d][nelem][ion][1] += norm;
164 bool lgDensity )
const
169 int limit =
max( 3, nelem+2 );
182 for(
int ion=0; ion < limit; ion++ )
190 while( *n > 0 && mean.
xIonMean[0][nelem][*n-1][0] <= 0. )
197 for(
int ion=0; ion < *n; ion++ )
209 meanv = mean.
xIonMean[dim][nelem][ion][0];
210 normv = mean.
xIonMean[dim][nelem][ion][1];
212 arlog[ion] = ( meanv > 0. ) ? (
realnum)log10(
max(1e-30,meanv/normv)) : -30.f;
215 else if( chType ==
't' )
231 fprintf(
ioQQQ,
" MeanIon called with insane job: %c \n",chType);
multi_arr< double, 2 > TempH_21cmSpinMean
NORETURN void TotalInsanity(void)
double xIonDense[LIMELM][LIMELM+1]
const multi_geom< d, ALLOC > & clone() const
multi_arr< double, 2 > TempB_HarMean
multi_arr< double, 2 > TempEdenMean
multi_arr< double, 4 > xIonEdenMean
multi_arr< double, 4 > TempIonEdenMean
realnum gas_phase[LIMELM]
void MeanIon(char chType, long nelem, long dim, long *n, realnum arlog[], bool lgDensity) const
void reserve(size_type i1)
multi_arr< double, 4 > TempIonMean
#define DEBUG_ENTRY(funcname)
multi_arr< double, 2 > TempMean
int fprintf(const Output &stream, const char *format,...)
multi_arr< double, 4 > xIonMean
sys_float SDIV(sys_float x)
multi_arr< double, 2 > TempHarMean