\r
@Override\r
public CommandBuilder<Jronn> getParameters(ExecProvider provider) {\r
- // Limit number of cores to 1 for ANY execution which does not set\r
- // Ncores explicitly using setNCore method\r
- if (ncoreNumber == 0) {\r
- setNCore(1);\r
- }\r
- // If number of cores is provided, set it for the cluster execution only!\r
- if (provider == Executable.ExecProvider.Cluster) {\r
- int cpunum = SkeletalExecutable.getClusterCpuNum(getType());\r
- if (cpunum != 0) {\r
- setNCore(cpunum);\r
- }\r
- }\r
- return super.getParameters(provider);\r
+ // If number of cores is provided, set it for the cluster execution only!\r
+ if (provider == Executable.ExecProvider.Cluster) {\r
+ int cpunum = SkeletalExecutable.getClusterCpuNum(getType());\r
+ cpunum = (cpunum==0) ? 1 : cpunum; \r
+ setNCore(cpunum);\r
+ } else { \r
+ // Limit number of cores to 1 for ANY execution which does not set\r
+ // Ncores explicitly using setNCore method or is run on local VM\r
+ if(ncoreNumber==0) {\r
+ setNCore(1);\r
+ }\r
+ }\r
+ return super.getParameters(provider);\r
}\r
\r
}\r