Changes by Roj to SAM version 6.10.2. Spring 2012 -- Major Changes 1) Variables "nz" and "nzm" no longer exists. They have been replaced with variables "nzm_used", "nzm_max", "nz_used", and "nz_max". See Roj_6.10.2_AZG.pdf for further details. 2) Added new files / subroutines: adapt_vertical_grid.f90, inzert_z_level.f90, and remove_z_level.f90 2) grid.f90 - added several new variables, all starting with "AZG_". Several of these variables are "parameters" than can be specified via the "prm" files. "restart.f90" has been modified to save and restore these parameters. 3) Modified setdata.f90 to allow for "Initial adapation" (increase in number of layers / decrease in layer width) where liquid water starts. To used set parameter AZG_initial_adapt_dz to a value greater than 0. I have only test a value of 25. 4) Modified statistics.f90 to call subroutine sgs_statistics (Marat seems to have forgotten this bit). 5) Also added code to statistics(), sgs_statistics(), and micro_statistics() used to track averages of "AZG_" variables over "AZG_nstep" steps. 6) Additional UTIL program "stat2nc_azg" added. Program has three files "stat2nc_azg.f", "hbuf_lib_azg.f" and "hbuf_azg.inc" all in UTIL/SRC directory. Makefile in UTIL directory modified accordingly (works on my system, you may need to alter). The original Makefile is stored as Makefile.org 7) Added subroutine task_bcast_integer to "task_UTIL_MPI.f90" and "task_UTIL_NOMPI.f90". It was already in "task_util_MPI.f90.dble". 8) RRTM set kind_im to 8 byte integer. Needed for my system, perhaps you will want to set it back ?? -- MINOR changes 1) in "Build", changed "gnumake " to "make". Original file is Build.org 2) Alterned Makefile for my system. Original Makefile is now Makefile.org 3) MICRO_M2005/microphysics.f90 line 303 references non-existant and referenced to external "satadj_water". Commented out. 4) ASTEX209 now contains "prm" file for AZG style run, a few different initial "grd" files that I used, and results of some runs. Original prm and grd files not prm.org and grd.org. 5) DYCOMS prm file altered. (The one distributed with 6.10.2 doesn't work, by the way). 6) Generally choose to set fminmax_print over the range nzm_max, to help detect bad values leaking into the space above nzm_used. But might want to switch back at some point. 7) I found some minor problems with the MISR/MODIS/ISCCP Simulators, which I haven't fully tracked down of fixed. I intend to upgrade this section of code at a later time.