Skip to content

Commit

Permalink
Merge pull request #169 from nekStab/158_runtime-outputs
Browse files Browse the repository at this point in the history
fixed typo in print format
  • Loading branch information
loiseaujc authored Feb 21, 2025
2 parents 1c4d2f4 + 0a4a301 commit 7a3265c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/IterativeSolvers/IterativeSolvers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ subroutine write_results_csp(filename, vals, res, tol)
k = size(vals)
if (io_rank()) then ! only master rank writes
open (1234, file=filename, status='replace', action='write')
write (1234, '(A6,2(A18),A3)') 'Iter', 'Re', 'Im', 'residual', 'C'
write (1234, '(A6,3(A18),A3)') 'Iter', 'Re', 'Im', 'residual', 'C'
do i = 1, k
write (1234, fmtc) k, vals(i)%re, vals(i)%im, res(i), res(i) < tol
end do
Expand All @@ -1493,7 +1493,7 @@ subroutine write_results_cdp(filename, vals, res, tol)
k = size(vals)
if (io_rank()) then ! only master rank writes
open (1234, file=filename, status='replace', action='write')
write (1234, '(A6,2(A18),A3)') 'Iter', 'Re', 'Im', 'residual', 'C'
write (1234, '(A6,3(A18),A3)') 'Iter', 'Re', 'Im', 'residual', 'C'
do i = 1, k
write (1234, fmtc) k, vals(i)%re, vals(i)%im, res(i), res(i) < tol
end do
Expand Down
2 changes: 1 addition & 1 deletion src/IterativeSolvers/IterativeSolvers.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ contains
if (io_rank()) then ! only master rank writes
open (1234, file=filename, status='replace', action='write')
#:if type[0] == "c"
write (1234, '(A6,2(A18),A3)') 'Iter', 'Re', 'Im', 'residual', 'C'
write (1234, '(A6,3(A18),A3)') 'Iter', 'Re', 'Im', 'residual', 'C'
#:else
write (1234, '(A6,2(A18),A3)') 'Iter', 'value', 'residual', 'C'
#:endif
Expand Down

0 comments on commit 7a3265c

Please sign in to comment.