For each none halo cell this will calculate the coriolis terms for su and sv fields.
65 type(model_state_type),
target,
intent(inout) :: current_state
69 if (current_state%halo_column)
then 70 if (.not. ((current_state%column_local_y == current_state%local_grid%halo_size(y_index) .and. &
71 current_state%column_local_x .le. current_state%local_grid%local_domain_end_index(x_index) .and. &
72 current_state%column_local_x .ge. current_state%local_grid%local_domain_start_index(x_index)-1) .or. &
73 (current_state%column_local_x == current_state%local_grid%halo_size(x_index) .and. &
74 current_state%column_local_y .ge. current_state%local_grid%local_domain_start_index(y_index) &
75 .and. current_state%column_local_y .le. current_state%local_grid%local_domain_end_index(y_index)) ))
return 78 do k=2,current_state%local_grid%size(z_index)
79 #if defined(U_ACTIVE) && defined(V_ACTIVE) 80 current_state%su%data(k, current_state%column_local_y, current_state%column_local_x)=&
81 current_state%su%data(k, current_state%column_local_y, current_state%column_local_x)+fcoriol*&
82 (0.25_default_precision*(current_state%v%data(k, current_state%column_local_y, current_state%column_local_x)+&
83 current_state%v%data(k, current_state%column_local_y, current_state%column_local_x+1)+&
84 current_state%v%data(k, current_state%column_local_y-1, current_state%column_local_x)+&
85 current_state%v%data(k, current_state%column_local_y-1, current_state%column_local_x+1))+current_state%vgal-&
86 geostrophic_wind_y(k))
88 current_state%sv%data(k, current_state%column_local_y, current_state%column_local_x)=&
89 current_state%sv%data(k, current_state%column_local_y, current_state%column_local_x)-fcoriol*&
90 (0.25_default_precision*(current_state%u%data(k, current_state%column_local_y, current_state%column_local_x)+&
91 current_state%u%data(k, current_state%column_local_y, current_state%column_local_x-1)+&
92 current_state%u%data(k, current_state%column_local_y+1, current_state%column_local_x)+&
93 current_state%u%data(k, current_state%column_local_y+1, current_state%column_local_x-1))+current_state%ugal-&
94 geostrophic_wind_x(k))