-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where mapper tool used input, not output, mapping of paramf…
…ile_a.txt Add test, and notes on generally mapping gadget->grafic ICs (which is the current use case)
- Loading branch information
Showing
7 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
61383 |
33 changes: 33 additions & 0 deletions
33
genetIC/tests/mapper_test_08_tool_uses_correct_map/paramfile_a.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Test that the output mapper, not the input mapper, is used by the mapper tool | ||
# | ||
# This also tests a case of taking a single particle in a gadget file and mapping | ||
# it to grafic grids. Because grafic grids don't specify which zoom level will | ||
# actually be used, this generates flags on *all* levels. Moreover because | ||
# of the use of subsampling, there is a strange effect that one ends up with | ||
# 2^3=8 cells flagged on the 128^3 intermediate res level. | ||
|
||
|
||
|
||
Om 0.279 | ||
Ol 0.721 | ||
Ob 0.04 | ||
s8 0.817 | ||
zin 99 | ||
random_seed_real_space 8896131 | ||
camb ../camb_transfer_kmax40_z0.dat | ||
|
||
outdir ./ | ||
outname mappertest | ||
outformat gadget3 | ||
subsample 2 | ||
|
||
basegrid 50.0 64 | ||
|
||
centre 25 25 25 | ||
select_sphere 3 | ||
zoomgrid 4 64 | ||
|
||
# leave an input mapper set up, that the mapping tool should ignore | ||
mapper_relative_to ../mapper_test_02a_grafic/paramfile.txt | ||
|
||
done |
1 change: 1 addition & 0 deletions
1
genetIC/tests/mapper_test_08_tool_uses_correct_map/paramfile_b.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../mapper_test_02a_grafic/paramfile.txt |
11 changes: 11 additions & 0 deletions
11
genetIC/tests/mapper_test_08_tool_uses_correct_map/reference.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
17968 | ||
174240 | ||
174241 | ||
174304 | ||
174305 | ||
178336 | ||
178337 | ||
178400 | ||
178401 | ||
321333 | ||
539883 |