Mercurial > repos > public > sbplib
comparison +scheme/bcSetup.m @ 897:ba7e442ea639
Fix bug in bcSetup
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 22 Nov 2018 10:43:48 +0100 |
parents | 006defd0247b |
children | b45a6dcb61ac |
comparison
equal
deleted
inserted
replaced
896:09c5fbc783d3 | 897:ba7e442ea639 |
---|---|
76 | 76 |
77 dim = size(b,2); | 77 dim = size(b,2); |
78 | 78 |
79 if nargin(bcs{i}.data) == 1 | 79 if nargin(bcs{i}.data) == 1 |
80 % Grid data (only function of time) | 80 % Grid data (only function of time) |
81 assertSize(bcs{i}.data(0), 1, size(b)); | 81 assertSize(bcs{i}.data(0), 1, size(b,1)); |
82 elseif nargin(bcs{i}.data) ~= 1+dim | 82 elseif nargin(bcs{i}.data) ~= 1+dim |
83 error('sbplib:scheme:bcSetup:DataWrongNumberOfArguments', 'bcs{%d}.data has the wrong number of input arguments. Must be either only time or time and space.', i); | 83 error('sbplib:scheme:bcSetup:DataWrongNumberOfArguments', 'bcs{%d}.data has the wrong number of input arguments. Must be either only time or time and space.', i); |
84 end | 84 end |
85 end | 85 end |
86 end | 86 end |
105 dataStruct.coords = num2cell(coord, 1); | 105 dataStruct.coords = num2cell(coord, 1); |
106 else | 106 else |
107 % Grid data | 107 % Grid data |
108 isSymbolic = false; | 108 isSymbolic = false; |
109 dataStruct.penalty = penalty; | 109 dataStruct.penalty = penalty; |
110 dataStruct.func = bcs{i}.data; | 110 dataStruct.func = bc.data; |
111 end | 111 end |
112 end | 112 end |