Skip to content

Commit 28c82ba

Browse files
committed
Change '%i' to '$i' in call to mpas_log_write from mpas_block_decomp_cells_for_proc
If a mesh decomposition file with the right number of partitions is not found, the message string should use '$i' rather than '%i' to print an integer (which in this case is the number of requested blocks).
1 parent ac09a51 commit 28c82ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/framework/mpas_block_decomp.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ subroutine mpas_block_decomp_cells_for_proc(dminfo, partial_global_graph_info, l
120120
open(unit=iunit, file=trim(filename), form='formatted', status='old', iostat=istatus)
121121
122122
if (istatus /= 0) then
123-
call mpas_log_write('Could not open block decomposition file for %i blocks.', MPAS_LOG_ERR, intArgs=(/dminfo % total_blocks/) )
123+
call mpas_log_write('Could not open block decomposition file for $i blocks.', MPAS_LOG_ERR, intArgs=(/dminfo % total_blocks/) )
124124
call mpas_log_write('Filename: '//trim(filename), MPAS_LOG_CRIT)
125125
end if
126126

0 commit comments

Comments
 (0)