]> SALOME platform Git repositories - plugins/ghs3dprlplugin.git/commitdiff
Salome HOME
Improve new MG license mechanism to be binary compatible 2.14/2.15 cbr/new_mg_license_215_v2 V9_11_0a1 V9_11_0a2 V9_11_0b1
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 19 Apr 2023 12:40:13 +0000 (14:40 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 19 Apr 2023 12:40:13 +0000 (14:40 +0200)
src/GHS3DPRLPlugin/CMakeLists.txt
src/GHS3DPRLPlugin/MG_TetraHPC_API.cxx

index 31c42ba7f0076366c74cdfd5384e7d4ebef04840..b9bf88afab45b68a332198570d2764b4f0315822 100644 (file)
@@ -47,7 +47,7 @@ SET(_link_LIBRARIES
   TKGeomBase
   TKGeomAlgo
   TKCDF
-  ${MESHGEMS_TETRA_HPC_LIBRARY}
+  ${MESHGEMS_CVM_LIBRARY}
   ${SMESH_SMESHimpl}
   ${SMESH_SMESHEngine}
   ${SMESH_SMESHDS}
index cb348a508a5e565a6b79720c7e2634874c85c85a..beb5b95b9955a6ee00dc86e17ca0ddb9a2fd9ea7 100644 (file)
@@ -589,24 +589,13 @@ bool MG_TetraHPC_API::LibData::Compute( const std::string& outFile )
   // MG license
   std::string errorTxt;
   status_t ret;
-#if MESHGEMS_VERSION_HEX > MESHGEMS_215
-  // need to unlock Tetra license only once
-  std::string SPATIAL_LICENSE = SMESHUtils_MGLicenseKeyGen::GetKey(errorTxt);
-  ret = meshgems_tetra_hpc_unlock_product(SPATIAL_LICENSE.c_str());
-  if STATUS_IS_ERROR( ret )
-    {
-    AddError( SMESH_Comment( "Problem with SPATIAL_LICENSE to unlock Tetra_HPC: ") << errorTxt );
-    return false;
-    }
-  else
-    MESSAGE("SPATIAL_LICENSE unlock Tetra_HPC: " << ret);
-#else
-  if ( !SMESHUtils_MGLicenseKeyGen::SignMesh( _tria_mesh, errorTxt ))
+
+  // use cvm for tetra_hpc
+  if ( !SMESHUtils_MGLicenseKeyGen::SignMesh( _tria_mesh, "cvm", errorTxt ))
   {
     AddError( SMESH_Comment( "Problem with library SalomeMeshGemsKeyGenerator: ") << errorTxt );
     return false;
   }
-#endif
 
   // Set surface mesh
   ret = tetra_hpc_set_input_mesh( _session, _tria_mesh );