annotate stuffStruct.m @ 969:adae8063ea2f feature/poroelastic

Remove silly getBoundaryOperator* methods in multiblock.DiffOp and make the getBoundaryOperator and getBoundaryQuadrature methods use the scheme.getBoundaryOperator/Quadrature methods instead of properties.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 25 Dec 2018 07:21:19 +0100
parents 7ea4b6de59d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
893
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 function s = stuffStruct(varargin)
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 s = struct();
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
4 for i = 1:nargin
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
5 assert(~isempty(inputname(i)), 'All inputs must be variables.');
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
6 s.(inputname(i)) = varargin{i};
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
7 end
7ea4b6de59d9 Add a stuffStruct(), the reverse of dealStruct()
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
8 end