Skip to content

Commit

Permalink
Quick sample updates with new SOLPS2IMAS data
Browse files Browse the repository at this point in the history
Based on quick bug fixes in SOLPS2IMAS:
ProjectTorreyPines/SOLPS2imas.jl@e852997
ProjectTorreyPines/SOLPS2imas.jl@ff8a119

The sample files were updated and grid_subset_index was updated in the runtest.jl.
  • Loading branch information
anchal-physics committed Apr 4, 2024
1 parent 5cbfda8 commit 6780895
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions samples/time_dep_edge_profiles_last_step_only.json.dvc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
md5: 3ea764e4095ca2b8a5359cd76259e26a
md5: cdd59460686d5d4ee901e1f9339f480d
frozen: true
deps:
- path: ITER_Lore_2296_00000/IMAS/time_dep_edge_profiles_last_step_only.json
repo:
url: [email protected]:ProjectTorreyPines/SOLPSTestSamples.git
rev_lock: 88f14955a52cd4d4fd7e86e2274436a34f4203ec
rev_lock: cf392d9f0292d4f4da4c027f5cc9b2a640fa7fb8
outs:
- md5: db47dee590648770a5ce49c0e0706acf
size: 4087084
- md5: 3c54b821ce167c41f270999e77a6602c
size: 11793595
hash: md5
path: time_dep_edge_profiles_last_step_only.json
8 changes: 4 additions & 4 deletions samples/time_dep_edge_profiles_with_interferometer.json.dvc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
md5: fb9792d06bb5d13f3a8803654b78624c
md5: 6aa2ce8a23a582ee8cc1aa3d030070f2
frozen: true
deps:
- path: ITER_Lore_2296_00000/IMAS/time_dep_edge_profiles_with_interferometer.json
repo:
url: [email protected]:ProjectTorreyPines/SOLPSTestSamples.git
rev_lock: 80688afd131b17455c3320a4485bbf2b7a55c80c
rev_lock: 790f37427d8e6809449684e4f1d518eab626e780
outs:
- md5: 610272ceabe4a62dd776e0f3c08d2036
size: 40662828
- md5: bba50e6afd5cfba436a0b0927a9d5bc9
size: 41544711
hash: md5
path: time_dep_edge_profiles_with_interferometer.json
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if args["interp"]
@test abs.((grid_val .- searched_val) ./ grid_val) < allowed_rtol

# test interp(prop_arr, space, subset)
subset = get_grid_subset(grid_ggd, 5)
subset = get_grid_subset(grid_ggd, -5)
print("interp(prop_arr, space, subset) time: ")
@time get_n_e =
interp(ids.edge_profiles.ggd[1].electrons.density, space, subset)
Expand All @@ -75,7 +75,7 @@ if args["interp"]

# test interp(prop_arr, grid_ggd, grid_subset_index)
print("interp(prop_arr, grid_ggd, grid_subset_index) time: ")
@time get_n_e = interp(ids.edge_profiles.ggd[1].electrons.density, grid_ggd, 5)
@time get_n_e = interp(ids.edge_profiles.ggd[1].electrons.density, grid_ggd, -5)
searched_val = get_n_e(cell_center...)
@test abs.((grid_val .- searched_val) ./ grid_val) < allowed_rtol

Expand Down Expand Up @@ -128,7 +128,7 @@ if args["projection"]
space = ids.edge_profiles.grid_ggd[1].space[1]
prop = ids.edge_profiles.ggd[1].electrons.density
# All cells
from_subset = get_grid_subset(ids.edge_profiles.grid_ggd[1], 5)
from_subset = get_grid_subset(ids.edge_profiles.grid_ggd[1], -5)
# separatix
to_subset = get_grid_subset(ids.edge_profiles.grid_ggd[1], 16)
print("project_prop_on_subset!(prop, from_subset, to_subset, space) time: ")
Expand Down

0 comments on commit 6780895

Please sign in to comment.