From: Ovidiu MIRCESCU Date: Thu, 28 Jan 2021 10:31:31 +0000 (+0100) Subject: Deal with rounding issues(PBS). X-Git-Tag: V2_4_5~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fomu%2Fpbs_nnode;p=tools%2Flibbatch.git Deal with rounding issues(PBS). --- diff --git a/src/PBS/BatchManager_PBS.cxx b/src/PBS/BatchManager_PBS.cxx index 265c6ec..b0a26da 100644 --- a/src/PBS/BatchManager_PBS.cxx +++ b/src/PBS/BatchManager_PBS.cxx @@ -162,7 +162,11 @@ namespace Batch { { nbnode = params[NBNODE]; if(nbnode > 0 && nbprocpernode == 0) + { nbprocpernode = nbproc / nbnode; + if(nbprocpernode * nbnode < nbproc) + ++nbprocpernode; + } } if(nbprocpernode == 0) // if not defined nbprocpernode = 1;