Skip to content

Commit 4d99e6d

Browse files
arnavk23Copilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 039a60c commit 4d99e6d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/ADNLPProblems/ADNLPProblems.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ end
4242
macro adjust_nvar_warn(problem_name, n_orig, n)
4343
return quote
4444
($(esc(n)) == $(esc(n_orig))) ||
45-
@warn($(esc(problem_name)) * ": number of variables adjusted from " * string($(esc(n_orig))) * " to " * string($(esc(n))))
45+
@warn(string($(esc(problem_name)), ": number of variables adjusted from ",
46+
$(esc(n_orig)), " to ", $(esc(n))))
4647
end
4748
end
4849

src/ADNLPProblems/bearing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function bearing(;
99
) where {T}
1010
# nx > 0 # grid points in 1st direction
1111
# ny > 0 # grid points in 2nd direction
12-
12+
1313
# Ensure nx and ny are at least 1, and warn if they need adjustment
1414
nx_orig = nx
1515
ny_orig = ny

0 commit comments

Comments
 (0)