Skip to content

Commit

Permalink
FastC: reorder base avant calcul de la procList dans prepGraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMary69 committed Oct 31, 2024
1 parent 431ba3b commit 4597f9f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Fast/FastC/FastC/PyTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -3378,12 +3378,8 @@ def load(fileName='t', fileNameC='tc', fileNameS='tstat', split='single',
# Load connect (tc)
FILE = fileNameC+extC
tc = Cmpi.convertFile2SkeletonTree(FILE)
graph = prepGraphs(tc)
Cmpi._readZones(tc, FILE, rank=rank)
graphID = Cmpi.computeGraph(tc, type='ID')
graphIBCD = Cmpi.computeGraph(tc, type='IBCD')
procDict = D2.getProcDict(tc)
procList = D2.getProcList(tc, sort=True)
graph = {'graphID':graphID, 'graphIBCD':graphIBCD, 'procDict':procDict, 'procList':procList }
Cmpi._convert2PartialTree(tc, rank=rank)
# Load data (t)
FILE = fileName+ext
Expand Down Expand Up @@ -3414,8 +3410,8 @@ def load(fileName='t', fileNameC='tc', fileNameS='tstat', split='single',
else:
FILE = fileNameC+extC
tc = Cmpi.convertFile2SkeletonTree(FILE)
Cmpi._readZones(tc, FILE, rank=rank)
graph = prepGraphs(tc)
Cmpi._readZones(tc, FILE, rank=rank)
Cmpi._convert2PartialTree(tc)
# Load data (t)
FILE = '%s/%s_%d%s'%(fileName, baseName, rank, ext)
Expand Down Expand Up @@ -3913,7 +3909,6 @@ def loadTree(fileName='t.cgns', split='single', directory='.', graph=False, mpir
no += 1
if no == size and tmp != []:
t = Internal.merge(tmp)
Internal._sortByName(t,recursive=False)
graphN = prepGraphs(t)
else: print('graph non calculable: manque de fichiers connectivite.')

Expand Down Expand Up @@ -4659,6 +4654,10 @@ def tcStat_IBC(t,tc,vartTypeIBC=2,bcTypeIB=3):
# Graph related functions
#==============================================================================
def prepGraphs(t, exploc=0):

#reorder base pour avoir procList consistant avec reorder du warmup. Sinon boom possible miseaplatdonnorTree
Internal._sortByName(t,recursive=False)

graphID = Cmpi.computeGraph(t, type='ID' , reduction=False, exploc=exploc)
graphIBCD = Cmpi.computeGraph(t, type='IBCD', reduction=False, exploc=exploc)
procDict = D2.getProcDict(t)
Expand Down

0 comments on commit 4597f9f

Please sign in to comment.