You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the ability for host applications to update grid data at runtime.
Acceptance Criteria
Users can set the edge and mid-point values for any grid in the TUV-x configuration (heights, wavelengths(read-only))
Ideas
Add grid_map_t and grid_t types to the tuvx_interface module, something like:
type :: grid_map_t
type(c_ptr) :: ptr_ ! Pointer to internal tuvx_core%grid_warehouse_
end type
type :: grid_t
type(c_ptr) :: ptr_ ! Pointer to specific grid in tuvx_core%grid_warehouse_
end type
Add internal_get_grids_tuvx function to module tuvx_interface:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
function internal_get_grids_tuvx(tuvx) result(grids)
use iso_c_binding, only: c_ptr, c_f_pointer
type(c_ptr), intent(in) :: tuvx
type(grid_map_t) :: grids
type(core_t), pointer :: core
call c_f_pointer(tuvx, core)
grids%ptr_ = c_loc( core%grid_warehouse_ )
end function internal_get_grids_tuvx
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
do something similar for grid_t that looks up grids by name and units
add grid_t::update_edges() and grid_t::update_mid_points()
Add the ability for host applications to update grid data at runtime.
Acceptance Criteria
Ideas
grid_map_t
andgrid_t
types to thetuvx_interface
module, something like:internal_get_grids_tuvx
function tomodule tuvx_interface
:grid_t
that looks up grids by name and unitsgrid_t::update_edges()
andgrid_t::update_mid_points()
The text was updated successfully, but these errors were encountered: