Skip to content

Commit 35e3195

Browse files
committed
250803.081701.CST [skip ci] revise profile_npt.yml
1 parent 479efd7 commit 35e3195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/profile_npt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
run: |
142142
# The following modification is to show x, fx, funx, etc when the error InvalidFX occurs.
143143
cd matlab/interfaces/private
144-
sed -i "s|error(sprintf('%s:InvalidFx', invoker)|format long; x, fx, funx, abs(fx-funx)/max(1, abs(fx)), bobyqa_prec, cobyla_prec\nerror(sprintf('%s:InvalidFx', invoker)|" postprima.m
144+
sed -i "s|\(^\s*if ~(isnan(fx) && isnan(funx))\)|format long; x, fx, funx, abs(fx-funx)/max(1, abs(fx)), bobyqa_prec, cobyla_prec\n\1|" postprima.m
145145
cat postprima.m
146146
147147
- name: Conduct the test

0 commit comments

Comments
 (0)