-#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 ))