Skip to content

Commit

Permalink
run body.checkInputs for each wave typeNum for multi waves apps
Browse files Browse the repository at this point in the history
  • Loading branch information
dforbush2 committed Sep 17, 2024
1 parent 4399079 commit 32b2c08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/functions/initializeWecSim.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@
dragBodLogic = zeros(length(body(1,:)),1);
for ii = 1:length(body(1,:))
body(ii).setNumber(ii);
body(ii).checkInputs(simu.explorer, simu.stateSpace, simu.FIR, waves.typeNum);
for kk=1:length(waves)
body(ii).checkInputs(simu.explorer, simu.stateSpace, simu.FIR, waves(kk).typeNum);
end
if body(ii).nonHydro==0
if numNonHydroBodies > 0 || numDragBodies > 0
error('All hydro bodies must be specified before any drag or non-hydro bodies.')
Expand Down

0 comments on commit 32b2c08

Please sign in to comment.