Skip to content

Commit c3cabcb

Browse files
jiandewangJiande Wang
authored and
Jiande Wang
committed
remove compiling warning
files being modified: modified: config_src/external/GFDL_ocean_BGC/FMS_coupler_util.F90 modified: config_src/external/GFDL_ocean_BGC/generic_tracer_utils.F90 modified: config_src/external/database_comms/database_client_interface.F90 modified: src/ALE/MOM_remapping.F90 modified: src/core/MOM_open_boundary.F90 modified: src/framework/posix.F90
1 parent 10521a9 commit c3cabcb

File tree

6 files changed

+38
-38
lines changed

6 files changed

+38
-38
lines changed

config_src/external/GFDL_ocean_BGC/FMS_coupler_util.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ subroutine extract_coupler_values(BC_struc, BC_index, BC_element, array_out, ilb
1313
is, ie, js, je, conversion)
1414
integer, intent(in) :: ilb !< Lower bounds
1515
integer, intent(in) :: jlb !< Lower bounds
16-
real, dimension(ilb:,jlb:),intent(out) :: array_out !< The array being filled with the input values
16+
real, dimension(ilb:,jlb:),intent(inout) :: array_out !< The array being filled with the input values
1717
type(coupler_2d_bc_type), intent(in) :: BC_struc !< The type from which the data is being extracted
1818
integer, intent(in) :: BC_index !< The boundary condition number being extracted
1919
integer, intent(in) :: BC_element !< The element of the boundary condition being extracted

config_src/external/GFDL_ocean_BGC/generic_tracer_utils.F90

+18-18
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ end subroutine g_tracer_set_common
127127

128128
subroutine g_tracer_get_common(isc,iec,jsc,jec,isd,ied,jsd,jed,nk,ntau,&
129129
axes,grid_tmask,grid_mask_coast,grid_kmt,init_time,diag_CS)
130-
integer, intent(out) :: isc !< Computation start index in i direction
131-
integer, intent(out) :: iec !< Computation end index in i direction
132-
integer, intent(out) :: jsc !< Computation start index in j direction
133-
integer, intent(out) :: jec !< Computation end index in j direction
134-
integer, intent(out) :: isd !< Data start index in i direction
135-
integer, intent(out) :: ied !< Data end index in i direction
136-
integer, intent(out) :: jsd !< Data start index in j direction
137-
integer, intent(out) :: jed !< Data end index in j direction
138-
integer, intent(out) :: nk !< Number of levels in k direction
139-
integer, intent(out) :: ntau !< Unknown
130+
integer, intent(inout) :: isc !< Computation start index in i direction
131+
integer, intent(inout) :: iec !< Computation end index in i direction
132+
integer, intent(inout) :: jsc !< Computation start index in j direction
133+
integer, intent(inout) :: jec !< Computation end index in j direction
134+
integer, intent(inout) :: isd !< Data start index in i direction
135+
integer, intent(inout) :: ied !< Data end index in i direction
136+
integer, intent(inout) :: jsd !< Data start index in j direction
137+
integer, intent(inout) :: jed !< Data end index in j direction
138+
integer, intent(inout) :: nk !< Number of levels in k direction
139+
integer, intent(inout) :: ntau !< Unknown
140140
integer, optional, intent(out) :: axes(3) !< Unknown
141141
type(time_type), optional, intent(out) :: init_time !< Unknown
142142
real, optional, dimension(:,:,:), pointer :: grid_tmask !< Unknown
@@ -176,7 +176,7 @@ subroutine g_tracer_get_4D_val(g_tracer_list,name,member,array,isd,jsd)
176176
type(g_tracer_type), pointer :: g_tracer_list !< Unknown
177177
integer, intent(in) :: isd !< Unknown
178178
integer, intent(in) :: jsd !< Unknown
179-
real, dimension(isd:,jsd:,:,:), intent(out):: array !< Unknown
179+
real, dimension(isd:,jsd:,:,:), intent(inout):: array !< Unknown
180180
end subroutine g_tracer_get_4D_val
181181

