Changeset - 1bbab6e592e6
[Not reviewed]
default
0 1 0
Roeland Merks - 15 years ago 2010-11-25 17:34:21
roeland.merks@cwi.nl
Reduced XML write compression mode to 0 (no compression), because Windows seems not to be able to handle it.


user: Roeland Merks <roeland.merks@cwi.nl>
branch 'default'
changed src/xmlwrite.cpp
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/xmlwrite.cpp
Show inline comments
 
@@ -811,49 +811,50 @@ void Mesh::XMLSave(const char *docname, 
 

	
 
  for (list<Wall *>::const_iterator i=walls.begin(); i!=walls.end(); i++) {
 
    (*i)->XMLAdd(xmlwalls) ;
 
  }
 

	
 

	
 
  xmlNodePtr xmlnodesets = xmlNewChild(root_node, NULL, BAD_CAST "nodesets",NULL);
 
  { 
 
    ostringstream text;
 
    text << node_sets.size();
 
    xmlNewProp(xmlnodesets, BAD_CAST "n", BAD_CAST text.str().c_str());
 
  }
 

	
 
  for_each( node_sets.begin(), node_sets.end(), bind2nd ( mem_fun( &NodeSet::XMLAdd ), xmlnodesets ) );
 

	
 
  // Add option tree for interactive application
 
  if (options) {
 
    xmlAddChild(root_node, options);
 
  }
 

	
 

	
 
  /* 
 
   * Dumping document to stdio or file
 
   */
 
  xmlSetDocCompressMode(doc,9);
 
  // Transparent compression seems not to work on Windows. So write uncompressed XML to ensure compatibility of LeafML files.
 
  xmlSetDocCompressMode(doc,0);
 
  xmlSaveFormatFileEnc(docname, doc, "UTF-8", 1);
 

	
 
  /*free the document */
 
  xmlFreeDoc(doc);
 

	
 
  /*
 
   *Free the global variables that may
 
   *have been allocated by the parser.
 
   */
 
  xmlCleanupParser();
 

	
 
  /*
 
   * this is to debug memory for regression tests
 
   */
 
}
 

	
 

	
 

	
 
void Mesh::XMLReadSimtime(const xmlNode *a_node)
 
{
 

	
 
  xmlNode *root_node;
 
  root_node = (xmlNode *)a_node;
 
  xmlChar *strsimtime = xmlGetProp(root_node, BAD_CAST "simtime");
0 comments (0 inline, 0 general)