Skip to content

Commit 3a1c09e

Browse files
committed
bench: update formatting
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 1e761ce commit 3a1c09e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tools/snippets/benchmark/fortran/benchmark.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ subroutine print_results( elapsed )
9999
tmp = adjustl( str )
100100
print '(A,A)', ' iterations: ', trim( tmp )
101101
! ..
102-
write (str, '(f0.9)') elapsed
102+
write (str, '(f15.9)') elapsed
103103
tmp = adjustl( str )
104104
print '(A,A)', ' elapsed: ', trim( tmp )
105105
! ..
106-
write( str, '(f0.9)') rate
106+
write( str, '(f15.9)') rate
107107
tmp = adjustl( str )
108108
print '(A,A)', ' rate: ', trim( tmp )
109109
! ..
@@ -177,4 +177,4 @@ subroutine main()
177177
end do
178178
call print_summary( repeats, repeats )
179179
end subroutine main
180-
end program bench
180+
end program bench

tools/snippets/benchmark/fortran/native/benchmark.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ subroutine print_results( elapsed )
9999
tmp = adjustl( str )
100100
print '(A,A)', ' iterations: ', trim( tmp )
101101
! ..
102-
write (str, '(f0.9)') elapsed
102+
write (str, '(f15.9)') elapsed
103103
tmp = adjustl( str )
104104
print '(A,A)', ' elapsed: ', trim( tmp )
105105
! ..
106-
write( str, '(f0.9)') rate
106+
write( str, '(f15.9)') rate
107107
tmp = adjustl( str )
108108
print '(A,A)', ' rate: ', trim( tmp )
109109
! ..
@@ -177,4 +177,4 @@ subroutine main()
177177
end do
178178
call print_summary( repeats, repeats )
179179
end subroutine main
180-
end program bench
180+
end program bench

tools/snippets/benchmark/fortran/native/benchmark.length.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ subroutine print_results( iterations, elapsed )
103103
tmp = adjustl( str )
104104
print '(A,A)', ' iterations: ', trim( tmp )
105105
! ..
106-
write (str, '(f0.9)') elapsed
106+
write (str, '(f15.9)') elapsed
107107
tmp = adjustl( str )
108108
print '(A,A)', ' elapsed: ', trim( tmp )
109109
! ..
110-
write( str, '(f0.9)') rate
110+
write( str, '(f15.9)') rate
111111
tmp = adjustl( str )
112112
print '(A,A)', ' rate: ', trim( tmp )
113113
! ..
@@ -214,4 +214,4 @@ subroutine main()
214214
end do
215215
call print_summary( count, count )
216216
end subroutine main
217-
end program bench
217+
end program bench

0 commit comments

Comments
 (0)