Skip to content

Commit

Permalink
Update writefort15.m
Browse files Browse the repository at this point in the history
- fix for no open boundary conditions
  • Loading branch information
WPringle committed Feb 7, 2019
1 parent fe78650 commit bec4881
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions @msh/private/writefort15.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@
ibtype = [2 12 22 32 52] ;
sm = 0 ;

for k = 1: length(ibtype)
sm = sm + sum(~(boudat.ibtype - ibtype(k))) ;
if ~isempty(boudat)
for k = 1: length(ibtype)
sm = sm + sum(~(boudat.ibtype - ibtype(k))) ;
end
end
if ( sm > 0 )
fprintf( fid, '%d \t \t ! NFFR \n', f15dat.nffr ) ;
Expand Down

0 comments on commit bec4881

Please sign in to comment.