Skip to content

Commit 0180adf

Browse files
Copilotthorek1
andcommitted
Remove redundant cache clearing before solve_steady_state! call
Co-authored-by: thorek1 <[email protected]>
1 parent cbcc905 commit 0180adf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/MacroModelling.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8063,12 +8063,8 @@ function write_parameters_input!(𝓂::ℳ, parameters::OrderedDict{Symbol,Float
80638063
if needs_ss_setup
80648064
if verbose println("All parameters now provided. Setting up non-stochastic steady state problem...") end
80658065

8066-
# Clear the cache again before calling solve_steady_state! to ensure clean state
8067-
while length(𝓂.NSSS_solver_cache) > 0
8068-
pop!(𝓂.NSSS_solver_cache)
8069-
end
8070-
80718066
# Call solve_steady_state! to create SS_solve_func with the correct parameter order
8067+
# Note: solve_steady_state! will initialize NSSS_solver_cache with correct parameter count
80728068
solve_steady_state!(𝓂, verbose = verbose)
80738069

80748070
# Also setup OBC violation function

0 commit comments

Comments
 (0)