% Program to create a binary file to contain parameters
% and get the default parameters
% for matlab program:                 main_consi
% *************************************************************
%
% - if input argument list is empty:
%      get the defaults as output parameters!
% - if there is ONE dummy input argument:
%      write the binary parameter file BEFORE the matlab 
%      programs will be installed !!!
% *************************************************************
% 
% Name:               init_para_mainconsi
%                     -------------------
% Stand:              26.6.03/sw
%
% creates the
% binary file:        parameter_mainconsi.mat   
% original
% parameters are:    
%                     threshold=1e-9   (threshold for rank determination)
%                     ep=1e-13         (accuracy of Newton method)
%                     given_index=-1;
%                     s_Bt=0           switch for dependency of t
%                     s_Dt=0           and calculation
%                     s_ft=0           
%                                       
% -----------------------------------------------------------------------
function [threshold,ep,given_index,s_Bt,s_Dt,s_ft]...
        = init_para_mainconsi(varargin)

threshold=1e-9;
ep=1e-13;
given_index=-1;
s_Bt=0;
s_Dt=0;
s_ft=0;

% Save the parameters to a binary file (if varargin contains any dummy
% variable).
% Attention: The "save" command MUST quote the parameter names explicitly!
% ---------- Otherwise "varargin" would be stored,too. This will lead to 
%            errors when a calling program is also using varargin!!!
%
if(nargin >0 ) 
    save parameter_mainconsi ...
      threshold ep given_index s_Bt s_Dt s_ft;
end;


