function [sz,ndofs,data,name,type]=mphgetp(m,varargin)
% MPHGETP Obtain information about a solution
% 
%   [SZ,NDOFS,DATA,NAME,TYPE] = MPHGETP(MODEL) returns information about
%   the default solution dataset.
%
%   [SZ,NDOFS,DATA,NAME,TYPE] = MPHGETP(MODEL,'SOLNAME',SOL) returns 
%   information about the solution dataset SOL.
% 
%   SZ contains the size of the solution vector and the number of solutions.
%   NDOFS contains the number of degrees of freedom.
%   DATA contains the values of the parameters, for a parametric solution, 
%   the output times for a transient solution or eigenvalues for an 
%   eigenvalue solution. 
%   NAME contains the name of the parameters, time or eigenvalue variable. 
% 
%   Valid properties include:
%   Property       Value/{Default}      Description
%   -----------------------------------------------------------------------
%   Solname        String {''}          Solver node tag
%   Studysteptag   String {''}          Study Step tag
% 
%   The study step tag must be the tag of a node of type StudyStep (Compile 
%   Equations) or Variables.
%   The Solname property set the solution data set to use associated with 
%   the defined solver node.
% 
%   Example:
%     % Load stresses_in_pulley.mph from the Model Library:
%     model=mphload('stresses_in_pulley.mph');
%     [sz,ndofs,list,name,type]=mphgetp(model);
%     % Get the size and degrees of freedom for the variables for sol1:
%     [sz,ndofs]=mphgetp(model,'solname','sol1','studysteptag','v1');
%     % Get the solution information for the second solution dataset:
%     [sz,ndofs,list,name,type]=mphgetp(model,'solname','sol2');
% 
%   See also: mphgetu

% Copyright 2010-2011 COMSOL
