Commit eaf39d12 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Merge branch 'fix/FieldConvert-interppoints' into 'master'

Fix/field convert interppoints

See merge request !387
parents 4de0b3c6 cc181c86
......@@ -302,7 +302,7 @@ The format of the file \inltt{file2.pts} is of the same form as for the
\begin{lstlisting}[style=XMLStyle]
<?xml version="1.0" encoding="utf-8" ?>
<NEKTAR>
<POINTS DIM="2">
<POINTS DIM="2" FIELDS="">
0.0 0.0
0.5 0.0
1.0 0.0
......
......@@ -93,10 +93,13 @@ void InputPts::Process(po::variables_map &vm)
int nfields;
std::string fields = points->Attribute("FIELDS");
bool valid = ParseUtils::GenerateOrderedStringVector(
fields.c_str(),m_f->m_fieldPts->m_fields);
ASSERTL0(valid,"Unable to process list of field variable in "
" FIELDS attribute: "+ fields);
if(!fields.empty())
{
bool valid = ParseUtils::GenerateOrderedStringVector(
fields.c_str(),m_f->m_fieldPts->m_fields);
ASSERTL0(valid,"Unable to process list of field variable in "
" FIELDS attribute: "+ fields);
}
nfields = m_f->m_fieldPts->m_nFields = m_f->m_fieldPts->m_fields.size();
......
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