Skip to content

Commit

Permalink
Update utilities/Make_f15.m
Browse files Browse the repository at this point in the history
- Fix for empty bd
  • Loading branch information
WPringle committed Dec 12, 2018
1 parent 978967e commit d56dd72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utilities/Make_f15.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@
% Normal flow external boundary condition (needs to be fixed)
ibtype = [2 12 22 32 52] ;
sm = 0 ;
for k = 1: length(ibtype)
sm = sm + sum(~(obj.bd.ibtype - ibtype(k))) ;
if ~isempty(obj.bd)
for k = 1: length(ibtype)
sm = sm + sum(~(obj.bd.ibtype - ibtype(k))) ;
end
end
if ( sm > 0 )
f15dat.nffr = 0 ;
Expand Down

0 comments on commit d56dd72

Please sign in to comment.