diff --git a/EgtGeomKernel.vcxproj b/EgtGeomKernel.vcxproj
index b8aaaef..c4b0587 100644
--- a/EgtGeomKernel.vcxproj
+++ b/EgtGeomKernel.vcxproj
@@ -30,7 +30,7 @@
true
Unicode
false
- v143
+ v145
DynamicLibrary
@@ -46,7 +46,7 @@
false
Unicode
false
- v143
+ v145
DynamicLibrary
diff --git a/VolZmap.cpp b/VolZmap.cpp
index 039a79f..14e4608 100644
--- a/VolZmap.cpp
+++ b/VolZmap.cpp
@@ -884,7 +884,7 @@ VolZmap::CheckMapConnection( void)
}
}
// Numero massimo di thread
- int nThreadMax = max( 1, int( thread::hardware_concurrency()) - 1) ;
+ int nThreadMax = max( 1, int( thread::hardware_concurrency())) ;
// Ciclo sui dexel lungo Z
for ( int tI = 0 ; tI < m_nNx[0] ; ++ tI) {
for ( int tJ = 0 ; tJ < m_nNy[0] ; ++ tJ) {
@@ -1572,7 +1572,7 @@ VolZmap::AddSurfTm( const ISurfTriMesh* pStm)
IntersParLinesSurfTm intPLSTM( frMapFrame, *pStm) ;
// numero massimo di thread
- int nThreadMax = max( 1, int( thread::hardware_concurrency()) - 1) ;
+ int nThreadMax = max( 1, int( thread::hardware_concurrency())) ;
vector> vRes ;
vRes.resize( nThreadMax) ;
// se dimensione griglia in X maggiore di dimensione Y
@@ -1660,7 +1660,7 @@ VolZmap::SubtractSurfTm( const ISurfTriMesh* pStm)
IntersParLinesSurfTm intPLSTM( frMapFrame, *pStm) ;
// numero massimo di thread
- int nThreadMax = max( 1, int( thread::hardware_concurrency()) - 1) ;
+ int nThreadMax = max( 1, int( thread::hardware_concurrency())) ;
vector> vRes ;
vRes.resize( nThreadMax) ;
// se dimensione griglia in X maggiore di dimensione Y
@@ -2267,7 +2267,7 @@ VolZmap::IsBox( void)
if ( m_nMapNum == 1)
return false ;
// Numero massimo di thread per il calcolo parallelo.
- int nThreadMax = max( 1, int( thread::hardware_concurrency()) - 1) ;
+ int nThreadMax = max( 1, int( thread::hardware_concurrency())) ;
// Disponibile un solo thread
if ( nThreadMax == 1) {
for ( int nMap = 0 ; nMap < m_nMapNum ; ++ nMap) {
diff --git a/VolZmapCreation.cpp b/VolZmapCreation.cpp
index f1aaad6..c3bc84e 100644
--- a/VolZmapCreation.cpp
+++ b/VolZmapCreation.cpp
@@ -994,7 +994,7 @@ VolZmap::CreateFromTriMesh( const ISurfTriMesh& Surf, double dStep, bool bTriDex
if ( MULTITHREAD) {
// Numero massimo di thread
- int nThreadMax = max( 1, int( thread::hardware_concurrency()) - 1) ;
+ int nThreadMax = max( 1, int( thread::hardware_concurrency())) ;
vector< future> vRes ;
vRes.resize( nThreadMax) ;
if ( m_nNx[nG] > m_nNy[nG]) {
diff --git a/VolZmapOffset.cpp b/VolZmapOffset.cpp
index ebe88e6..c57b11c 100644
--- a/VolZmapOffset.cpp
+++ b/VolZmapOffset.cpp
@@ -734,7 +734,7 @@ VolZmap::AddSurfTmForOffset( const ISurfTriMesh* pStm, int nTool)
IntersParLinesSurfTm intPLSTM( frMapFrame, *pStm) ;
// numero massimo di thread
- int nThreadMax = max( 1, int( thread::hardware_concurrency()) - 1) ;
+ int nThreadMax = max( 1, int( thread::hardware_concurrency())) ;
vector> vRes ;
vRes.resize( nThreadMax) ;
// se dimensione griglia in X maggiore di dimensione Y