Skip to content

Commit 69ffe75

Browse files
fixing some inplace functions
1 parent e2729b3 commit 69ffe75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/states.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ abstract type AbstractPaddedStates <: AbstractStates end
33
abstract type NonLinearAlgorithm end
44

55
function pad_state!(states_type::AbstractPaddedStates, x_pad, x)
6-
x_pad = vcat(fill(states_type.padding, (1, size(x, 2))), x)
6+
x_pad[1, :] .= states_type.padding
7+
x_pad[2:end, :] .= x
78
return x_pad
89
end
910

1011
function pad_state!(states_type, x_pad, x)
11-
x_pad = x
12-
return x_pad
12+
return x
1313
end
1414

1515
#states types

0 commit comments

Comments
 (0)