Skip to content

Commit

Permalink
fix rmom to be radial projection
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbayer committed Jun 17, 2023
1 parent 75d85c1 commit 886de0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libfastpmio/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1128,8 +1128,8 @@ fastpm_snapshot_paint_hpmap(FastPMStore * p,
double mass = fastpm_store_get_mass(p, i);
map->mass[i] = mass;
map->rmom[i] = mass * (p->v[i][0] * x[0]
+ p->v[i][1] * x[0]
+ p->v[i][2] * x[0]) / r;
+ p->v[i][1] * x[1]
+ p->v[i][2] * x[2]) / r;
}
/* quantize aemit for easier consistency checks */
map->aemit[i] = (slice_id + 0.5) / nslice;
Expand Down

0 comments on commit 886de0f

Please sign in to comment.