Commit 24a06b07 authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Mucked up previous modification and this one now works

parent 2a5d34be
......@@ -35,16 +35,16 @@ int main(int argc, char *argv[])
exit(1);
}
TiXmlElement *nektar = docInput.FirstChildElement("NEKTAR");
TiXmlElement *elements = nektar->FirstChildElement("ELEMENTS");
// load up root processor's meta data
if(n == 0)
{
TiXmlElement *metadata = nektar->FirstChildElement("FIELDMETADATA");
master->LinkEndChild(new TiXmlElement(*master));
master->LinkEndChild(new TiXmlElement(*metadata));
}
// load the elements from seperate files.
TiXmlElement *elements = nektar->FirstChildElement("ELEMENTS");
while (elements)
{
master->LinkEndChild(new TiXmlElement(*elements));
......
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