182182
!> Unknown
@@ -188,7 +188,7 @@ subroutine g_tracer_get_3D_val(g_tracer_list,name,member,array,isd,jsd,ntau,posi
188188
integer, intent(in) :: jsd !< Unknown
189189
integer, optional, intent(in) :: ntau !< Unknown
190190
logical, optional, intent(in) :: positive !< Unknown
191-
real, dimension(isd:,jsd:,:), intent(out):: array !< Unknown
191+
real, dimension(isd:,jsd:,:), intent(inout):: array !< Unknown
192192
character(len=fm_string_len), parameter :: sub_name = 'g_tracer_get_3D_val'
193193
end subroutine g_tracer_get_3D_val
194194

@@ -199,23 +199,23 @@ subroutine g_tracer_get_2D_val(g_tracer_list,name,member,array,isd,jsd)
199199
type(g_tracer_type), pointer :: g_tracer_list !< Unknown
200200
integer, intent(in) :: isd !< Unknown
201201
integer, intent(in) :: jsd !< Unknown
202-
real, dimension(isd:,jsd:), intent(out):: array !< Unknown
202+
real, dimension(isd:,jsd:), intent(inout):: array !< Unknown
203203
end subroutine g_tracer_get_2D_val
204204

205205
!> Unknown
206206
subroutine g_tracer_get_real(g_tracer_list,name,member,value)
207207
character(len=*), intent(in) :: name !< Unknown
208208
character(len=*), intent(in) :: member !< Unknown
209209
type(g_tracer_type), pointer :: g_tracer_list !< Unknown
210-
real, intent(out):: value !< Unknown
210+
real, intent(inout):: value !< Unknown
211211
end subroutine g_tracer_get_real
212212

213213
!> Unknown
214214
subroutine g_tracer_get_string(g_tracer_list,name,member,string)
215215
character(len=*), intent(in) :: name !< Unknown
216216
character(len=*), intent(in) :: member !< Unknown
217217
type(g_tracer_type), pointer :: g_tracer_list !< Unknown
218-
character(len=fm_string_len), intent(out) :: string !< Unknown
218+
character(len=fm_string_len), intent(inout) :: string !< Unknown
219219
end subroutine g_tracer_get_string
220220

221221
!> Unknown
@@ -267,13 +267,13 @@ end subroutine g_tracer_send_diag
267267
!> Unknown
268268
subroutine g_tracer_get_name(g_tracer,string)
269269
type(g_tracer_type), pointer :: g_tracer !< Unknown
270-
character(len=*), intent(out) :: string !< Unknown
270+
character(len=*), intent(inout) :: string !< Unknown
271271
end subroutine g_tracer_get_name
272272

273273
!> Unknown
274274
subroutine g_tracer_get_alias(g_tracer,string)
275275
type(g_tracer_type), pointer :: g_tracer !< Unknown
276-
character(len=*), intent(out) :: string !< Unknown
276+
character(len=*), intent(inout) :: string !< Unknown
277277
end subroutine g_tracer_get_alias
278278

279279
!> Is the tracer prognostic?
@@ -292,7 +292,7 @@ end subroutine g_tracer_get_next
292292
subroutine g_tracer_get_obc_segment_props(g_tracer_list, name, obc_has, src_file, src_var_name,lfac_in,lfac_out)
293293
type(g_tracer_type), pointer :: g_tracer_list !< pointer to the head of the generic tracer list
294294
character(len=*), intent(in) :: name !< tracer name
295-
logical, intent(out):: obc_has !< .true. if This tracer has OBC
295+
logical, intent(inout):: obc_has !< .true. if This tracer has OBC
296296
real, optional,intent(out):: lfac_in !< OBC reservoir inverse lengthscale factor
297297
real, optional,intent(out):: lfac_out !< OBC reservoir inverse lengthscale factor
298298
character(len=*),optional,intent(out):: src_file !< OBC source file

config_src/external/database_comms/database_client_interface.F90

+14-14
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ end function put_tensor_int32_4d
310310

311311
!> Unpack a 32-bit real 1d tensor from the database
312312
function unpack_tensor_float_1d(self, name, data, dims) result(code)
313-
real(kind=real32), dimension(:), intent( out) :: data !< Data to be received
313+
real(kind=real32), dimension(:), intent(inout) :: data !< Data to be received
314314
class(dbclient_type), intent(in) :: self !< Fortran communication client
315315
character(len=*), intent(in) :: name !< The unique name used to store in the database
316316
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -321,7 +321,7 @@ end function unpack_tensor_float_1d
321321

322322
!> Unpack a 32-bit real 2d tensor from the database
323323
function unpack_tensor_float_2d(self, name, data, dims) result(code)
324-
real(kind=real32), dimension(:,:), intent( out) :: data !< Data to be received
324+
real(kind=real32), dimension(:,:), intent(inout) :: data !< Data to be received
325325
class(dbclient_type), intent(in) :: self !< Fortran communication client
326326
character(len=*), intent(in) :: name !< The unique name used to store in the database
327327
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -332,7 +332,7 @@ end function unpack_tensor_float_2d
332332

333333
!> Unpack a 32-bit real 3d tensor from the database
334334
function unpack_tensor_float_3d(self, name, data, dims) result(code)
335-
real(kind=real32), dimension(:,:,:), intent( out) :: data !< Data to be received
335+
real(kind=real32), dimension(:,:,:), intent(inout) :: data !< Data to be received
336336
class(dbclient_type), intent(in) :: self !< Fortran communication client
337337
character(len=*), intent(in) :: name !< The unique name used to store in the database
338338
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -343,7 +343,7 @@ end function unpack_tensor_float_3d
343343

344344
!> Unpack a 32-bit real 4d tensor from the database
345345
function unpack_tensor_float_4d(self, name, data, dims) result(code)
346-
real(kind=real32), dimension(:,:,:,:), intent( out) :: data !< Data to be received
346+
real(kind=real32), dimension(:,:,:,:), intent(inout) :: data !< Data to be received
347347
class(dbclient_type), intent(in) :: self !< Fortran communication client
348348
character(len=*), intent(in) :: name !< The unique name used to store in the database
349349
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -354,7 +354,7 @@ end function unpack_tensor_float_4d
354354

355355
!> Unpack a 64-bit real 1d tensor from the database
356356
function unpack_tensor_double_1d(self, name, data, dims) result(code)
357-
real(kind=real64), dimension(:), intent( out) :: data !< Data to be received
357+
real(kind=real64), dimension(:), intent(inout) :: data !< Data to be received
358358
class(dbclient_type), intent(in) :: self !< Fortran communication client
359359
character(len=*), intent(in) :: name !< The unique name used to store in the database
360360
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -365,7 +365,7 @@ end function unpack_tensor_double_1d
365365

366366
!> Unpack a 64-bit real 2d tensor from the database
367367
function unpack_tensor_double_2d(self, name, data, dims) result(code)
368-
real(kind=real64), dimension(:,:), intent( out) :: data !< Data to be received
368+
real(kind=real64), dimension(:,:), intent(inout) :: data !< Data to be received
369369
class(dbclient_type), intent(in) :: self !< Fortran communication client
370370
character(len=*), intent(in) :: name !< The unique name used to store in the database
371371
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -376,7 +376,7 @@ end function unpack_tensor_double_2d
376376

377377
!> Unpack a 64-bit real 3d tensor from the database
378378
function unpack_tensor_double_3d(self, name, data, dims) result(code)
379-
real(kind=real64), dimension(:,:,:), intent( out) :: data !< Data to be received
379+
real(kind=real64), dimension(:,:,:), intent(inout) :: data !< Data to be received
380380
class(dbclient_type), intent(in) :: self !< Fortran communication client
381381
character(len=*), intent(in) :: name !< The unique name used to store in the database
382382
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -387,7 +387,7 @@ end function unpack_tensor_double_3d
387387

388388
!> Unpack a 64-bit real 4d tensor from the database
389389
function unpack_tensor_double_4d(self, name, data, dims) result(code)
390-
real(kind=real64), dimension(:,:,:,:), intent( out) :: data !< Data to be received
390+
real(kind=real64), dimension(:,:,:,:), intent(inout) :: data !< Data to be received
391391
class(dbclient_type), intent(in) :: self !< Fortran communication client
392392
character(len=*), intent(in) :: name !< The unique name used to store in the database
393393
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -398,7 +398,7 @@ end function unpack_tensor_double_4d
398398

399399
!> Unpack a 32-bit integer 1d tensor from the database
400400
function unpack_tensor_int32_1d(self, name, data, dims) result(code)
401-
integer(kind=int32), dimension(:), intent( out) :: data !< Data to be received
401+
integer(kind=int32), dimension(:), intent(inout) :: data !< Data to be received
402402
class(dbclient_type), intent(in) :: self !< Fortran communication client
403403
character(len=*), intent(in) :: name !< The unique name used to store in the database
404404
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -409,7 +409,7 @@ end function unpack_tensor_int32_1d
409409

410410
!> Unpack a 32-bit integer 2d tensor from the database
411411
function unpack_tensor_int32_2d(self, name, data, dims) result(code)
412-
integer(kind=int32), dimension(:,:), intent( out) :: data !< Data to be received
412+
integer(kind=int32), dimension(:,:), intent(inout) :: data !< Data to be received
413413
class(dbclient_type), intent(in) :: self !< Fortran communication client
414414
character(len=*), intent(in) :: name !< The unique name used to store in the database
415415
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -420,7 +420,7 @@ end function unpack_tensor_int32_2d
420420

421421
!> Unpack a 32-bit integer 3d tensor from the database
422422
function unpack_tensor_int32_3d(self, name, data, dims) result(code)
423-
integer(kind=int32), dimension(:,:,:), intent( out) :: data !< Data to be received
423+
integer(kind=int32), dimension(:,:,:), intent(inout) :: data !< Data to be received
424424
class(dbclient_type), intent(in) :: self !< Fortran communication client
425425
character(len=*), intent(in) :: name !< The unique name used to store in the database
426426
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -431,7 +431,7 @@ end function unpack_tensor_int32_3d
431431

432432
!> Unpack a 32-bit integer 4d tensor from the database
433433
function unpack_tensor_int32_4d(self, name, data, dims) result(code)
434-
integer(kind=int32), dimension(:,:,:,:), intent( out) :: data !< Data to be received
434+
integer(kind=int32), dimension(:,:,:,:), intent(inout) :: data !< Data to be received
435435
class(dbclient_type), intent(in) :: self !< Fortran communication client
436436
character(len=*), intent(in) :: name !< The unique name used to store in the database
437437
integer, dimension(:), intent(in) :: dims !< The length of each dimension
@@ -475,7 +475,7 @@ end function copy_tensor
475475
function get_model(self, name, model) result(code)
476476
class(dbclient_type), intent(in ) :: self !< An initialized communication client
477477
character(len=*), intent(in ) :: name !< The name associated with the model
478-
character(len=*), intent( out) :: model !< The model as a continuous buffer
478+
character(len=*), intent(inout) :: model !< The model as a continuous buffer
479479
integer :: code
480480

481481
code = -1
@@ -617,7 +617,7 @@ end function delete_model_multigpu
617617
function get_script(self, name, script) result(code)
618618
class(dbclient_type), intent(in ) :: self !< An initialized communication client
619619
character(len=*), intent(in ) :: name !< The name to use to place the script
620-
character(len=*), intent( out) :: script !< The script as a continuous buffer
620+
character(len=*), intent(inout) :: script !< The script as a continuous buffer
621621
integer :: code
622622

623623
code = -1

src/ALE/MOM_remapping.F90

+3-3
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ subroutine check_reconstructions_1d(n0, h0, u0, deg, boundary_extrapolation, &
393393
real, dimension(n0), intent(in) :: u0 !< Cell averages on source grid [A]
394394
integer, intent(in) :: deg !< Degree of polynomial reconstruction
395395
logical, intent(in) :: boundary_extrapolation !< Extrapolate at boundaries if true
396-
real, dimension(n0,deg+1),intent(out) :: ppoly_r_coefs !< Coefficients of polynomial [A]
397-
real, dimension(n0,2), intent(out) :: ppoly_r_E !< Edge value of polynomial [A]
398-
real, dimension(n0,2), intent(out) :: ppoly_r_S !< Edge slope of polynomial [A H-1]
396+
real, dimension(n0,deg+1),intent(inout) :: ppoly_r_coefs !< Coefficients of polynomial [A]
397+
real, dimension(n0,2), intent(inout) :: ppoly_r_E !< Edge value of polynomial [A]
398+
real, dimension(n0,2), intent(inout) :: ppoly_r_S !< Edge slope of polynomial [A H-1]
399399
! Local variables
400400
integer :: i0, n
401401
real :: u_l, u_c, u_r ! Cell averages [A]

src/core/MOM_open_boundary.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ subroutine initialize_segment_data(G, GV, US, OBC, PF)
854854
! if (siz(4) == 1) segment%values_needed = .false.
855855
if (segment%on_pe) then
856856
if (OBC%brushcutter_mode .and. (modulo(siz(1),2) == 0 .or. modulo(siz(2),2) == 0)) then
857-
write(mesg,'("Brushcutter mode sizes ", I6, I6))') siz(1), siz(2)
857+
write(mesg,'("Brushcutter mode sizes ",I6,I6))') siz(1), siz(2)
858858
call MOM_error(WARNING, mesg // " " // trim(filename) // " " // trim(fieldname))
859859
call MOM_error(FATAL,'segment data are not on the supergrid')
860860
endif

src/framework/posix.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ end function mkdir
302302
function stat(path, buf) result(rc)
303303
character(len=*), intent(in) :: path
304304
!< Pathname of file to be inspected
305-
type(stat_buf), intent(out) :: buf
305+
type(stat_buf), intent(inout) :: buf
306306
!< Buffer containing information about the file if it exists
307307
! NOTE: Currently the contents of buf are not readable, but we could move
308308
! the contents into a readable Fortran type.

0 commit comments

Comments
 (0)