mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Verbose header print by default
This commit is contained in:
parent
35695ba57a
commit
756bc25008
@ -263,13 +263,13 @@ static inline int readHeader(std::string file,GridBase *grid, NerscField &field
|
|||||||
getline(fin,line); // read one line and insist is
|
getline(fin,line); // read one line and insist is
|
||||||
|
|
||||||
removeWhitespace(line);
|
removeWhitespace(line);
|
||||||
std::cout << "* " << line << std::endl;
|
std::cout << GridLogMessage << "* " << line << std::endl;
|
||||||
|
|
||||||
assert(line==std::string("BEGIN_HEADER"));
|
assert(line==std::string("BEGIN_HEADER"));
|
||||||
|
|
||||||
do {
|
do {
|
||||||
getline(fin,line); // read one line
|
getline(fin,line); // read one line
|
||||||
std::cout << "* "<<line<< std::endl;
|
std::cout << GridLogMessage << "* "<<line<< std::endl;
|
||||||
int eq = line.find("=");
|
int eq = line.find("=");
|
||||||
if(eq >0) {
|
if(eq >0) {
|
||||||
std::string key=line.substr(0,eq);
|
std::string key=line.substr(0,eq);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user