Changeset 2252 for XIOS/trunk/src/node/mesh.cpp
- Timestamp:
- 11/04/21 10:13:23 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/mesh.cpp
r2250 r2252 451 451 for (size_t nn = 0; nn < nbNodes_; ++nn) 452 452 { 453 cout<<"MESH : "<<"node inserted : ("<< lonvalue(nn)<<","<< latvalue(nn)<<") index glo "<<nodeStart + nn<<" : hash => " ;453 // cout<<"MESH : "<<"node inserted : ("<< lonvalue(nn)<<","<< latvalue(nn)<<") index glo "<<nodeStart + nn<<" : hash => " ; 454 454 hashValues = CMesh::createHashes(lonvalue(nn), latvalue(nn)); 455 455 for (size_t nh = 0; nh < 4; ++nh) 456 456 { 457 457 nodeHash2IdxGlo[hashValues[nh]].push_back(nodeStart + nn); 458 cout<<hashValues[nh]<<" ";459 } 460 cout<<endl ;458 // cout<<hashValues[nh]<<" "; 459 } 460 // cout<<endl ; 461 461 } 462 462 pNodeGlobalIndex = new CClientClientDHTSizet (nodeHash2IdxGlo, comm); … … 515 515 for (int ne = 0; ne < nbEdges_; ++ne) 516 516 { 517 cout<<"MESH : "<<"insert edge " ;517 // cout<<"MESH : "<<"insert edge " ; 518 518 for (int nv = 0; nv < nvertex; ++nv) 519 519 { … … 533 533 nodeIdxGlo2 = it->second[0]; 534 534 535 cout<<"("<<bounds_lon(nv, ne)<<","<<bounds_lat(nv, ne)<<")" ;535 // cout<<"("<<bounds_lon(nv, ne)<<","<<bounds_lat(nv, ne)<<")" ; 536 536 } 537 537 size_t edgeIdxGlo = nbEdgesAccum + ne; 538 538 edgeHash2IdxGlo[ hashPairOrdered(nodeIdxGlo1, nodeIdxGlo2) ].push_back(edgeIdxGlo); 539 cout<<" nodes Id : "<<nodeIdxGlo1<<"&"<<nodeIdxGlo2<<" ; edge Id : "<<edgeIdxGlo<<" with hash : "<<hashPairOrdered(nodeIdxGlo1, nodeIdxGlo2)<<endl ;539 // cout<<" nodes Id : "<<nodeIdxGlo1<<"&"<<nodeIdxGlo2<<" ; edge Id : "<<edgeIdxGlo<<" with hash : "<<hashPairOrdered(nodeIdxGlo1, nodeIdxGlo2)<<endl ; 540 540 } 541 541 } // nodesAreWritten … … 715 715 MPI_Scan(&nbFacesOnProc, &nbFacesAccum, 1, MPI_UNSIGNED_LONG, MPI_SUM, comm); 716 716 nbFacesAccum -= nbFaces_; 717 cout<<bounds_lon<<endl ;718 cout<<bounds_lat<<endl ;717 // cout<<bounds_lon<<endl ; 718 // cout<<bounds_lat<<endl ; 719 719 720 720 // Case (1): edges have been previously generated … … 800 800 size_t faceIdxGlo = nbFacesAccum + nf; 801 801 size_t edgeHash = hashPairOrdered(it1->second[0], it2->second[0]); 802 cout<<"MESH : "<<"find edge : ("<<bounds_lon(nv1,nf)<<","<<bounds_lat(nv1,nf)<<")&("<<bounds_lon(nv2,nf)<<","<<bounds_lat(nv2,nf)803 <<") ; edgeHash "<<edgeHash<<" with node index : "<<it1->second[0]<<" & "<<it2->second[0]<<endl ;802 // cout<<"MESH : "<<"find edge : ("<<bounds_lon(nv1,nf)<<","<<bounds_lat(nv1,nf)<<")&("<<bounds_lon(nv2,nf)<<","<<bounds_lat(nv2,nf) 803 // <<") ; edgeHash "<<edgeHash<<" with node index : "<<it1->second[0]<<" & "<<it2->second[0]<<endl ; 804 804 itEdgeHash = edgeHash2IdxGlo.find(edgeHash); 805 805 size_t edgeIdxGlo = itEdgeHash->second[0];
Note: See TracChangeset
for help on using the changeset viewer.