function [HDP] = newInputs_HD_v2_00_05(HDPar)
% [HDP] = newInputs_HD_v2_00_03(HDPar)
% HDP is the data structure containing already-filled parameters for
% HydroDyn. We're going to add existing fields and based on the old ones.

    HDP = HDPar;
    
    
     
    n = length(HDP.Label);

    [NAxCoef, err1] = GetFASTPar(HDP,'NAxCoef');    
    if err1
      [NAxCoef, err1] = GetFASTPar(HDP,'NHvCoef');    
      if ~err1
        n = n + 1;
        HDP.Label{n} = 'NAxCoef';
        HDP.Val{n}   = NAxCoef;
        HDP.AxCoefsHdr    = HDP.HvCoefsHdr;
        HDP.AxCoefsHdr{1} = 'AxCoefID';
        HDP.AxCoefsHdr{2} = 'AxCd';
        HDP.AxCoefsHdr{3} = 'AxCa';
        HDP.AxCoefs       = HDP.HvCoefs;
      end
    end
    
    if length(HDP.AxCoefsHdr) < 4
      % v2.00.03 specification
      HDP.AxCoefsHdr{4} = 'AxCp';       
      for i=1:NAxCoef
         HDP.AxCoefs(i,4) = 1.0;     
      end
    end
    
      % Change header labels for Joint table per v2.00.03 specification
    HDP.JointsHdr{2}   = 'Jointxi';
    HDP.JointsHdr{3}   = 'Jointyi';
    HDP.JointsHdr{4}   = 'Jointzi';
    HDP.JointsHdr{5}   = 'JointAxID';
    
    if length(HDP.SmplPropHdr) < 5
      % v2.00.03 specification
      HDP.SmplPropHdr{5}= 'SimplCp';
      HDP.SmplPropHdr{6}= 'SimplCpMG';
      HDP.SmplProp(5)   = 1.0;
      HDP.SmplProp(6)   = 1.0;
    end
    if length(HDP.SmplPropHdr) < 7 
      % v2.00.05 specification
      HDP.SmplPropHdr{7}= 'SimplAxCa';
      HDP.SmplPropHdr{8}= 'SimplAxCaMG';
      HDP.SmplPropHdr{9}= 'SimplAxCp';
      HDP.SmplPropHdr{10}= 'SimplAxCpMG';
      HDP.SmplProp(7:10)   = 1.0;
    end
    
    if length(HDP.DpthPropHdr) < 6
      HDP.DpthPropHdr{6}     = 'DpthCp';
      HDP.DpthPropHdr{7}     = 'DpthCpMG';
      HDP.DpthProp(1:size(HDP.DpthProp,1),6:7)     = 1.0;     
    end
    
    if length(HDP.DpthPropHdr) < 8
      HDP.DpthPropHdr{8}     = 'DpthAxCa';
      HDP.DpthPropHdr{9}     = 'DpthAxCaMG';
      HDP.DpthPropHdr{10}    = 'DpthAxCp';
      HDP.DpthPropHdr{11}    = 'DpthAxCpMG';
      HDP.DpthProp(1:size(HDP.DpthProp,1),8:11)     = 1.0;
    end
    
    if length(HDP.MemberPropHdr) < 10
      HDP.MemberPropHdr{10}     = 'MemberCp1';
      HDP.MemberPropHdr{11}     = 'MemberCp2';
      HDP.MemberPropHdr{12}     = 'MemberCpMG1';
      HDP.MemberPropHdr{13}     = 'MemberCpMG2';
      HDP.MemberProp(1:size(HDP.MemberProp,1),10:13)     = 1.0;       
    end
    
    if length(HDP.MemberPropHdr) < 14
      HDP.MemberPropHdr{14}     = 'MemberAxCa1';
      HDP.MemberPropHdr{15}     = 'MemberAxCa2';
      HDP.MemberPropHdr{16}     = 'MemberAxCaMG1';
      HDP.MemberPropHdr{17}     = 'MemberAxCaMG2';
      HDP.MemberPropHdr{18}     = 'MemberAxCp1';
      HDP.MemberPropHdr{19}     = 'MemberAxCp2';
      HDP.MemberPropHdr{20}     = 'MemberAxCpMG1';
      HDP.MemberPropHdr{21}     = 'MemberAxCpMG2';
      HDP.MemberProp(1:size(HDP.MemberProp,1),14:21)     = 1.0;       
    end
    
    if ~isfield(HDP,'OutList')
      if isfield(HDP,'PtfmOutList')  && isfield(HDP,'MeshOutList') 
         HDP.OutList = [HDP.PtfmOutList; HDP.MeshOutList];
         HDP.OutListComments = [HDP.PtfmOutListComments; HDP.MeshOutListComments];
      elseif isfield(HDP,'PtfmOutList') 
         HDP.OutList = HDP.PtfmOutList;
         HDP.OutListComments = HDP.PtfmOutListComments;
      elseif isfield(HDP,'MeshOutList')
         HDP.OutList = HDP.MeshOutList;
         HDP.OutListComments = HDP.MeshOutListComments;
      end
    end
    
end 