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

use MEDfileVersionOpen in MED >= 4, so that Mesh.MedFileMinorVersion can be...

use MEDfileVersionOpen in MED >= 4, so that Mesh.MedFileMinorVersion can be used to specify the minor file version
parent da47cece
No related branches found
No related tags found
No related merge requests found
......@@ -650,7 +650,7 @@ static void writeElementsMED(med_idt &fid, char *meshName,
int GModel::writeMED(const std::string &name, bool saveAll,
double scalingFactor)
{
#if(MED_MAJOR_NUM >= 3) && (MED_MINOR_NUM >= 3)
#if (MED_MAJOR_NUM >= 4) || ((MED_MAJOR_NUM >= 3) && (MED_MINOR_NUM >= 3))
// MEDfileVersionOpen actually appeared in MED 3.2.1
med_int major = MED_MAJOR_NUM, minor = MED_MINOR_NUM,
release = MED_RELEASE_NUM;
......
......@@ -961,7 +961,7 @@ bool PViewDataGModel::writeMED(const std::string &fileName)
std::string meshName(model->getName());
std::string fieldName(getName());
#if(MED_MAJOR_NUM >= 3) && (MED_MINOR_NUM >= 3)
#if (MED_MAJOR_NUM >= 4) || ((MED_MAJOR_NUM >= 3) && (MED_MINOR_NUM >= 3))
// MEDfileVersionOpen actually appeared in MED 3.2.1
med_int major = MED_MAJOR_NUM, minor = MED_MINOR_NUM,
release = MED_RELEASE_NUM;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment