Commit 0cf0a72c authored by David Moxey's avatar David Moxey
Browse files

Address Chris' comments

parent 03d02d3d
......@@ -20,9 +20,9 @@ how to implement \nekpp using MPI). \footnote{Modules that do not have parallel
%
%
\section{Basic usage}
FieldConvert expects at least one input file (such as a session file and its
corresponding field file) and one output file. These are specified on the
command line as
FieldConvert expects at least one input specification (such as a session file
and its corresponding field file) and one output specification. These are
specified on the command line as
%
\begin{lstlisting}[style=BashInputStyle]
FieldConvert in1.xml in2.fld out.dat
......
......@@ -170,14 +170,15 @@ string InputModule::GuessFormat(string filename)
string check(&data[0], 64);
// Nek5000 format: first four characters are: #std
if (data[0] == '#' && data[1] == 's' && data[2] == 't' && data[3] == 'd')
if (check.compare(0, 4, "#std") == 0)
{
inFile.close();
return "fld5000";
}
// Semtex format: first line should contain the string "Session"
if (check.find("Session") != string::npos)
// Semtex format: first line should contain the string "Session" at
// character 27.
if (check.compare(27, 7, "Session") == 0)
{
inFile.close();
return "fldsem";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment