Commit 2b281358 authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix number of variables in createexp

parent 4b78008b
...@@ -191,13 +191,12 @@ void ProcessCreateExp::Process(po::variables_map &vm) ...@@ -191,13 +191,12 @@ void ProcessCreateExp::Process(po::variables_map &vm)
m_f->m_session->LoadParameter("Strip_Z", nstrips, 1); m_f->m_session->LoadParameter("Strip_Z", nstrips, 1);
vector<string> vars; vector<string> vars = m_f->m_session->GetVariables();
if (vm.count("useSessionVariables")) if (vm.count("useSessionVariables"))
{ {
m_f->m_variables = m_f->m_session->GetVariables(); m_f->m_variables = vars;
} }
nfields = m_f->m_variables.size(); nfields = m_f->m_variables.size();
vars = m_f->m_variables;
m_f->m_exp.resize(nfields * nstrips); m_f->m_exp.resize(nfields * nstrips);
......
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