Skip to content

Commit

Permalink
Update fun3d mesh for distributed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kejacobson committed Jun 23, 2021
1 parent da863f8 commit 672e898
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mphys/mphys_fun3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ class Fun3dMesh(om.IndepVarComp):
def initialize(self):
self.options.declare('meshdef_solver')
self.options.declare('boundary_tag_list')
self.options['distributed'] = True

def setup(self):
boundary_tag_list = self.options['boundary_tag_list']
meshdef = self.options['meshdef_solver']
x_aero0 = meshdef.get_boundary_node_coordinates(boundary_tag_list, owned_only = True, concatenate=True)
self.add_output('x_aero0', val=x_aero0.flatten(), desc='initial aerodynamic surface node coordinates',
self.add_output('x_aero0', distributed=True, val=x_aero0.flatten(), desc='initial aerodynamic surface node coordinates',
tags=['mphys_coordinates'])

class Fun3dFsiSolverGroup(om.Group):
Expand Down

0 comments on commit 672e898

Please sign in to comment.