Skip to content
Snippets Groups Projects
Verified Commit a108309f authored by Marco Ratto's avatar Marco Ratto Committed by Sébastien Villemot
Browse files

fixed bug in sampling in the neighborhood of a critical point

(cherry picked from commit 22795298)
parent 10ceb6aa
Branches
Tags
No related merge requests found
Checking pipeline status
......@@ -273,7 +273,7 @@ if fload==0
for j=1:np
ub=xparam1(j+nshock)*(1+sign(xparam1(j+nshock))*neighborhood_width);
lb=xparam1(j+nshock)*(1-sign(xparam1(j+nshock))*neighborhood_width);
if bounds.ub(j+nshock)>=xparam1(j) && bounds.lb(j)<=xparam1(j+nshock)
if bounds.ub(j+nshock)>=xparam1(j+nshock) && bounds.lb(j+nshock)<=xparam1(j+nshock)
ub=min([bounds.ub(j+nshock) ub]);
lb=max([bounds.lb(j+nshock) lb]);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment