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
type(field_2d_t) :: rho, u, rho_u
rho = field_2d(name='rho', long_name='density', &
descrip='Cell-centered mass density', &
units='g/cc', global_dims=[20, 20], n_halo_cells=2)
u = field_2d(name='u', long_name='x-velocity', &
descrip='Cell-centered x-velocity', &
units='cm/s', global_dims=[20, 20], n_halo_cells=2)
! Create a new field based off of existing ones
rho_u = rho * u
! Get max
call rho_u%maxval()