Salome HOME
Restore support of med-2.1 in MEDWrapper V6_3_0a1
authoreap <eap@opencascade.com>
Fri, 15 Apr 2011 09:31:45 +0000 (09:31 +0000)
committereap <eap@opencascade.com>
Fri, 15 Apr 2011 09:31:45 +0000 (09:31 +0000)
src/DriverMED/DriverMED_Family.cxx
src/DriverMED/Makefile.am
src/SMESHClient/Makefile.am

index f8e91f9561af5247e278f5a757e013c4ff97115b..0f0f5709f16081b703d189d197962b372de27705 100644 (file)
@@ -329,9 +329,9 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper,
   string aValue = aStr.str();
   // PAL19785,0019867 - med forbids whitespace to be the last char in the name
   int maxSize;
-//   if ( theWrapper->GetVersion() == MED::eV2_1 )
-//     maxSize = MED::GetNOMLength<MED::eV2_1>();
-//   else
+  if ( theWrapper->GetVersion() == MED::eV2_1 )
+    maxSize = MED::GetNOMLength<MED::eV2_1>();
+  else
     maxSize = MED::GetNOMLength<MED::eV2_2>();
   int lastCharPos = min( maxSize, (int) aValue.size() ) - 1;
   while ( isspace( aValue[ lastCharPos ] ))
index 97c53f576c193dd1672a554b4d525dbf2dd55ef0..42237c26e4b1264e54a33bd91f3ef39bc4332ee5 100644 (file)
@@ -70,7 +70,7 @@ libMeshDriverMED_la_CPPFLAGS = \
 libMeshDriverMED_la_LDFLAGS  = \
        $(BOOST_LIBS) \
        ../Driver/libMeshDriver.la \
-       $(MED_LDFLAGS) -lMEDWrapper -lMEDWrapperBase -lMEDWrapper_V2_2
+       $(MED_LDFLAGS) -lMEDWrapper -lMEDWrapperBase -lMEDWrapper_V2_2 -lMEDWrapper_V2_1
 
 
 MED_Test_CPPFLAGS = \
@@ -88,5 +88,6 @@ MED_Test_LDADD = \
        $(MED_LDFLAGS) \
        -lMEDWrapper \
        -lMEDWrapperBase \
-       -lMEDWrapper_V2_2
+       -lMEDWrapper_V2_2 \
+       -lMEDWrapper_V2_1 
 
index ecca968f53736937cde07f1335b72598d8112c83..01590a5be38c1c118ff517a08182ae9c9d7b44ce 100644 (file)
@@ -69,7 +69,7 @@ libSMESHClient_la_LDFLAGS  = \
        $(KERNEL_LDFLAGS) -lSalomeLifeCycleCORBA -lSalomeNS -lOpUtil -lSALOMEBasics \
        -lSalomeIDLKernel -lSALOMELocalTrace \
        $(GEOM_LDFLAGS) -lNMTDS -lSalomeIDLGEOM \
-       $(MED_LDFLAGS) -lMEDWrapper_V2_2 -lSalomeIDLMED -lMEDWrapper \
+       $(MED_LDFLAGS) -lMEDWrapper_V2_2 -lMEDWrapper_V2_1 -lSalomeIDLMED -lMEDWrapper \
        $(CAS_KERNEL)
 
 SMESHClientBin_CPPFLAGS = \