Skip to content

Commit

Permalink
Enable MED class init
Browse files Browse the repository at this point in the history
  • Loading branch information
vejmarie authored and wwmayer committed Jul 14, 2016
1 parent e5c5336 commit c64d575
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/3rdParty/salomesmesh/src/SMESH/MED_Factory.cpp
Expand Up @@ -128,7 +128,7 @@ namespace MED
EVersion aVersion = GetVersionId(theFileName,theDoPreCheckInSeparateProcess);
switch(aVersion){
case eV2_2:
// aWrapper.reset(new MED::V2_2::TVWrapper(theFileName));
aWrapper.reset(new MED::V2_2::TVWrapper(theFileName));
break;
case eV2_1:
EXCEPTION(std::runtime_error,"Cannot open file '"<<theFileName<<"'. Med version 2.1 is not supported any more.");
Expand All @@ -150,14 +150,14 @@ namespace MED
PWrapper aWrapper;
switch(theId){
case eV2_2:
// aWrapper.reset(new MED::V2_2::TVWrapper(theFileName));
aWrapper.reset(new MED::V2_2::TVWrapper(theFileName));
break;
case eV2_1:
EXCEPTION(std::runtime_error,"Cannot open file '"<<theFileName<<"'. Med version 2.1 is not supported any more.");
//aWrapper.reset(new MED::V2_1::TVWrapper(theFileName));
break;
//default:
// aWrapper.reset(new MED::V2_2::TVWrapper(theFileName));
default:
aWrapper.reset(new MED::V2_2::TVWrapper(theFileName));
}
return aWrapper;
}
Expand Down

0 comments on commit c64d575

Please sign in to comment.