Skip to content
Snippets Groups Projects
Commit b0aa9e57 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 6fbf95bc
No related branches found
No related tags found
No related merge requests found
// $Id: GModelIO.cpp,v 1.29 2006-08-24 16:55:28 geuzaine Exp $
// $Id: GModelIO.cpp,v 1.30 2006-08-24 16:56:20 geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
......@@ -549,7 +549,7 @@ static void writeElementsMSH(FILE *fp, const std::vector<T*> &ele, int saveAll,
int GModel::writeMSH(const std::string &name, double version, bool binary,
bool saveAll, double scalingFactor)
{
FILE *fp = fopen(name.c_str(), "w");
FILE *fp = fopen(name.c_str(), binary ? "wb" : "w");
if(!fp){
Msg(GERROR, "Unable to open file '%s'", name.c_str());
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment