fix gravity vector
@@ -1210,9 +1210,9 @@ def xbeam_step_coupledrigid(beam, settings, ts, tstep=None, dt=None):
xbopts.gravity_on = settings['gravity_on']
xbopts.gravity = settings['gravity']
xbopts.balancing = settings['balancing']
- xbopts.gravity_dir_x = ct.c_double(tstep.gravity_vector_inertial[0])
- xbopts.gravity_dir_y = ct.c_double(tstep.gravity_vector_inertial[1])
- xbopts.gravity_dir_z = ct.c_double(tstep.gravity_vector_inertial[2])
+ xbopts.gravity_dir_x = ct.c_double(settings['gravity_dir'][0])
+ xbopts.gravity_dir_y = ct.c_double(settings['gravity_dir'][1])
+ xbopts.gravity_dir_z = ct.c_double(settings['gravity_dir'][2])
xbopts.relaxation_factor = settings['relaxation_factor']
if dt is None:
