Commit d1769ecb authored by Chris Cantwell's avatar Chris Cantwell

Fixed FldToVtk to support compressed XML files.

parent e01180a8
......@@ -56,6 +56,17 @@ int main(int argc, char *argv[])
{
fname = fname.substr(0,fdot);
}
else if (ending == ".gz")
{
fname = fname.substr(0,fdot);
fdot = fname.find_last_of('.');
ASSERTL0(fdot != std::string::npos,
"Error: expected file extension before .gz.");
ending = fname.substr(fdot);
ASSERTL0(ending == ".xml",
"Compressed non-xml files are not supported.");
continue;
}
else if (ending == ".xml")
{
continue;
......
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