mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 21:44:33 +00:00 
			
		
		
		
	More debug output for the RNG
This commit is contained in:
		@@ -356,6 +356,7 @@ class BinaryIO {
 | 
				
			|||||||
      grid->Broadcast(rank, (void *)&saved[0], bytes);
 | 
					      grid->Broadcast(rank, (void *)&saved[0], bytes);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (grid->IsBoss()) {
 | 
					      if (grid->IsBoss()) {
 | 
				
			||||||
 | 
					        std::cout << "Saved: " << saved << std::endl;
 | 
				
			||||||
        Uint32Checksum((uint32_t *)&saved[0], bytes, csum);
 | 
					        Uint32Checksum((uint32_t *)&saved[0], bytes, csum);
 | 
				
			||||||
        fout.write((char *)&saved[0], bytes);
 | 
					        fout.write((char *)&saved[0], bytes);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@@ -429,6 +430,7 @@ class BinaryIO {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      if( rank == grid->ThisRank() ){
 | 
					      if( rank == grid->ThisRank() ){
 | 
				
			||||||
        parallel.SetState(saved,l_idx);
 | 
					        parallel.SetState(saved,l_idx);
 | 
				
			||||||
 | 
					        std::cout << "Saved: " << saved << std::endl;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user