Forces calculator fixed, defaults to empty
@@ -68,7 +68,7 @@ class AeroForcesSteadyCalculator(BaseSolver):
try:
self.settings['beams'] = np.fromstring(self.settings['beams'], sep=',', dtype=ct.c_double)
except KeyError:
- self.settings['beams'] = [0]
+ self.settings['beams'] = []
def calculate_forces(self):
# dynamic_pressure = (0.5*self.data.flightconditions['FlightCon']['rho_inf']*
@@ -83,7 +83,8 @@ class AeroForcesSteadyCalculator(BaseSolver):
total_force = np.zeros((3,))
n_surf = len(force)
for i_surf in range(n_surf):
- if i_surf not in self.settings['beams']:
+ if self.settings['beams'] is not []:
+ if i_surf not in self.settings:
continue
_, n_rows, n_cols = force[i_surf].shape
for i_m in range(n_rows):
