#------------------------------------------------------------------------
#
 This Readme file maps the relationships among all C-files that contribute
 to the executable ng3dvar.
 Note that the Makefile compiles the main driver (ng3dvar_dr.c), but
 the resultant executable is named ng3dvar.
#
#---------------------------------------------------------------------
Executable = ng3dvar 
#
#---------------------------------------------------------------------
#
#
 ng3dvar_dr.c --main driver. 
    Description: 
                 It Implements a Constrained Minimization (Penalty Method) 
                 using the unconstrained CG Algorithm of Stephen Nash.
    Provides: 
              ng3dvar; note the that ng3dvar is the executable 
                       program resulting from the compilation of 
                       ng3dvar_dr.c, so this is file contains the
                       main function.
    Requires: 
v             Dgetbuff          provided by cgm_util.c
v             gpe               provided by cgm_util.c 
v             mc_L1norm         provided by ng3dvar_tf_mcr_cc.c
v             scmc_L1norm       provided by ng3dvar_tf_mcr_sc.c
v             ScaleTF           provided by ng3dvar_tf_ifce.c
v             RadMissFit_L2norm provided by ng3dvar_tf_ifce.c
v             BGFit_L2norm      provided by ng3dvar_tf_ifce.c
v             calcfg            provided by ng3dvar_tf_ifce.c
v             fun_ws2f          provided by ng3dvar_dr_os.c
v             SetInitalSol      provided by ng3dvar_dr_is.c
v             fun_cgeta         provided by ng3dvar_dr_clp.c
v             SetRDInfo         provided by ng3dvar_tf_ngrad.c
v             SetBGFdata        provided by ng3dvar_tf_bgf.c
v             fun_writeModel    provided by ng3dvar_tf_bgf.c (for testing purposes only)
v             SetfunInfo        provided by ng3dvar_tf_info.c
v             cg_CONMINc        provided by cgm_conmin.c

 ng3dvar_dr_clp.c 
     Description: 
               Implements the function to get Command Line Parameters
     Provides: 
v              fun_cgeta // Replaces CheckCLP
v              CheckCLP  //No longer used
     Requires: 
v              fun_Stop       provided by cgm_util.c

 ng3dvar_dr_is.c 
    Description: 
              Prepares the Initial Solution. 
    Provides: 
v             SetInitalSol
    Requires: 
v             Fgetbuff       provided by cgm_util.c
v             OpenFileR      provided by cgm_util.c
v             fun_Stop       provided by cgm_util.c

 ng3dvar_dr_os.c 
    Description: 
              Prepares the Solution for output.
    Provides: 
v             fun_ws2f
    Requires: 
v             Fgetbuff       provided by cgm_util.c
v             OpenFileW      provided by cgm_util.c

 cgm_conmin.c 
   Description:
            Implements the C version of the Conjugate Gradient Minimization
            algorithm by Shanno and Phua.
   Provides:
v            cg_CONMINc
   Requires: Nothing

 cgm_util.c 
   Description: 
            Implements general purpose utility functions that
            are used by both the Conjugate-Gradient  Minimization Algorithm,
            the initialization routines, as well as the evaluation of 
            the target function.
   Provides: 
v            Dgetbuff
v            Fgetbuff
v            Igetbuff 
v            gp
v            gpe 
v            OpenFileR
v            OpenFileW
v            stop
v            fun_Stop
v            FieldNorm2
v            CheckVector
   Requires: Nothing

#
#Below are files with the functions that make up the Target Function 
#

 ng3dvar_tf_ifce.c
   Description:
             Implements the target function to be minimized.
   Provides: 
v            calcfg
v            ScaleTF
v            MC_L2norm
v            RadMissFit_L2norm
v            Lap_L2norm
v            BGFit_L2norm
   Requires: 
v            FieldNorm2     provided by cgm_util.c
v            if_ngrad       provided by ng3dvar_tf_ngrad.c
v            Fmc            provided by ng3dvar_tf_mcr_cc.c
v            FmcSC          provided by ng3dvar_tf_mcr_sc.c
v            Flap           provided by ng3dvar_tf_smootht.c
v            Fbgf           provided by ng3dvar_tf_bgf.c


 ng3dvar_tf_info.c 
   Description:
            Implements functions to gather the information required 
            to evaluate the target function.
   Provides: 
v            SetfunInfo
v            CheckFINFO
   Requires: 
v            Dgetbuff    provided by cgm_util.c
v            Fgetbuff    provided by cgm_util.c
v            fun_rho     provided by ng3dvar_tf_ngrad.c
v            fun_wpTVZ   provided by ng3dvar_tf_ngrad.c

 wtcalc.c 
    Description:
             Calculates particle terminal velocity from height 
             and reflectivity. 
    Provides: 
v             wtcalc
    Requires: nothing

 ng3dvar_tf_mcr_cc.c 
    Description:
             Calculates the  Mass-Continuity Residual in Cartesian 
             Coordinates.
    Provides: 
v             Fmc
v             mc_L1norm
v             fun_mf
    Requires: 
v             gpe  provided by cgm_util.c
v             gp   provided by cgm_util.c
 ng3dvar_tf_mcr_sc.c
   Description:
            Calculates the Mass-Continuity Residual in Spherical 
            Coordinates.    
   Provides: 
v            FmcSC
v            scmc_L1norm
   Requires: 
v            gpe    provided by cgm_util.c

 ng3dvar_tf_ngrad.c 
   Description:
            Generates the contribution from radar data to the 
            target function. 
   Provides: 
v            if_ngrad
v            SetRDInfo
v            fun_wpTVZ
v            fun_rho
v            CheckRHOS
   Requires: 
v            Fgetbuff  provided by cgm_util.c
v            OpenFileW provided by cgm_util.c

 ng3dvar_tf_smootht.c 
   Description:
            Generates the contribution of the smoothing term for the 
            target function.
   Provides: 
v            Flap
   Requires: 
v            gpe     provided by cgm_util.c
   
 ng3dvar_tf_bgf.c
   Description: 
             Generates the contribution from the background field 
             data to the target function.
   Provides: 
v            Fbgf
v            SetBGFdata
v            fun_writeModel (for Testing only)
   Requires: 
v            Fgetbuff    provided by cgm_util.c
v            OpenFileW   provided by cgm_util.c
#
