@@ -73,7 +73,7 @@ def test_only_updating_boundary_condition(self):
7373 left_face_grad_constraint = jnp .zeros (()),
7474 right_face_grad_constraint = None ,
7575 right_face_constraint = jnp .array (1.0 , dtype = jax_utils .get_dtype ()),
76- dr = self .geo .drho_norm ,
76+ face_centers = self .geo .rho_face_norm ,
7777 )
7878 result = getters .get_updated_ion_temperature (
7979 profile_conditions ,
@@ -113,7 +113,7 @@ def test_only_updating_boundary_condition_electron_temperature(self):
113113 left_face_grad_constraint = jnp .zeros (()),
114114 right_face_grad_constraint = None ,
115115 right_face_constraint = jnp .array (1.0 , dtype = jax_utils .get_dtype ()),
116- dr = self .geo .drho_norm ,
116+ face_centers = self .geo .rho_face_norm ,
117117 )
118118 result = getters .get_updated_electron_temperature (
119119 profile_conditions ,
@@ -168,7 +168,7 @@ def test_only_updating_boundary_condition_n_e(self):
168168 left_face_grad_constraint = jnp .zeros (()),
169169 right_face_grad_constraint = None ,
170170 right_face_constraint = jnp .array (1.0 , dtype = jax_utils .get_dtype ()),
171- dr = self .geo .drho_norm ,
171+ face_centers = self .geo .rho_face_norm ,
172172 )
173173 n_e = getters .get_updated_electron_density (
174174 profile_conditions ,
@@ -402,7 +402,7 @@ def test_get_updated_ion_data(self):
402402 left_face_grad_constraint = jnp .zeros (()),
403403 right_face_grad_constraint = None ,
404404 right_face_constraint = jnp .array (100.0 , dtype = jax_utils .get_dtype ()),
405- dr = geo .drho_norm ,
405+ face_centers = geo .rho_face_norm ,
406406 )
407407 n_e = getters .get_updated_electron_density (
408408 runtime_params .profile_conditions ,
@@ -561,13 +561,13 @@ def test_get_updated_ions_impurity_mixture(self):
561561 geo = torax_config .geometry .build_provider (t = 0.0 )
562562 T_e_cell_variable = cell_variable .CellVariable (
563563 value = jnp .full_like (geo .rho_norm , T_e ),
564- dr = geo .drho_norm ,
564+ face_centers = geo .rho_face_norm ,
565565 right_face_constraint = T_e ,
566566 right_face_grad_constraint = None ,
567567 )
568568 n_e_cell_variable = cell_variable .CellVariable (
569569 value = jnp .full_like (geo .rho_norm , n_e ),
570- dr = geo .drho_norm ,
570+ face_centers = geo .rho_face_norm ,
571571 right_face_constraint = n_e ,
572572 right_face_grad_constraint = None ,
573573 )
@@ -666,13 +666,13 @@ def test_get_updated_ions_impurity_mixture_radially_dependent(self):
666666 geo = torax_config .geometry .build_provider (t = 0.0 )
667667 T_e_cell_variable = cell_variable .CellVariable (
668668 value = jnp .full_like (geo .rho_norm , T_e ),
669- dr = geo .drho_norm ,
669+ face_centers = geo .rho_face_norm ,
670670 right_face_constraint = T_e ,
671671 right_face_grad_constraint = None ,
672672 )
673673 n_e_cell_variable = cell_variable .CellVariable (
674674 value = jnp .full_like (geo .rho_norm , n_e ),
675- dr = geo .drho_norm ,
675+ face_centers = geo .rho_face_norm ,
676676 right_face_constraint = n_e ,
677677 right_face_grad_constraint = None ,
678678 )
@@ -790,13 +790,13 @@ def _run_get_updated_ions(torax_config):
790790
791791 t_e_cell_variable = cell_variable .CellVariable (
792792 value = jnp .full_like (geo .rho_norm , t_e_keV ),
793- dr = geo .drho_norm ,
793+ face_centers = geo .rho_face_norm ,
794794 right_face_constraint = t_e_keV ,
795795 right_face_grad_constraint = None ,
796796 )
797797 n_e_cell_variable = cell_variable .CellVariable (
798798 value = jnp .full_like (geo .rho_norm , n_e_val ),
799- dr = geo .drho_norm ,
799+ face_centers = geo .rho_face_norm ,
800800 right_face_constraint = n_e_val ,
801801 right_face_grad_constraint = None ,
802802 )
@@ -908,13 +908,13 @@ def _run_get_updated_ions(torax_config):
908908
909909 t_e_cell_variable = cell_variable .CellVariable (
910910 value = jnp .full_like (geo .rho_norm , t_e_keV ),
911- dr = geo .drho_norm ,
911+ face_centers = geo .rho_face_norm ,
912912 right_face_constraint = t_e_keV ,
913913 right_face_grad_constraint = None ,
914914 )
915915 n_e_cell_variable = cell_variable .CellVariable (
916916 value = jnp .full_like (geo .rho_norm , n_e_val ),
917- dr = geo .drho_norm ,
917+ face_centers = geo .rho_face_norm ,
918918 right_face_constraint = n_e_val ,
919919 right_face_grad_constraint = None ,
920920 )
@@ -978,13 +978,13 @@ def _run_get_updated_ions(torax_config):
978978
979979 t_e_cell_variable = cell_variable .CellVariable (
980980 value = jnp .full_like (geo .rho_norm , t_e_keV ),
981- dr = geo .drho_norm ,
981+ face_centers = geo .rho_face_norm ,
982982 right_face_constraint = t_e_keV ,
983983 right_face_grad_constraint = None ,
984984 )
985985 n_e_cell_variable = cell_variable .CellVariable (
986986 value = jnp .full_like (geo .rho_norm , n_e_val ),
987- dr = geo .drho_norm ,
987+ face_centers = geo .rho_face_norm ,
988988 right_face_constraint = n_e_val ,
989989 right_face_grad_constraint = None ,
990990 )
@@ -1079,13 +1079,13 @@ def _run_get_updated_ions(torax_config):
10791079
10801080 t_e_cell_variable = cell_variable .CellVariable (
10811081 value = jnp .full_like (geo .rho_norm , t_e_keV ),
1082- dr = geo .drho_norm ,
1082+ face_centers = geo .rho_face_norm ,
10831083 right_face_constraint = t_e_keV ,
10841084 right_face_grad_constraint = None ,
10851085 )
10861086 n_e_cell_variable = cell_variable .CellVariable (
10871087 value = jnp .full_like (geo .rho_norm , n_e_val ),
1088- dr = geo .drho_norm ,
1088+ face_centers = geo .rho_face_norm ,
10891089 right_face_constraint = n_e_val ,
10901090 right_face_grad_constraint = None ,
10911091 )
0 commit comments