Fixed bug in analysis.cpp
This commit is contained in:
parent
d1fa260c6e
commit
71c0b3cdc3
@ -515,7 +515,7 @@ static int LocalToGlobalIDs( int nx, int ny, int nz, const RankInfoStruct& rank_
|
||||
for (size_t i=0; i<LocalIDs.length(); i++) {
|
||||
if ( LocalIDs(i)>=0 ) {
|
||||
local.insert(LocalIDs(i));
|
||||
if ( LocalIDs(i)!=IDs(i) )
|
||||
if ( LocalIDs(i)!=IDs(i) && IDs(i)>= 0)
|
||||
map[LocalIDs(i)].remote_ids.insert(IDs(i));
|
||||
}
|
||||
}
|
||||
|
@ -224,10 +224,11 @@ int main(int argc, char **argv)
|
||||
Dm.CommunicateMeshHalo(Averages.SDn);
|
||||
Dm.CommunicateMeshHalo(Averages.SDs);
|
||||
|
||||
if (rank==0) printf("computing phase components \n");
|
||||
int timestep=5;
|
||||
Averages.Initialize();
|
||||
if (rank==0) printf("computing phase components \n");
|
||||
Averages.ComponentAverages();
|
||||
if (rank==0) printf("sorting phase components \n");
|
||||
Averages.SortBlobs();
|
||||
Averages.PrintComponents(timestep);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user