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

med polish

parent 34efbc71
No related branches found
No related tags found
No related merge requests found
// $Id: Gmsh.cpp,v 1.3 2008-04-13 15:20:30 geuzaine Exp $
// $Id: Gmsh.cpp,v 1.4 2008-04-13 20:52:07 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -53,17 +53,20 @@ int GmshNewModel()
{
// Create a new model and add it to the model list, and make it the
// current model
return 0;
}
int GmshMerge(std::string fileName)
{
// Merge CAD or mesh data in the current model, or create
// post-processing data associated with the current model
return 0;
}
int GmshClear()
{
// Destroys all models and post-processing views
return 0;
}
int GmshFinalize()
......
// $Id: GModelIO_MED.cpp,v 1.27 2008-04-13 09:45:48 geuzaine Exp $
// $Id: GModelIO_MED.cpp,v 1.28 2008-04-13 20:52:07 geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
......@@ -150,6 +150,15 @@ int GModel::readMED(const std::string &name)
return 0;
}
med_int major, minor, release;
MEDversionDonner(&major, &minor, &release);
Msg(INFO, "Reading MED file using MED library V%d.%d.%d", major, minor, release);
MEDversionLire(fid, &major, &minor, &release);
if(major < 2 || (major == 2 && minor < 2)){
Msg(GERROR, "Cannot read MED file older than V2.2");
return 0;
}
med_int numMeshes = MEDnMaa(fid);
if(MEDfermer(fid) < 0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment