Index: /issm/trunk/src/m/classes/@dofvec/display.m
===================================================================
--- /issm/trunk/src/m/classes/@dofvec/display.m	(revision 2315)
+++ /issm/trunk/src/m/classes/@dofvec/display.m	(revision 2315)
@@ -0,0 +1,16 @@
+function display(dofvec)
+%DISPLAY - displays the fields of an dofvec 
+%
+%   echo function for 'dofvec' class
+
+disp(sprintf('\n%s = \n',inputname(1)));
+disp(sprintf('   name:      ''%s''',dofvec.name));
+disp(sprintf('   numdof:     %i',dofvec.numdof));
+disp(sprintf('   numentries: %i',dofvec.numentries));
+disp(sprintf('%s\n','   vector = '));
+for i=1:dofvec.numentries,
+	for j=1:dofvec.numdof,
+		disp(sprintf('            %i|%i|%g',i,j,dofvec.vector(i)));
+	end
+end
+disp(sprintf('%s\n',''));
Index: /issm/trunk/src/m/classes/@dofvec/dofvec.m
===================================================================
--- /issm/trunk/src/m/classes/@dofvec/dofvec.m	(revision 2315)
+++ /issm/trunk/src/m/classes/@dofvec/dofvec.m	(revision 2315)
@@ -0,0 +1,27 @@
+function object = dofvec(varargin)
+%ICEFRONT - constructor for dofvec object
+%
+%   Usage:
+%      dofvec = dofvec(varargin)
+
+switch nargin
+case 0
+	% if no input arguments, create a default object
+	object.name='';
+	object.numdof=1;
+	object.numentries=0;
+	object.vector=zeros(0,1);
+	object=class(object,'dofvec');
+case 1
+	%If single argument of class dofvec, we have a copy constructor. 
+	if (isa(varargin{1},'dofvec'))
+		object = varargin{1};
+	elseif ischar(varargin{1}),
+		object= dofvec;
+		object.name=varargin{1};
+	else 
+		error('dofvec constructor error message: unknown type of constructor call');
+	end 
+otherwise
+	error('dofvec constructor error message: unknown type of constructor call');
+end
Index: /issm/trunk/src/m/classes/@dofvec/subsasgn.m
===================================================================
--- /issm/trunk/src/m/classes/@dofvec/subsasgn.m	(revision 2315)
+++ /issm/trunk/src/m/classes/@dofvec/subsasgn.m	(revision 2315)
@@ -0,0 +1,12 @@
+function icefront = subsasgn(icefront,index,val)
+%SUBSASGN - handles indexed assignments to objects
+%
+%   the first argument is the object, the second argument a structure array
+%   the third one is the value
+%
+%   Usage:
+%      icefront = subsasgn(icefront,index,val)
+%
+%   See also SUBSREF
+
+icefront=builtin('subsasgn',icefront,index,val);
Index: /issm/trunk/src/m/classes/@dofvec/subsref.m
===================================================================
--- /issm/trunk/src/m/classes/@dofvec/subsref.m	(revision 2315)
+++ /issm/trunk/src/m/classes/@dofvec/subsref.m	(revision 2315)
@@ -0,0 +1,10 @@
+function icefront = subsref(icefront,index)
+%SUBSREF - handles indexed references to objects
+%
+%   the first argument is the object and the second one a structure array
+%   Usage:
+%      icefront = subsref(icefront,index)
+% 
+%   See also SUBSASGN
+
+icefront=builtin('subsref',icefront,index);
