Skip to content

Commit b9d74da

Browse files
jalveszjvdp1
andauthored
Update example/linalg/example_solve_cg.f90
Co-authored-by: Jeremie Vandenplas <[email protected]>
1 parent 9d64fe6 commit b9d74da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/linalg/example_solve_cg.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ program example_solve_cg
1111
x = dble( [2,1] ) !> initial guess
1212
rhs = dble( [1,2] ) !> rhs vector
1313

14-
call solve_cg(matrix, load, x, restart=.false.)
14+
call solve_cg(matrix, rhs, x, restart=.false.)
1515
print *, x !> solution: [0.0909, 0.6364]
1616

1717
end program

0 commit comments

Comments
 (0)