Skip to content

Commit

Permalink
fix a bug in pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Weibo committed Nov 12, 2024
1 parent 5cf1867 commit 3ab5a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def pod_eigspectrum(Percent, eigval):
EnergyFrac = eigval/np.sum(eigval)*100
EnergyCumulation = np.cumsum(EnergyFrac)
index = np.where(EnergyCumulation >= Percent)
num = np.size(eigval) - np.size(index[0]) + 1
num = np.size(index[0]) + 1
#NewFlow = inner1d(coeff[:,:num], phi[:,:num])
return EnergyFrac, EnergyCumulation, num#NewFlow

Expand Down

0 comments on commit 3ab5a7d

Please sign in to comment.