Skip to content

Commit

Permalink
remove g
Browse files Browse the repository at this point in the history
  • Loading branch information
jtgrasb committed Oct 26, 2023
1 parent 4d83240 commit f9ff5a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wecopttool/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,9 +2124,9 @@ def run_bem(
wec_im = fb.copy(name=f"{fb.name}_immersed").keep_immersed_part()
wec_im = set_fb_centers(wec_im, rho=rho)
if not hasattr(wec_im, 'inertia_matrix'):
wec_im.inertia_matrix = wec_im.compute_rigid_body_inertia(rho=rho, g=g)
wec_im.inertia_matrix = wec_im.compute_rigid_body_inertia(rho=rho)
if not hasattr(wec_im, 'hydrostatic_stiffness'):
wec_im.hydrostatic_stiffness = wec_im.compute_hydrostatic_stiffness(rho=rho, g=g)
wec_im.hydrostatic_stiffness = wec_im.compute_hydrostatic_stiffness(rho=rho)
bem_data = solver.fill_dataset(
test_matrix, wec_im, n_jobs=njobs, **write_info)
return change_bem_convention(bem_data)
Expand Down Expand Up @@ -2363,6 +2363,8 @@ def subset_close(
'selecting closest match.')
ind.append(np.argmin(np.abs(a_in_b - el)))
subset = len(set_a) == len(ind)
ind = ind if subset else []
return subset, ind


def scale_dofs(scale_list: Iterable[float], ncomponents: int) -> ndarray:
Expand Down

0 comments on commit f9ff5a0

Please sign in to comment.