Skip to content

Commit

Permalink
init progress visualization only once (update to c84fbf1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlietzow committed Jul 19, 2024
1 parent c84fbf1 commit 93641f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/RadiativeTransfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1381,9 +1381,12 @@ bool CRadiativeTransfer::calcPolMapsViaMC()
}
#endif

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

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

0 comments on commit 93641f8

Please sign in to comment.