Skip to content

Commit

Permalink
more logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rainwoodman committed Jun 1, 2018
1 parent 7db76ad commit 7e92a38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nbodykit/mockmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def gaussian_complex_fields(pm, linear_power, seed,
if not isinstance(seed, numbers.Integral):
raise ValueError("the seed used to generate the linear field must be an integer")

if logger and pm.comm.rank == 0:
logger.info("Generating whitenoise")

# use pmesh to generate random complex white noise field (done in parallel)
# variance of complex field is unity
# multiply by P(k)**0.5 to get desired variance
Expand Down

0 comments on commit 7e92a38

Please sign in to comment.