Commit 45a76062 authored by Dave Moxey's avatar Dave Moxey
Browse files

Merge branch 'fix/gz-filename' of /opt/gitlab/repositories/nektar

parents 228f2d26 ab0575d3
......@@ -168,6 +168,12 @@ namespace Nektar
m_filename = vFilenames[0];
m_sessionName = m_filename.substr(0, m_filename.find_last_of('.'));
if (m_filename.size() > 3 &&
m_filename.substr(m_filename.size() - 3, 3) == ".gz")
{
m_sessionName =
m_sessionName.substr(0, m_sessionName.find_last_of('.'));
}
m_xmlDoc = MergeDoc(vFilenames);
// Create communicator
......@@ -191,6 +197,12 @@ namespace Nektar
m_filename = pFilenames[0];
m_sessionName = m_filename.substr(0, m_filename.find_last_of('.'));
if (m_filename.size() > 3 &&
m_filename.substr(m_filename.size() - 3, 3) == ".gz")
{
m_sessionName =
m_sessionName.substr(0, m_sessionName.find_last_of('.'));
}
m_xmlDoc = MergeDoc(pFilenames);
// Create communicator
......
Supports Markdown
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