Skip to content

Commit

Permalink
Added array-syntax notation for full-array copies
Browse files Browse the repository at this point in the history
  Added array-syntax notation for full-array copies in offline_diabatic_ale.
All answers are bitwise identical.
  • Loading branch information
Hallberg-NOAA committed May 11, 2020
1 parent 9f7587a commit 34196a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tracer/MOM_offline_main.F90
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,9 @@ subroutine offline_diabatic_ale(fluxes, Time_start, Time_end, CS, h_pre, eatr, e

! Add diurnal cycle for shortwave radiation (only used if run in ocean-only mode)
if (CS%diurnal_SW .and. CS%read_sw) then
sw(:,:) = fluxes%sw
sw_vis(:,:) = fluxes%sw_vis_dir
sw_nir(:,:) = fluxes%sw_nir_dir
sw(:,:) = fluxes%sw(:,:)
sw_vis(:,:) = fluxes%sw_vis_dir(:,:)
sw_nir(:,:) = fluxes%sw_nir_dir(:,:)
call offline_add_diurnal_SW(fluxes, CS%G, Time_start, Time_end)
endif

Expand All @@ -738,9 +738,9 @@ subroutine offline_diabatic_ale(fluxes, Time_start, Time_end, CS, h_pre, eatr, e
CS%G, CS%GV, CS%US, CS%tv, CS%optics, CS%tracer_flow_CSp, CS%debug)

if (CS%diurnal_SW .and. CS%read_sw) then
fluxes%sw(:,:) = sw
fluxes%sw_vis_dir(:,:) = sw_vis
fluxes%sw_nir_dir(:,:) = sw_nir
fluxes%sw(:,:) = sw(:,:)
fluxes%sw_vis_dir(:,:) = sw_vis(:,:)
fluxes%sw_nir_dir(:,:) = sw_nir(:,:)
endif

if (CS%debug) then
Expand Down

0 comments on commit 34196a2

Please sign in to comment.