Skip to content

Commit 93641f8

Browse files
committed
init progress visualization only once (update to c84fbf1)
1 parent c84fbf1 commit 93641f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/RadiativeTransfer.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -1381,9 +1381,12 @@ bool CRadiativeTransfer::calcPolMapsViaMC()
13811381
}
13821382
#endif
13831383

1384-
// Init progress visualization
1385-
cout << "-> MC pol. map(s) (source ID: " << s + 1 << ", wavelength: " << dust->getWavelength(wID)
1386-
<< " [m], photons: " << float(nr_of_photons) << ") 0 [%] \r" << flush;
1384+
if(per_counter == 0)
1385+
{
1386+
// Init progress visualization
1387+
cout << "-> MC pol. map(s) (source ID: " << s + 1 << ", wavelength: " << dust->getWavelength(wID)
1388+
<< " [m], photons: " << float(nr_of_photons) << ") 0 [%] \r" << flush;
1389+
}
13871390

13881391
CRandomGenerator rand_gen = CRandomGenerator();
13891392
// just an arbitrary, random number for the RNG seed

0 commit comments

Comments
 (0)