From b0aa9e57b33f930f871fdff52bf24e0601a15806 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 24 Aug 2006 16:56:20 +0000 Subject: [PATCH] *** empty log message *** --- Geo/GModelIO.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geo/GModelIO.cpp b/Geo/GModelIO.cpp index a770be0b50..6bb0cf33c5 100644 --- a/Geo/GModelIO.cpp +++ b/Geo/GModelIO.cpp @@ -1,4 +1,4 @@ -// $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; -- GitLab