Skip to content

Commit

Permalink
Remove X_local from global update
Browse files Browse the repository at this point in the history
Do in-place matrix multiplaction
  • Loading branch information
dafeda committed Dec 16, 2023
1 parent e4230ff commit 1c0a627
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ert/analysis/_es_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,11 +602,8 @@ def analysis_ES(
temp_storage[param_group.name][active_indices, :] = X_local @ T

else:
# The batch of parameters
X_local = temp_storage[param_group.name]

# Update manually using global transition matrix T
temp_storage[param_group.name] = X_local @ T
temp_storage[param_group.name] @= T

progress_callback(
AnalysisStatusEvent(msg=f"Storing data for {param_group.name}..")
Expand Down

0 comments on commit 1c0a627

Please sign in to comment.