Skip to content

Commit 23e8c33

Browse files
authored
Merge pull request #3701 from cdevaneprugh/fix/mksurfdata-format-specifiers
Fix mksurfdata.F90 format specifiers for GCC 10+ compatibility
2 parents f9a81cb + bd5708a commit 23e8c33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/mksurfdata_esmf/src/mksurfdata.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ program mksurfdata
268268

269269
! Some checking
270270
if (root_task) then
271-
write(ndiag,'(2(a,I))') ' npes = ', npes, ' grid size = ', grid_size
271+
write(ndiag,'(2(a,I0))') ' npes = ', npes, ' grid size = ', grid_size
272272
flush(ndiag)
273273
end if
274274
if (petcount > grid_size ) then
@@ -292,7 +292,7 @@ program mksurfdata
292292
call shr_sys_abort(subname//" failed to open file pio_iotype.txt")
293293
end if
294294
read(nfpio,*) ! skip file header
295-
read(nfpio, '(i)', iostat=ier) pio_iotype
295+
read(nfpio, '(I6)', iostat=ier) pio_iotype
296296
if (ier /= 0) then
297297
call shr_sys_abort(subname//" failed to read file pio_iotype.txt")
298298
end if
@@ -325,7 +325,7 @@ program mksurfdata
325325
node_count = total_nodes(1)
326326
if (node_count /= grid_size) then
327327
if (root_task) then
328-
write (ndiag,'(a, I, a, I)') ' node_count = ', node_count, ' grid_size = ', grid_size
328+
write (ndiag,'(a, I0, a, I0)') ' node_count = ', node_count, ' grid_size = ', grid_size
329329
flush(ndiag)
330330
end if
331331
call shr_sys_abort(' ERROR: size of input mesh file does not agree with expected size of nx*ny' )

0 commit comments

Comments
 (0)