mirror of https://github.com/QMCPACK/qmcpack.git
enable reads of "large" (>10MB) gaussian wfs. restricts us to libxml 2.7+
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6423 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
parent
c15e411188
commit
e2c5763d1f
|
@ -189,7 +189,13 @@ bool Libxml2Document::parse(const std::string& xmlfile)
|
|||
{
|
||||
if(m_doc != NULL)
|
||||
xmlFreeDoc(m_doc);
|
||||
m_doc = xmlParseFile(xmlfile.c_str());
|
||||
|
||||
// read xml document w/o memory limits
|
||||
// note that XML_PARSE_HUGE is part of an enum in libxml2
|
||||
// it is only available in libxml 2.7+
|
||||
m_doc = xmlReadFile(xmlfile.c_str(),NULL,XML_PARSE_HUGE);
|
||||
//m_doc = xmlParseFile(xmlfile.c_str());
|
||||
|
||||
if (m_doc == NULL)
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue