55 vector<double> tmpVector;
60 fprintf(
ioQQQ,
" PROBLEM An error occurred reading file %s.\n Sorry.\n", chLabel.c_str() );
64 for( vector<double>::iterator it = tmpVector.begin(); it != tmpVector.end(); ++it )
70 fprintf(
ioQQQ,
"PROBLEM there must be at least two grid steps but only one was found.\n");
94 fprintf(
ioQQQ,
" The increment (third parameter) should not be zero.\n" );
101 fprintf(
ioQQQ,
" This command has changed since the definition given in Porter et al. 2006, PASP, 118, 920.\n" );
102 fprintf(
ioQQQ,
" The grid command now requires three parameters: lower limit, upper limit, and increment.\n" );
103 fprintf(
ioQQQ,
" The keywords RANGE and STEPS are no longer necessary.\n" );
118 fprintf(
ioQQQ,
"The increment (third parameter) has the wrong sign. \
119 It doesn't take you from the initial to the final grid value (first and second parameter, resp.).\n" );
133 int eps =
max(
int(abs(feps)),3);
143 fprintf(
ioQQQ,
" There must be at least two grid points in each dimension.\n" );
160 fprintf(
ioQQQ,
" Usage: grid <p1> <p2> <p3> cycle [ <n> ] with n >= 2.\n" );
161 fprintf(
ioQQQ,
" or: grid list \"filename\" cycle [ <n> ] with n >= 2.\n" );
180 fprintf(
ioQQQ,
" Invalid number of CPUs: %ld\n", dum );
181 fprintf(
ioQQQ,
" Usage: grid <p1> <p2> <p3> ncpus [ <n> ] with n >= 1.\n" );
182 fprintf(
ioQQQ,
" or: grid list \"filename\" ncpus [ <n> ] with n >= 1.\n" );
196 fprintf(
ioQQQ,
"The current implementation of the grid command works with log parameter values even when you specify LINEAR.\n");
197 fprintf(
ioQQQ,
"A non-positive value was entered. The grid command cannot deal with this.\n");
bool nMatch(const char *chKey) const
bool lgKeepMainOutputSeparate
int GetQuote(string &chLabel)
realnum varang[LIMPAR][2]
void ParseGrid(Parser &p)
NORETURN void StringError() const
bool fp_equal(sys_float x, sys_float y, int n=3)
long numParamValues[LIMPAR]
sys_float safe_div(sys_float x, sys_float y, sys_float res_0by0)
vector< realnum > paramValuesFromList[LIMPAR]
bool lgLinearIncrements[LIMPAR]
bool lgNegativeIncrements
#define DEBUG_ENTRY(funcname)
realnum paramIncrements[LIMPAR]
int fprintf(const Output &stream, const char *format,...)
realnum paramLimits[LIMPAR][2]