Skip to content

Commit

Permalink
Merge pull request #593 from FESOM/refactoring_bugfixIOstream
Browse files Browse the repository at this point in the history
 kickout dublicated io-outputstream for surface forcing
  • Loading branch information
JanStreffing committed May 29, 2024
2 parents b3f7813 + 5504839 commit 6b63e79
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/io_meandata.F90
Original file line number Diff line number Diff line change
Expand Up @@ -758,29 +758,9 @@ subroutine ini_mean_io(ice, dynamics, tracers, partit, mesh)
call def_stream((/nl-1, nod2D/), (/nl-1, myDim_nod2D/), 'dvd_temp_v', 'vert. dvd of temperature' , '°C/s' , tracers%work%tr_dvd_vert(:,:,1) , 1, 'm', i_real4, partit, mesh)
call def_stream((/nl-1, nod2D/), (/nl-1, myDim_nod2D/), 'dvd_salt_h', 'horiz. dvd of salinity' , 'psu/s', tracers%work%tr_dvd_horiz(:,:,2), 1, 'm', i_real4, partit, mesh)
call def_stream((/nl-1, nod2D/), (/nl-1, myDim_nod2D/), 'dvd_salt_v', 'vert. dvd of salinity' , 'psu/s', tracers%work%tr_dvd_vert(:,:,2) , 1, 'm', i_real4, partit, mesh)
end if
!___________________________________________________________________________
if (ldiag_forc) then
if (sel_forcvar( 1)==0) call def_stream(nod2D , myDim_nod2D , 'uwind' , '10m zonal surface wind velocity', 'm/s' , u_wind(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 2)==0) call def_stream(nod2D , myDim_nod2D , 'vwind' , '10m merid surface wind velocity', 'm/s' , v_wind(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 3)==0) call def_stream(nod2D , myDim_nod2D , 'tair' , 'surface air temperature' , '°C' , Tair(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 4)==0) call def_stream(nod2D , myDim_nod2D , 'shum' , 'specific humidity' , '' , shum(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 5)==0) call def_stream(nod2D , myDim_nod2D , 'prec' , 'precicipation rain' , 'm/s' , prec_rain(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 6)==0) call def_stream(nod2D , myDim_nod2D , 'snow' , 'precicipation snow' , 'm/s' , prec_snow(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 7)==0) call def_stream(nod2D , myDim_nod2D , 'evap' , 'evaporation' , 'm/s' , evaporation(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 8)==0) call def_stream(nod2D , myDim_nod2D , 'swr' , 'short wave radiation' , 'W/m^2', shortwave(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar( 9)==0) call def_stream(nod2D , myDim_nod2D , 'lwr' , 'long wave radiation' , 'W/m^2', longwave(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar(10)==0) call def_stream(nod2D , myDim_nod2D , 'runoff', 'river runoff' , 'none' , runoff(:) , 1, 'm', i_real4, partit, mesh)
if (sel_forcvar(11)==0) call def_stream(elem2D, myDim_elem2D, 'tx_sur', 'zonal wind str. to ocean' , 'm/s^2', stress_surf(1, :), 1, 'm', i_real4, partit, mesh)
if (sel_forcvar(12)==0) call def_stream(elem2D, myDim_elem2D, 'ty_sur', 'meridional wind str. to ocean' , 'm/s^2', stress_surf(2, :), 1, 'm', i_real4, partit, mesh)
call def_stream(nod2D , myDim_nod2D , 'cd', 'wind drag coef. ' , '', cd_atm_oce_arr(:), 1, 'm', i_real4, partit, mesh)
call def_stream(nod2D , myDim_nod2D , 'ch', 'transfer coeff. sensible heat', '', ch_atm_oce_arr(:), 1, 'm', i_real4, partit, mesh)
call def_stream(nod2D , myDim_nod2D , 'ce', 'transfer coeff. evaporation ' , '', ce_atm_oce_arr(:), 1, 'm', i_real4, partit, mesh)
#if defined (__oasis)
call def_stream(nod2D, myDim_nod2D, 'subli', 'sublimation', 'm/s', sublimation(:), 1, 'm', i_real4, partit, mesh)
#endif
end if

!___________________________________________________________________________
if (dynamics%ldiag_ke) then
call def_stream((/nl-1, elem2D/), (/nl-1, myDim_elem2D/), 'ke_adv_u_xVEL', 'work of advection [u]', 'm2/s2', dynamics%ke_adv_xVEL(1,:,:), io_list(i)%freq, 'm', 8, partit, mesh)
call def_stream((/nl-1, elem2D/), (/nl-1, myDim_elem2D/), 'ke_adv_v_xVEL', 'work of advection [v]', 'm2/s2', dynamics%ke_adv_xVEL(2,:,:), io_list(i)%freq, 'm', 8, partit, mesh)
Expand Down

0 comments on commit 6b63e79

Please sign in to comment.