view assertNumberOfArguments.m @ 1202:31d7288d0653 feature/poroelastic

Make Anisotropic work for mixed displacement/traction BC at the same boundary.
author Martin Almquist <malmquist@stanford.edu>
date Thu, 05 Sep 2019 16:41:49 -0700
parents 2dee6c9e827d
children
line wrap: on
line source

function assertNumberOfArguments(fun, N)
    if nargin(fun) ~= N
        error('sbplib:assertNumberOfArguments:wrongNumberOfArguments', '"%s" must have %d, found %d', inputname(1), N, nargin(fun));
    end
end