Skip to content

Commit e9e424f

Browse files
Update optimization_manager.py
1 parent fada54e commit e9e424f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

funtofem/optimization/optimization_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def _gatekeeper(self, x_dict):
168168
f"Warning: d{func_key}/d{var_key} = {c_sens[var_key]} and has a nan"
169169
)
170170
fail = True
171-
# if fail:
172-
# break
171+
if fail:
172+
return fail
173173

174174
# write the new function values
175175
if self.comm.rank == 0 and self.write_designs:

0 commit comments

Comments
 (0)