0001 function icefront = icefront(varargin)
0002
0003
0004
0005
0006
0007 switch nargin
0008 case 0
0009
0010 icefront.eid=NaN;
0011 icefront.g=zeros(4,1);
0012 icefront.rho_water=NaN;
0013 icefront.type='segment';
0014 icefront=class(icefront,'icefront');
0015 case 1
0016
0017 if (isa(varargin{1},'icefront'))
0018 icefront = varargin{1};
0019 else
0020 error('icefront constructor error message: copy constructor called on a non ''icefront'' class object');
0021 end
0022 otherwise
0023 error('icefront constructor error message: 0 of 1 argument only in input.');
0024 end