Changeset 26339
- Timestamp:
- 06/30/21 21:22:20 (4 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/qmu.m
r25627 r26339 88 88 md = checkmessage(md,['evaluation_scheduling in qmu.params should be set to ''master''']); 89 89 end 90 if md.cluster.np <=1,90 if md.cluster.nprocs()<=1, 91 91 md = checkmessage(md,['in parallel library mode, Dakota needs to run on at least 2 cpus, 1 cpu for the master, 1 cpu for the slave. Modify md.cluster.np accordingly.']); 92 92 end … … 95 95 md = checkmessage(md,['in parallel library mode, Dakota needs to run at least one slave on one cpu (md.qmu.params.processors_per_evaluation >=1)!']); 96 96 end 97 if mod(md.cluster.np -1,self.params.processors_per_evaluation),97 if mod(md.cluster.nprocs()-1,self.params.processors_per_evaluation), 98 98 %md = checkmessage(md,['in parallel library mode, the requirement is for md.cluster.np = md.qmu.params.processors_per_evaluation * number_of_slaves, where number_of_slaves will automatically be determined by Dakota. Modify md.cluster.np accordingly']); 99 99 end -
issm/trunk-jpl/src/m/classes/qmu.py
r25688 r26339 149 149 md.checkmessage('evaluation_scheduling in qmu.params should be set to "master"') 150 150 151 if md.cluster.np <= 1:151 if md.cluster.nprocs() <= 1: 152 152 md.checkmessage('in parallel library mode, Dakota needs to run on at least 2 cpus, 1 cpu for the master, 1 cpu for the slave. Modify md.cluster.np accordingly.') 153 153 … … 155 155 md.checkmessage('in parallel library mode, Dakota needs to run at least one slave on one cpu (md.qmu.params.processors_per_evaluation >= 1)!') 156 156 157 if np.mod(md.cluster.np - 1, self.params.processors_per_evaluation):157 if np.mod(md.cluster.nprocs() - 1, self.params.processors_per_evaluation): 158 158 #md.checkmessage('in parallel library mode, the requirement is for md.cluster.np = md.qmu.params.processors_per_evaluation * number_of_slaves, where number_of_slaves will automatically be determined by Dakota. Modify md.cluster.np accordingly') 159 159 pass
Note:
See TracChangeset
for help on using the changeset viewer.