Skip to content

Commit 2b837e9

Browse files
committed
Fix logic for non-remote pat
1 parent 70cee77 commit 2b837e9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

funtofem/driver/funtofem_shape_driver.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -364,16 +364,16 @@ def solve_forward(self):
364364
root=0,
365365
)
366366

367-
if not (self.is_remote) and self.change_shape:
368-
# case where analysis script does the meshing and the remote does not.
369-
# need to read new shape variable values before doing the meshing
370-
self.model.read_design_variables_file(
371-
self.comm,
372-
filename=Remote.paths(self.comm, self.flow_dir).design_file,
373-
root=0,
374-
)
375-
376367
if not (self.is_remote) and self.is_paired:
368+
if self.change_shape:
369+
# case where analysis script does the meshing and the remote does not.
370+
# need to read new shape variable values before doing the meshing
371+
self.model.read_design_variables_file(
372+
self.comm,
373+
filename=Remote.paths(self.comm, self.flow_dir).design_file,
374+
root=0,
375+
)
376+
377377
# remove the _functions_file so remote will fail
378378
if self.comm.rank == 0:
379379
analysis_functions_file = Remote.paths(

0 commit comments

Comments
 (0)