Skip to content

Commit

Permalink
Fixed bug for numOfCpus
Browse files Browse the repository at this point in the history
Component was failing in case number of test points was less then the
number of CPUs. See this discussion:
http://www.grasshopper3d.com/group/ladybug/forum/topics/possible-bug-new-honeybee-run-daylight-simulation-module-03-16-15?xg_source=activity
  • Loading branch information
mostaphaRoudsari committed Jul 7, 2015
1 parent 955a672 commit 422bcba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Honeybee_Run Daylight Simulation.py
Expand Up @@ -174,7 +174,9 @@ def main(north, originalHBObjects, analysisRecipe, runRad, numOfCPUs, workingDir
# test points should be generated if the study is grid based
# except image-based simulation
testPtsEachCPU, lenOfPts = hb_writeRAD.writeTestPtFile(subWorkingDir, radFileName, numOfCPUs, analysisRecipe)


numOfCPUs = len(testPtsEachCPU) #in case number of CPUs are more than number of test points

######################## WRITE BATCH FILES #######################
# if analysis type is annual this function will write hea files too
initBatchFileName, batchFilesName, fileNames, pcompBatchFile, expectedResultFiles = \
Expand Down
Binary file modified userObjects/Honeybee_Run Daylight Simulation.ghuser
Binary file not shown.

0 comments on commit 422bcba

Please sign in to comment.