Salome HOME
Fix path to mpicc and mpicxx
[tools/sat_salome.git] / products / compil_scripts / topo2volmesh.sh
index 3e3d51436357d41c504f4b9af010e2e85520b9d7..9b6eb8193f221156b283ecc5fe5f70ffcdae942e 100755 (executable)
@@ -55,7 +55,7 @@ fi
 echo
 echo "*** Check if node is a virtual machine"
 ISVM=$(hostnamectl status|grep -i chassis:|grep vm)
-if [ $? -ne 0 ]; then
+if [ ! -z "$ISVM" ]; then
     echo "*** oversubscribe..."
     sed -i 's/mpirun -np \$(NP)/mpirun -np \$(NP) --oversubscribe/g' src/*/Makefile.am
 else