Changeset 3866 for trunk/GSASIImpsubs.py


Ignore:
Timestamp:
Apr 1, 2019 2:13:10 PM (3 years ago)
Author:
vondreele
Message:

fix problem with multicore range error - need integer divide in ResetMP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImpsubs.py

    r3438 r3866  
    6060        return useMP,ncores
    6161    ncores = GSASIIpath.GetConfigValue('Multiprocessing_cores',0)
    62     if ncores < 0: ncores = mp.cpu_count()/2
     62    if ncores < 0: ncores = mp.cpu_count()//2
    6363    if ncores > 1:
    6464        useMP = True
Note: See TracChangeset for help on using the changeset viewer.