Skip to content
Success

Changes

Summary

  1. For other:ticket:362, adding our current license agreement to the source code. (details)
  2. For clubb:ticket:740, I added `l_rcm_in_cloud_k_lh_start` and `l_random_k_lh_start` to the microphysics namelist for experimentation. (details)
  3. I made the changes necessary to get 2D output working. (details)
  4. I patched a memory leak related to clubb:ticket:740. (details)
  5. For clubb:ticket:740, I implemented an algorithm to limit the sample point weights to a prescribed maximum. The algorithm ended up being a bit more convoluted that I originally thought it would, but it works! (details)
  6. For clubb:ticket:740, I am adding an output, "rrm_mc_nonadj", that contains the value of the tendenc (details)
  7. For clubb:ticket:740, I added `prob_thresh` to the microphysics namelist as `importance_prob_thresh` in preparation of finalizing a configuration for the paper. (details)
  8. For clubb:tickets:770, I am merging my branch into the trunk. This code includes a 3D_Luhar pdf closure and is provided 'as is' and without warranty. (details)
  9. For clubb:ticket:740, I generalized the clustering code to handle different numbers of categories in each cluster. (details)
  10. I am committing, into a feature branch (because I hear they are the hot new thing), some untested code that proportionally allocates categories only in the cloud or precipitation regions. (details)
  11. For clubb:ticket:770, cleaning up some compiler warnings. In the process, found a bug where Skrt_zm was not being computed. I deleted diagnose_xp3_module since it is unfinished and unused. If we want to add a third order moment for interactive runs, the Ticket_770 branch has diagnose_xp3_module.F90 for one to continue work on. (details)
  12. I renamed `new_scheme` to `two_cluster_cp_nocp`. (details)
  13. A small bug fix for an assertion check was committed herein. (details)
  14. For clubb:ticket:770, the Oracle compiler was throwing a floating point exception here. wpxp2 and xp2 were being fed in as Nans. (details)
  15. For clubb:ticket:740, I am making some changes to the importance sampling code to support zero prescribed probability in a cluster. (details)
  16. For clubb:ticket:740, I changed some SILHS parameters and added others to the namelist so they can be changed at runtime. At this point, the configuration of SILHS to be used in the paper can be enabled without editing any source code. (details)
  17. The new file calc_roots.F90 contains functions that solve for the roots of a (details)
  18. I added a comment. (details)
  19. For clubb:ticket:740, I implemented the algorithm to prescribe `f_j` (called the "variance fraction" in the code) rather than `S_j` (called the "prescribed probability" in the code). The algorithm ended up being short and elegant because transferrence is not required when prescribing `f_j`. (When prescribing `f_j`, `p_j = 0` implies `S_j = 0`, so transferrence is not needed.) (details)
  20. For clubb:ticket:740, I added `l_lh_var_frac` to the namelist. (details)
  21. For clubb:ticket:740, I am handling the scariest divide-by-zero situation you've ever seen, just in case. (details)
  22. I tweaked the precipitation fraction code so that the weighted ith PDF component (details)
  23. For clubb:ticket:740, I had, in an earlier commit, left out a block of code that should be there. Now it is there. (details)
  24. I moved the subroutine `determine_sample_categories` to the module `silhs_importance_sample_module` to make it available to modules within the `SILHS` subfolder. (details)
  25. For clubb:ticket:740, I added an output for the "sampling fractions" in each category, which are the SILHS approximations of S_j. (details)
  26. For clubb:ticket:740, I added an output for the "sampling fractions" in each category, which are the SILHS approximations of S_j. (details)
  27. I have discovered a better way to do the assertion check for consistency between `chi_i`, `stdev_chi_i`, and `cloud_frac_i`. (details)
  28. For clubb:ticket:720: (details)
  29. I updated pdf_closure_module.F90 by integrating changes I made in the (details)
  30. For cam:ticket:36: (details)
  31. For cam:ticket:36#comment:132, I removed `gr` from the use statement in `setup_grid_heights_api`. (details)
  32. For clubb:ticket:773, I fixed some unsoundness in our code regarding kinds, specifically in `parameters_model.F90` and `endian.F90`. (details)
  33. For cam:ticket:41, the change in clubb:r7921 should be applied to the trunk as well. (details)
  34. For clubb:ticket:775: (details)
  35. For clubb:ticket:775: (details)
  36. Misc. code cleanup (details)
  37. I am updating default CLUBB to use the same hydrometeor PDF parameters that are (details)
  38. For cam:ticket:50: (details)
  39. For cam:ticket:50: (details)
  40. For cam:ticket:50: (details)
  41. For clubb:ticket:778, I am setting the tolerance on an assertion check based on epsilon. Hopefully, this assertion will no longer trip in single precision mode. (details)
  42. For cam:ticket:52: (details)
  43. For cam:ticket:52, I added some parameter indices to the API. (details)
  44. I forgot a parameter! (details)
  45. For cam:ticket:54: (details)
  46. For clubb:ticket:753: (details)
  47. For clubb:ticket:753: (details)
  48. For clubb:ticket:782: (details)
  49. I forgot a flag. (details)
  50. For clubb:ticket:782: (details)
  51. For cam:ticket:55, I added some parameters to CLUBB's API. (details)
  52. For cam:ticket:55: (details)
  53. For clubb:ticket:782, I merged in NCAR's changes to SILHS. (details)
  54. For clubb:ticket:753: (details)
  55. For clubb:ticket:753: (details)
  56. For clubb:ticket:753: (details)
  57. I cleaned up some warnings from the Mac compiler. (build:14977) (details)
  58. I cleaned up some warnings from the Mac compiler. (build:14977) (details)
  59. For clubb:ticket:785, I renamed `initvars` to `clubb_params_nl`. (details)
  60. For clubb:ticket:785: (details)
  61. For clubb:ticket:779: (details)
  62. For cam:ticket:56: (details)
  63. For cam:ticket:56: (details)
  64. For clubb:ticket:786: (details)
  65. For clubb:ticket:786: (details)
  66. For clubb:ticket:786: (details)
  67. For clubb:ticket:782, I added all CLUBB's parameter indices to the API. (details)
  68. helpful note (details)
  69. more helpful note (details)
  70. most helpful note (details)
  71. For cam:ticket:56: (details)
  72. While working on cam:ticket:59, I noticed that `tau_N2_zm` is computed twice. I removed one computation. (details)
  73. Dat crazy indentation, though... (details)
  74. For cam:ticket:59, I refactored the calculation of `brunt_vaisala_freq` into a subroutine, and renamed it `brunt_vaisala_freq_sqd`. (details)
  75. For cam:ticket:59: (details)
  76. For cam:ticket:59: (details)
  77. For cam:ticket:59: (details)
  78. For cam:ticket:59, I added a new output for Richardson number. (details)
  79. For cam:ticket:59: (details)
  80. Per cam:ticket:59#comment:21, using `T_in_K_zm` in "the formula". (details)
  81. For cam:ticket:59. (details)
  82. For cam:ticket:59 I renamed `Richardson_no` to `Richardson_num`. (details)
  83. For cam:ticket:59, I added kludgy statistical output for `brunt_vaisala_freq_sqd`. (details)
  84. I made an error message more verbose. (details)
  85. Still wanted to stop, though... (details)
  86. For cam:ticket:59: (details)
  87. For cam:ticket:59: (details)
  88. For cam:ticket:59: (details)
  89. For cam:ticket:59. (details)
  90. For cam:ticket:59: (details)
  91. Apparently, I didn't have to jump through the hoop of declaring a separate profile to use in the `max` statement. (details)
  92. For cam:ticket:59: (details)
  93. For cam:ticket:59: (details)
  94. For cam:ticket:59: (details)
  95. For clubb:ticket:782: (details)
  96. For cam:ticket:59: (details)
  97. For cam:ticket:59: (details)
  98. For cam:ticket:59: (details)
  99. For cam:ticket:59: (details)
  100. For clubb:ticket:782: (details)
  101. For cam:ticket:59: (details)
  102. For cam:ticket:59, I fixed bugs in the `l_use_C7_Richardson=T` vertical averaging code: (details)
  103. I adjusted a comment. (details)
  104. For clubb:ticket:788: (details)
  105. For cam:ticket:59: (details)
  106. For clubb:ticket:788: (details)
  107. For clubb:ticket:788: (details)
  108. For clubb:ticket:788: (details)
  109. For clubb:ticket:788: (details)
  110. For clubb:ticket:788: (details)
  111. Renamed C7 to Cx in appropriate places. (details)
  112. For cam:ticket:59: (details)
  113. For cam:ticket:59: (details)
  114. I made it a default to use 0 instead of cloud_frac_min in the B.V. frequency calculation. (details)
  115. For clubb:ticket:790: (details)
  116. I am setting `l_lh_normalize_weights=T` by default in both the source code and the namelist. (details)
  117. It is more robust to check the average of the sample point weights rather than the sum of the sample point weights for unity-ness. (details)
  118. For cam:ticket:67: (details)
  119. For cam:ticket:67: (details)
  120. Code improvements. (details)
  121. Vince noticed that `sat_mixrat_liq` or `sat_mixrat_ice` will be left uninitialized if `sat_ice_ratio == 0` or `sat_ice_ratio == 1`. No more! (details)
  122. For cam:ticket:32, I made `hydrometp2` `intent(out)` in CLUBB, since the input value is not used. (details)
  123. Fixed a comment. (details)
  124. For clubb:ticket:788: (details)
  125. For clubb:ticket:792: (details)
  126. For clubb:ticket:792: (details)
  127. For clubb:ticket:792, I added more initializations for uninitialized variables. (details)
  128. When l_avg_Lscale is turned on but the plume-centered calculation is disabled, (details)
  129. For clubb:ticket:792: (details)
  130. For clubb:ticket:792, I added a new stats output, `rcm_supersat_adj`, to record the degree of rcm adjustment. It is not output by default. This changeset does not change output. (details)
  131. I renamed RH_postPDF to rel_humidity. (details)
  132. For clubb:ticket:792. rsat actually should be recomputed here before output, because it will change if `l_rcm_supersat_adj = T`. (details)
  133. For clubb:ticket:792. I am reusing the `rel_humidity` variable for output, for no particular reason. (details)
  134. For clubb:ticket:792!!!! I set `l_rcm_supersat_adj = T` by default, in both source code and namelist. (details)
  135. As requested, I am adding a warning message (debug level 1) when spurious supersaturation is removed. (details)
  136. Comment. (details)
  137. For clubb:ticket:788, I added a threadprivate entry for `iwp3_pr3`, which will hopefully resolve the failure of the OpenMP test (build:16010). (details)
  138. I removed a spurious print statement. (details)
  139. For cam:ticket:73: (details)
  140. I am beginning to generalize the sponge damping code so that it can be applied to (details)
  141. I have added all the coding infrastructure to perform sponge damping (and record (details)
  142. (details)
  143. clubb:ticket:796 (details)
  144. clubb:ticket:796 (details)
  145. I added some parameter value checking in subroutine setup_parameters. (details)
  146. clubb:ticket:796 (details)
  147. I finally have a standalone version of the new subroutine, generate_pdf_params, (details)
  148. Some code within advance_clubb_core that is found within CAM_CLUBB preprocessor (details)
  149. The perturbation Lscale code requires rtm_frz, thlm_frz, and pdf_params_frz to (details)
  150. I added a missing intent(out) statement. (details)
  151. I have interfaced the new subroutine containing all of the PDF closure-related (details)
  152. I got rid of some variables that were brought into advance_clubb_core by use statements (details)
  153. I cleaned up more compiler warnings for unused variables.  The warnings came from g95. (details)
  154. I have added a second call to subroutine generate_pdf_params.  This one occurs (details)
  155. I moved the setting of qclvar and thlprcp_out to after the second call to (details)
  156. I have declared the l_use_ice_latent option and the l_call_pdf_closure_twice (details)
  157. I added a local cslculation of sigma_sqd_w near the top of subroutine (details)
  158. I am changing the inputs and outputs of subroutine advance_clubb_core so that (details)
  159. I added code so that stats that are internal to subroutine generate_pdf_params (details)
  160. I have updated subroutine advance_clubb_core so that pdf_params_zm is now passed (details)
  161. Ticket #799 -- Moved iiPDF_... module variables from module corr_varnce_module to module array_index -- The results of the priority cases are bin-diff identical (details)
  162. Ticket #799 -- Moved iiPDF_... module variables from module corr_varnce_module to module array_index -- The results of the priority cases are bin-diff identical (details)
  163. Ticket #798 -- Renamed d_variables to pdf_dim -- The results of the priority cases are bin-diff identical (details)
  164. Ticket #798 -- Renamed d_variables to pdf_dim -- The results of the priority cases are bin-diff identical (details)
  165. (details)
  166. (details)
  167. I added a new subroutine, init_pdf_params, to pdf_parameter_module.F90. (details)
  168. I renamed the subroutine pack_pdf_params found in setup_clubb_pdf_params.F90 (details)
  169. I am now using the new subroutine init_pdf_params to initialize the (details)
  170. I removed the CAM_CLUBB preprocessor directives from pack_pdf_params_api, (details)
  171. clubb:ticket:800 -- Changed fatal errors statements to debug level 0. (details)
  172. clubb:ticket:800 -- Changed fatal errors statements to debug level 0. (details)
  173. I updated CLUBB stats so that wpthvp, wp2thvp, rtpthvp, and thlpthvp (details)
  174. I have added the coding infrastructure to output additional statistics (details)
  175. This is a bug fix for the Sun compiler.  The variables pdf_params_zm and (details)
  176. I am updating the hydrometeor PDF code to set mu_hm_1 and (details)
  177. Running the Bitten tests. (details)
  178. I added some comments so that CLUBB-SILHS would be consistent with (details)
  179. I added some comments so that CLUBB-SILHS would be consistent with (details)
  180. clubb:ticket:805 (details)
  181. clubb:ticket:805 (details)
  182. clubb:ticket:805 (details)
  183. For clubb:ticket:805, I made two changes: (details)
  184. As a first step, I changed all instances of rrtthl to corr_rt_thl_1. (details)
  185. I have added corr_rt_thl_2 to the code to go along with corr_rt_thl_2. (details)
  186. I have added some code to add corr_w_rt_1, corr_w_rt_2, corr_w_thl_1, and corr_w_thl_2 (details)
  187. I added new statistics to the CLUBB _zt output files, specifically corr_w_rt_1, corr_w_rt_2, (details)
  188. I am updating the equations for wp2rtp, wp2thlp, wprtp2, and wpthlp2 to include (details)
  189. I am adding a special function to calculate the within-component correlation of (details)
  190. I added variables corr_w_chi_1, corr_w_chi_2, corr_w_eta_1, and corr_w_eta_2 (details)
  191. I am adding corr_w_chi_1, corr_w_chi_2, corr_w_eta_1, and corr_w_eta_2 to type (details)
  192. Now that the PDF component correlations of w and chi, as well as w and eta, (details)
  193. I am adding statistical output for corr_w_chi_1, corr_w_chi_2, corr_w_eta_1, (details)
  194. I am changing the name of the flag l_fix_chi_eta_correlations to (details)
  195. The two component normal (double Gaussian) PDF used by CLUBB will now be (details)
  196. I moved the checking of the options for the PDF call placement to subroutine (details)
  197. I am altering setup PDF parameters to be able to read in the values of (details)
  198. I am adding the new file new_pdf.F90 to the CLUBB core directory.  So far, it (details)
  199. I am adding a large amount of code to the new PDF.  I have filled in the driver (details)
  200. I am adding code to the new PDF that calculates the minimum and maximum (details)
  201. I added a new iiPDF entry for the new PDF, and I neatened some of the current (details)
  202. I added an option to call the new PDF from subroutine pdf_closure. (details)
  203. I had to add checking for the new PDF so someone does not try to run it (details)
  204. I made a couple changes to (1) initialize two variables that aren't used by the (details)
  205. I added a conditional to the subroutine that sets the responder parameters. (details)
  206. I have added the beginnings of a new unit test for the PDF parameters. (details)
  207. I have updated the PDF parameter unit test to make a call to the full PDF (for (details)
  208. I have added a feature to the PDF parameter unit tests which allows the user (details)
  209. In the setter variable description and subprograms, I made a name change from (details)
  210. I have updated the method of calculating the setter variable so that mu_x_1 (details)
  211. I added primarily some more documentation and notes. (details)
  212. I added some more comments documenting the code. (details)
  213. I got rid of some of the expressions that a script might try to flag as (details)
  214. I added much more documentation about the responder variable.  Specifically, (details)
  215. I am adding the new file, original_pdf.F90, as the new home for the ADG1, ADG2, (details)
  216. I have now switched the PDF closure code over to calling the code that had been (details)
  217. I updated the documentation in the code comments for the setter method and (details)
  218. I added a comment. (details)
  219. I added a new function, calc_comp_corrs_binormal, to pdf_utilities.F90.  This (details)
  220. I added some more descriptive comments and a new function that calculates the (details)
  221. I updated the code so that coef_sigma_x_1_sqd and coef_sigma_x_2_sqd are passed (details)
  222. I fixed a mistake. (details)
  223. I have added code to call the new function that calculates wp4 implicitly from (details)
  224. I moved the calculations of wp2xp (wp2rtp and wp2thlp), wp4, and wpxp2 (wprtp2 (details)
  225. I added another function to the new PDF.  This function helps to calculate (details)
  226. I added a special case for the wpxp2 implicit code. (details)
  227. Back in clubb:r8409, the PDF component correlations of w and rt and w and (details)
  228. I added a subroutine that calculates the implicit and explicit portions of the (details)
  229. I renamed original_pdf.F90 as adg1_adg2_3d_luhar_pdf.F90. (details)
  230. I added statistical output for F_w, F_rt, F_thl, min_F_w, max_F_w, min_F_rt, (details)
  231. I split the new PDF into two files.  I added a new file that currently houses (details)
  232. I clipped temperature within the Goff-Gratch functions for saturation over liquid and ice. (details)
  233. I initialized some output variables in order to prevent a runtime error. (details)
  234. I made a sub-driver level subroutine for the calculations necessary for a (details)
  235. I added code to allow the variable (of w, rt, or theta-l) with the greatest (details)
  236. I added calls to the functions and subroutines that calculate the implicit and (details)
  237. I changed coef_wp2xp_explicit (coef_wp2rtp_explicit and coef_wp2thlp_explicit) (details)
  238. I am adding a new file for the new trivariate skewness-dependent analaytic (details)
  239. I fixed a bug in the new Trivariate skewness-dependent analytic double Gaussian (details)
  240. In order for the TSDADG PDF to work correctly, when Skx * sgn( <w'x'> ) >= 0, (details)
  241. In order to clarify coding in CLUBB, I am moving a block of code that is (details)
  242. I am fixing a bug where rtp2 and thlp2 (and sclrp2) were not preserved when (details)
  243. I updated the TSDADG PDF by adding the responding variable description, the (details)
  244. When ADG1 or ADG2 are not used, we have to set alpha_rt, alpha_thl, and (details)
  245. I am calling the new TSDADG PDF from subroutine pdf_closure. (details)
  246. Clarity changes to the new TSDADG PDF. (details)
  247. I added some references to the CLUBB-SILHS tech doc. (details)
  248. I added some references to the CLUBB-SILHS tech doc. (details)
  249. I fixed a bug in the calculation of PDF component variances in the new TSDADG (details)
  250. I added more references to the CLUBB-SILHS tech doc. (details)
  251. I added more references to the CLUBB-SILHS tech doc. (details)
  252. I added more links to the CLUBB-SILHS overview tech doc. (details)
  253. I have set the tunable parameters F_x and zeta_x to skewness functions for the (details)
  254. I needed to increase the limit of nvarmax_zt so that LBA (and other (details)
  255. I changed the URL references to the CLUBB-SILHS overview document. (details)
  256. I changed the URL references to the CLUBB-SILHS overview document. (details)
  257. Changed variable and subroutine names, see ticket 810 and 811 (details)
  258. Changed variable and subroutine names, see ticket 810 and 811 (details)
  259. I have added the Lewellen and Yoh (1993) PDF to CLUBB for testing and comparison (details)
  260. Fixed line length exceding 100 characters warnings (details)
  261. Changed the arrangement of variables in the subroutine compute_mixing_length as well as calls to it clubb:ticket:815 (details)
  262. Fixed lines exceeding 100 characters warnings clubb:ticket:815 (details)
  263. I added an option to incorporate the buoyancy term into CLUBB's eddy diffusivity for momentum. (details)
  264. I added c_K10 as a tuning parameter in front of the new momentum eddy diffusivity. (details)
  265. Removed unused parameters to clear warnings clubb:ticket:803 (details)
  266. Removed unused parameters to clear warnings clubb:ticket:803 (details)
  267. I multiplied the eddy diffusivity for momentum by a skewness-dependent factor (details)
  268. I changed the way that F_rt and F_thl are set in the new PDF.  They are now set (details)
  269. I changed the flag setting on the new PDF so that it always uses w as the setter (details)
  270. Changed many equality comparisons using == to a safer epsilon method, this should end up being BIT_CHANGING, clubb:ticket:803 (details)
  271. Changed many equality comparisons using == to a safer epsilon method, this should end up being BIT_CHANGING, clubb:ticket:803 (details)
  272. Improved binary search algorithm clubb:ticket:818 (details)
  273. Added warning messages to function binary_search clubb:ticket:818 (details)
  274. Removed unused variables causing warnings clubb:ticket:803 (details)
  275. I updated the call to the new PDF so that Skrt and Skthl are intent INOUT (details)
  276. Removed many eqaulity comparison warnings in precipitation_fraction.F90 clubb:ticket:803 (details)
  277. I am adding a new function, calc_wpxpyp_pdf, to pdf_closure_module.F90.  This (details)
  278. I finished adding the units to the variable descriptions in (details)
  279. The calculation of higher-order scalar terms <w'^2^ sclr'>, <w'sclr'^2^>, (details)
  280. I added the tunable or adjustable parameters for the new PDF to CLUBB's list (details)
  281. Fixed various warnings. Mainly by removing unused variables and commenting out unused procedures. See clubb:ticket:803 (details)
  282. I am committing a line of code that limits the adjusted correlation of rt and (details)
  283. I implemented a new method to handle cumulus momentum fluxes. (details)
  284. Switched from using the erf function defined by anl_erf to the intristic erf function. This should be BIT_CHANGING see clubb:ticket:804 (details)
  285. Switched from using the erf function defined by anl_erf to the intristic erf function. This should be BIT_CHANGING see clubb:ticket:804 (details)
  286. Removed file anl_erf.F90, it is no longer used (details)
  287. I am altering the solution to the wp3 predictive equation to calculate the (details)
  288. I fixed the problem with the wp3 budgets as a result of r8584.  The budgets in (details)
  289. I altered the names of the turbulent advection functions that are closed by (details)
  290. I added a couple comments about how the discretization of the turbulent (details)
  291. I added the function that sets up the implicit calculation of the wp3 turbulent (details)
  292. I added a function that calculates the explicit form of the wp3 turbulent (details)
  293. I am adding a function to calculate the turbulent advection of wpxp explicitly. (details)
  294. I am adding a function to calculate the turbulent advection of xp2 and xpyp (details)
  295. I interfaced the wp3 explicit turbulent advection code with CLUBB.  It is (details)
  296. I am interfacing the wpxp explicit turbulent advection option with the rest of (details)
  297. I fixed a small bug with the explicit turbulent advection option for wpxp. (details)
  298. I am interfacing the xp2/xpyp explicit turbulent advection term with CLUBB code. (details)
  299. I added the l_explicit_turbulent_adv_* family of flags to the new PDF, for some (details)
  300. I am packing up the implicit coefficients and explicit terms calculated by the (details)
  301. Made epss variable based on its use by adding flag l_high_accuracy_parab_cyl_fnc. Low accuracy for runs (epss=1e-4) and high accuracy for tests (epss=1e-15), see clubb:ticket:804 (details)
  302. I made a slight change to function calc_coef_wpxp2_implicit in new_pdf.F90. (details)
  303. I have completed interfacing the implicit form of the wp3 turbulent advection (details)
  304. When the l_explicit_turbulent_adv_wp3 flag is enabled, the turbulent advection (details)
  305. I cleaned up the Skx_module and added an additional function, (details)
  306. I fixed a bug in the calculation of scalar skewness.  It was being set to 0, (details)
  307. I moved the location of the LG 2005 ansatz to calculate xp3 because it would be (details)
  308. I reverted clubb:r8611 because (1) having the code in the other location (details)
  309. I have added a new function, term_ta_new_pdf_lhs, to (details)
  310. I have linked the implicit turbulent advection code for rtp2 and thlp2 to the (details)
  311. I have added a new file that has two options for handling the xp3 term for (details)
  312. I have interface the new xp3 code to the rest of CLUBB.  It can be turned on (details)
  313. I added a driver level subroutine for the new advance xp3 code.  This will make (details)
  314. I added budget stats for rtp3 and thlp3 to CLUBB. (details)
  315. I am adding code that allows the turbulent advection of wpxp to be treated (details)
  316. Redesigned error code system. Errors are now treated as strictly fatal, meaning they are only thrown by procedures which cannot continue or has detected something that will crash the code. When the error occurs the procedure which detected it should immediately report it and either return to its calling procedure or stop the program, this is to avoid a cascade of error reports due to a single error. Other problems are now reported at level 1 and 2 debugging and only write the error out rather than set a code. (details)
  317. Redesigned error code system. Errors are now treated as strictly fatal, meaning they are only thrown by procedures which cannot continue or has detected something that will crash the code. When the error occurs the procedure which detected it should immediately report it and either return to its calling procedure or stop the program, this is to avoid a cascade of error reports due to a single error. Other problems are now reported at level 1 and 2 debugging and only write the error out rather than set a code. (details)
  318. Various small comment removals and returned some functionality to api interface clubb:ticket:800 (details)
  319. A variable found to be less than zero now only gives a warning rather than setting an error code. Some fatal error checks also changed from debug level 2 to 0 clubb:ticket:800 (details)
  320. This is the first part of a two-part change.  I am updating plotgen plots so (details)
  321. In part 2 of this two part commit, I have added rc_coef to the list of (details)
  322. Various debug checks added/improved. Negative value checks changed back to throw fatal errors. Parameterization check changes to disclude thermodynamic variables at grid level 1 clubb:ticket:800 (details)
  323. Check negative no longer assumes array sizes are gr%nz, this should fix the SAM-CLUBB-SILHS error in the nightly tests clubb:ticket:800 (details)
  324. I'm pretty sure this will fix the check negative issues this time, fortran has some lacking features when it comes to arrays clubb:ticket:800 (details)
  325. Changed calls to parameterization check to work with the new check negative implementation clubb:ticket:800 (details)
  326. (details)
  327. Removed rtm(5) = -1 line, it was a test accidentally left in and caused many nightly tests to fail clubb:ticket:800 (details)
  328. Changed error checking if statements to check for equality to clubb_fatal_error rather than inequality to clubb_no_error, makes them more readable clubb:ticket:800 (details)
  329. Fixed unused variable warnings related to error code changes (details)
  330. I am generalizing the wprcp, wp2rcp, rtprcp, and thlprcp equations to account (details)
  331. Added error header functionality. Using the err_header character array from error_code in a write statment will print out either the thread number or process ID along with CLUBB -- ERROR: . This is mainly to  keep track of error messages is multithreaded scenarios clubb:ticket:800 (details)
  332. In r8659, I accidentally overwrote some code.  This commit restores the prior (details)
  333. Sigh (details)
  334. Added clubb debug level checks to error checking statements clubb:ticket:800 (details)
  335. Changed many stop commands to return commands and added more err_code checks clubb:ticket:800 (details)
  336. Reverted api changes that broke SAM and WRF (details)
  337. I am adding the semi-implicit formulation of wprtpthlp, which is the turbulent (details)
  338. I am adding output statistics for the implicit and semi-implicit coefficients (details)
  339. I corrected the units on a couple of implicit coefficients. (details)
  340. I fixed a bug. (details)
  341. Removed failure_test cases from input/case_setups, they neither work properly nor are needed anymore. Added test_fatal_error_handling.bash script which tests for various errors defined by an identifier in the code, more description available in the bash file. Also added more descriptive error output to some parts of code. This change focuses only on output and comments and is BIT IDENTICAL clubb:ticket:800 (details)
  342. Removed reference to run_type 'failure_test' as it no longer exists. Added more description to fatal errors produced by calls to xm_wpxp_solve. This change is BIT IDENTICAL clubb:ticket:800 (details)
  343. I am fixing a bug with the CLUBB tuner.  Variables that were allocated at the (details)
  344. Completed the list of variables that get reported from errors within advance_wp2_wp3 and advance_xm_wpxp. Also added a check that outputs an error message when T_in_K is less than 200K in the lowest 10 grid levels, this check is done in subroutine parameterization_check. clubb:ticket:800 (details)
  345. Made all debug levels produce the same output, see clubb:ticket:823 (details)
  346. I am moving type variable implicit_coefs_terms from new_pdf_main.F90 to (details)
  347. Modified many aspects of the tuner, mostly within esa_driver. Also added check to ensure that C7 and C11 have valid values before the run is tried, this should stop the fire tuning nightly test from crashing. See clubb:ticket:802 (details)
  348. Added checks in subroutine setup_parameters() to ensure that C7b and C11b are within [0:1] see clubb:ticket:802 (details)
  349. This should fix the thlm out of bounds error on clubb:ticket:828 (details)
  350. I changed the name of type variable new_pdf_implct_coefs_terms to (details)
  351. Changed T_in_K check within subroutine parameterization_check to instead check thlm, see clubb:ticket:800 and clubb:ticket:828 (details)
  352. I added a flag option to clip the (large, negative) effects of microphysics on (details)
  353. I added a flag option to calculate the minimum threshold for xp2 (rtp2 and (details)
  354. I added a special max magnitude correlation for fluxes wprtp and wpthlp.  This (details)
  355. Made better esa_driver, made tuner_test to test the driver, added variable range checks. Tried to make the tuner in better in general, but that whole bunch of code needs nothing short of replacement. This commit is bit identical execpt for tuning results, see clubb:ticket:802 for a bunch more information (details)
  356. This commit sets C8b=0.02, changes the non-linear damping on wp3 (details)
  357. Added a flag and moved Skw_max_mag from constants to parameters, this allows the changes made in commit clubb:r8719 to be reverted by modifying the configuration flags and the tunable parameters list, see clubb:ticket:829 (details)
  358. I am adding a general purpose function for the turbulent advection of CLUBB's (details)
  359. I added/changed a couple comments for the rhs portion of the generalized (details)
  360. The turbulent advection file that handles turbulent advection for predictive (details)
  361. I added a function to turbulent_adv_pdf.F90, called sgn_turbulent_velocity, that (details)
  362. Whoops, I forgot to make wpxpyp_zm and xpyp intent (in). (details)
  363. Added functionality to make the  hydrometeor variances depend on the horizontal grid spacing, see clubb:ticket:830 (details)
  364. I am updating the code that advances predictive variances and covariances in (details)
  365. Renamed init_pdf_hydromet_arrays to init_pdf_hydromet_arrays_api since it is meant to be used by host models, clubb:ticket:830 (details)
  366. I am updating the code that advances predictive scalar fluxes (<w'x'>) in (details)
  367. As a first step toward having code that can clip mean values of hydrometeor (details)
  368. init_pdf_hydromet_arrays_api now sets the value of hydromet_dim as well, this should fix the wrf tests, but doesn't seem to fix cam. clubb:ticket:830 other:ticket:562 (details)
  369. I have now interfaced the subroutine that I made out of the code that clips (details)
  370. I have added a call to the subroutine that clips hydrometeor concentrations from (details)
  371. I added new code that clips the overall correlation of w and rt or the overall (details)
  372. I added stats for term_wprtp2_explicit and term_wpthlp2_explicit, which are (details)
  373. Made clubb_fatal_error public so host model code can detect fatal errors. clubb:ticket:800 (details)
  374. Reverted advance_windm_edsclrm_module.F90, accidentally committed test code, clubb:ticket:800 (details)
  375. Fixed nightly tests (details)
  376. I have added code to allow C2 to be adjusted by multiplying by the greater of (details)
  377. I moved the location of the declaration and setting of new model flags to (details)
  378. Improved computational speed of windm_edsclrm_rhs and added subroutine. This commit should be BIT_CHANGING as it does calculations in different orders. Only the most sensitive cases have any noticable plot differences. See clubb:ticket:834 (details)
  379. Fixed nightly uninitialized variables test. Renamed diffusion_zt_lhs_inner to diffusion_zt_lhs_all, it is now also capable of calculating all values including boundaries now, it's beneficial to calculate the upper boundary value in this case and I imagine other may need the lower boundary calculated as well. Cleaned up windm_edsclrm_rhs A LOT, it's more readable and has clearly ordered steps now. clubb:ticket:834 (details)
  380. Actually fixed nightly tests now (hopefully). A loop variable was being used outside a loop, which is an error that passes all the compiler tests. Also the intel compiler config file does not cause errors running if a index variable has not been initialized either, which resulted in correct seeming plots, timing, and output. I'm going to have to be stricter with the testing during these changes as loop variables and such will be often modified, I'll be sure to do a run after compiling with each compiler on top of confirming the output and running the uninitialized variable test manually. Because the last commit fixed the 2nd value of the rhs array the change will be BIT_CHANGING, but the plot output is identical for all but the most sensitive cases. clubb:ticket:834 (details)
  381. Optimized the array setup procedures within advance_xp2_xpyp. Added more functions which handle entire arrays at a time rather than single terms to calculate the turbulence, mean advection, and diffusion terms. Because these changes reordered some calculations the results are BIT_CHANGING, but the plots are the same for all but the most sensitive cases. clubb:ticket:834 (details)
  382. Reverted stats_clubb_utilities, accidental commit (details)
  383. This should fix the nightly budget test. We may want to look into reducing the redone calculations for the stats code in the future, this lhs/rhs improving endeavour is definitely helping with that but more could be done. clubb:ticket:834 clubb:ticket:837 (details)
  384. (details)
  385. Impoved the computational efficiency of xm_wpxp_rhs and xm_wpxp_lhs, see clubb:ticket:834 (details)
  386. This commit implements the effects of splatting on wp3. (details)
  387. I am making the first step toward committing code that allows for the option (details)
  388. I added code to allow the option of predicting upwp and vpwp by using the (details)
  389. I took the liberty of upgrading CLUBB's PDF closure and related code to a vector (details)
  390. I updated the monotonic flux limiter to account for vector variables u and v. (details)
  391. I am adding two new budget stats, um_mfl and vm_mfl, to CLUBB's zt stats output. (details)
  392. In r8775, I forgot to add the new um_mfl and vm_mfl stats to the monotonic flux (details)
  393. I am turning on the l_predict_upwp_vpwp code! (details)
  394. Improved the computational efficiency of the LHS and RHS setup procedures in advance_wp2_wp3_module. This involved changing the order of calculations which casues this commit to be BIT_CHANGING for only the most sensitive cases. See clubb:ticket:834 (details)
  395. Improved computational efficiency of windm_edsclr_lhs. See clubb:ticket:834 (details)
  396. Changed the name of _turb to _ta, and _advm to _ma to keep with the current naming conventions. Also fixed line length warnings. clubb:ticket:834 (details)
  397. Added grid_class to the dependency lists of the pdf files that were changed in commit 8773 (details)
  398. Accidental commit, undoing 8783 (details)
  399. I am changing the default setting of flags l_min_wp2_from_corr_wx and (details)
  400. Modified compute_Cx_fnc_Richardson. Made it a subroutine, modified the algorithm slightly, removed use of allocates and deallocates from it, removed verical_avg call to avoid redoing calculations and precalculated some divides. This saved clubb_core about 8% runtime overall. see clubb:issues:834 (details)
  401. Removed print line. Also this commit is BIT_CHANGING since it reorders some calculations, but the difference only affects the most sensitive cases. (details)
  402. Changed the way that init_pdf_params zeros out values as well as a spot in pdf_closure which does the same type of thing. Also changed the debug level for pdf_closure_check to 2. This all saved about 3% overall. see clubb issue 834 (details)
  403. I am adding source code for the introduction of budgets for predictive upwp (details)
  404. Improved computational speed of compute mixing length by modiying the algorithm slightly, avoiding unnecessary divides, and precalculating values. This saves about 6.5% overall. #834 (details)
  405. Improved computational efficiency of band_solve by reworking the way that the lulhs matrix is set up. #834 (details)
  406. Modified flatau equation which calculates saturation vapor pressure. This was done by modifying the form of the polynomial to allow the cpu to take advantage of out-of-order computations. The new coefficients were obtainted from matlab by finding the roots and multiplying/adding them where I needed to removed the complex numbers. The differences in any values are negligible, and the plots are only affected in the most sensitive cases, but this is BIT_CHANGING. #834 (details)
  407. Copied code from linear_interp_factor to linear_interpolated_azt/_azm. This allows those sections of code to become vectorized. Also reversed the calculation order of linear_interpolated_azt allowing for contiguous memory access. This saves about 3% overall and there are no visible differences in the plots when compared to last commit. #834 (details)
  408. Changed vertical_avg and vertical_intergral to use dz rather than the inverse, they were dividing by an inverse and divisions are expensive. Also modified vertical_avg algorithm to no longer use vertical_integral, this saves some calculations. #834 (details)
  409. Changed vertical_avg and vertical_intergral to use dz rather than the inverse, they were dividing by an inverse and divisions are expensive. Also modified vertical_avg algorithm to no longer use vertical_integral, this saves some calculations. #834 (details)
  410. Improved efficiency of clip_covar. The only change is saving the result of max_mag_corr * sqrt( xp2(k) * yp2(k) ) rather than calculating it three times. #834 (details)
  411. I made the surface splatting terms conservative.  That is, I subtracted from wp2_sfc (details)
  412. I added clipping on up2 and vp2 that prevents these fields from exceeding 1000 m^2/s^2. (details)
  413. This commit turns on splatting of thermals (i.e., C_wp2_splat is nonzero).  Hence it is BIT_CHANGING. (details)
  414. Added functionality to allow cloud_frac to be better estimated at extreme values which produce either 0 or 1 when computed. The amount of estimation is controlled by the variable max_num_stdevs, indicating the number of standard deviations away from the mean of a pdf a value can be before being considered statistically insignificant. This speeds up the code but reducing the calculations required in calc_cloud_frac_component and calc_xprcp_component, and avoiding underflow errors when computing exponentials with too small of a number. By comparing plots and mathematical evaluation (erf(5)~=0), it seems the best value for max_num_stdevs is 5. This increases computational efficiency by about 10% #834 (details)
  415. Update advance_clubb_core_module.F90 (details)
  416. Update latin_hypercube_driver_module.F90 (details)
  417. I clipped sigma_sqd_w to prevent interpolated values of it (details)
  418. I added a new option to diagnose the dissipation time scale, tau, first (details)
  419. I found a new way to diagnose upthvp.  Instead of using a bound on correlations, it relies (details)
  420. introducing error into clubb core for testing larson-group/sys_admin#533 (details)
  421. reverting error that was introduced larson-group/sys_admin#533 (details)
  422. I am briefly changing some of the flag and parameter settings in CLUBB (details)
  423. Revert "I am briefly changing some of the flag and parameter settings in CLUBB" (details)
  424. I am adding code that clips the sample point value of chi under (details)
  425. I have updated the SILHS code to omit the assert_consistent_cf_component (details)
  426. I added a couple of comments reminding users to change the conditions in (details)
  427. I added a couple of comments reminding users to change the conditions in (details)
  428. Revert "Revert "I am briefly changing some of the flag and parameter settings in CLUBB"" (details)
  429. Revert "Revert "Revert "I am briefly changing some of the flag and parameter settings in CLUBB""" (details)
  430. I committed a subroutine, diagnose_upxp, that calculates (details)
  431. Improved the computational efficiency of pdf_closure. This speed the code up by about 6% overall. Because it changed the order of some calculations it is BIT_CHANGING but does not change plots. clubb issue #834 (details)
  432. I am modifying one part of setup_clubb_pdf_params.F90 to be taken out of a large (details)
  433. I am updating the code within setup_clubb_pdf_parameters.F90 in order to take (details)
  434. To diagnose uprcp using CLUBB's PDF machinery, (details)
  435. Continuing with diagnosis of uprcp using CLUBB's PDF, (details)
  436. More code to diagnose uprcp using CLUBB's PDF. (details)
  437. Correction for the last uprcp-related commit: (details)
  438. I am correcting the code so that the Nightly Uninitialized Variables Test (details)
  439. I am continuing to pull parts of setup_pdf_parameters outside of a large "do" (details)
  440. I am pulling statistical output subroutine pdf_param_ln_hm_stats outside (details)
  441. Changing the range of the correlation values determined in calc_comp_corrs_binormal from [ -1.0, 1.0 ] to [ -0.99, 0.99 ] (based on value of max_mag_correlation = .99). This is the subroutine that calculates corr_rt_thl_x and should fix the issue with the WRF WPS Katrina bitten test as discussed in the commets of commit ad0ee5b9b3c253329df1208560b46d1dc4fca1c2. I suspect that it will fix the WRF-CLUBB-SILHS Restart Test as well, but I am basing that mostly off hope. (details)
  442. commenting out threadprivate command to test openmp bitten test larson-group/sys_admin#566 (details)
  443. uncommenting threadprivate larson-group/sys_admin#566 (details)
  444. I have changed the structure of setup_pdf_parameters so that the subroutine that (details)
  445. Returned max check to the calculation of rcm. This should fix the PGI Compiler Nightly Test and could be BIT_CHANGING. (details)
  446. I am turning on the new calculation of uprcp that uses CLUBB's PDF. (details)
  447. I modified the code in setup_clubb_pdf_params.F90 to use only one call to (details)
  448. I am updating CLUBB_core and SILHS in the clubb_E3SM_silhs branch to (details)
  449. I am setting model flags and tunable parameters in the clubb_E3SM_silhs branch (details)
  450. I temporarily set l_clip_extreme_chi_sample_pts back to false in the (details)
  451. Revert "I temporarily set l_clip_extreme_chi_sample_pts back to false in the" (details)
  452. The value of nz is passed into SILHS, so we don't need to use gr%nz. (details)
  453. I improved the error messages when LU decomp. fails within (details)
  454. Improved error message prints in advance_xm_wpxp. (details)
  455. I added improved LHS and RHS print statements when a LU decomp. error occurs (details)
  456. I added params_list to the list of variables that are accessible through (details)
  457. I am making the first step for updating the code that calculates sigma_sqd_w. (details)
  458. I added a log-law height dependence to the code that diagnoses (details)
  459. I added fill_holes_hydromet_api to clubb_api_module.F90. (details)
  460. I added a new python script, check_for_missing_threadprivate.py, (details)
  461. Modifying clubb's pdf_parameter type. It's now a type containing arrays, whereas before it was a type containing scalars, but used everywhere as an array of these types. This new way allows the elements of pdf_parameter to exist in contiguous memory sections, which improves computational efficiency when accessing a given parameter over all vertical levels. clubb issue #834 (details)
  462. Modifying clubb's pdf_parameter type. It's now a type containing arrays, whereas before it was a type containing scalars, but used everywhere as an array of these types. This new way allows the elements of pdf_parameter to exist in contiguous memory sections, which improves computational efficiency when accessing a given parameter over all vertical levels. clubb issue #834 (details)
  463. Fixed dycoms restart run failure. The pdf_parameter variables are accessed via a use statement in the section of code where the restart run attempts to set their values, but since they are allocatable they do not retain their allocated status once out of scope. Adding the save attribute to pdf_params and pdf_params_zm fixes the problem. These pdf_parameter variables used in clubb standalone are not used by host models, yet they are still allocated during host model runs, something that has been noted before and will be changed. clubb issue #834 (details)
  464. Added temp test file (details)
  465. Remove test file (details)
  466. Adding conditional statement around compute_Cx_Fnc_Richardson, see clubb issue #855. This change is bit identical. (details)
  467. Optimizing procedures within Skx_module. The reduction in runtime is greatly dependent on system and compiler option. See clubb issue #855 and comment by Gunther on 7-1-19 for explanation. This is BIT_CHANGING but the plots only differ in the sensitive cases. (details)
  468. ticket #842 we added 4 tunable parameters for tau, they are Coefficient of inverse tau term contributed by background constant value, Coefficient of inverse tau term contributed by surface log law, Coefficient of inverse tau term contributed by vertical wind shear and Coefficient of inverse tau term contributed by Brunt Vaisala frequency (details)
  469. Modifying ADG1_ADG2_responder_params for efficiency reasons. It changes the way varnce_x_(1/2) is set when wp2 > w_tol_sqd and xp2 <= x_tol. Previously in that case it set the variances to 0, but now it sets them to xp2 since xp2 ~= 0 in that case anyway. This allows the where statement to have only two cases, and less cases is more efficient. This is BIT_CHANGING, but only affect the sensitive cases and passes the G unit tests. larson-group/clubb#855 (details)
  470. Replacing the local variables used in pdf_closure_module with references to the variables in pdf_params which they are meant to be stored in. This removes the need to copy the local variables into the pdf_params structure at the end, saving about 3% runtime. This is not bit changing, but does make the code a little uglier. larson-group/clubb#855 (details)
  471. Making procedure calls consistent with procedure definitions. Required updating after previous pdf_parameter related commit. larson-group/clubb#855 (details)
  472. Missed one (details)
  473. I have added a new file, calc_pressure.F90, which contains code for initializing (details)
  474. I updated CLUBB so that pressure is updated after mean fields have been (details)
  475. Removing gmres code. The files gmres_wrap.F90, gmres_cache.F90, and csr_matrix_module.F90 have been removed, and any sections of code which refer to or are needed only for gmres have been removed as well. larson-group/clubb#855 (details)
  476. Forgot to run previous commit with --all, so the gmres files were not removed. larson-group/clubb#855 (details)
  477. issue #842 (details)
  478. We added two new tunuable parameters: C_invrs_tau_N2_xp2 and C_invrs_tau_N2_wp2. e.g. invrs_tau_wp2_zm = invrs_tau_zm_simp + C_invrs_tau_N2_wp2 * sqrt( max( zero_threshold,zt2zm( zm2zt( brunt_vaisala_freq_sqd ) ) - 1e-4_core_rknd) ). Correspondingly, invrs_tau_wp2_zm and invrs_tau_xp2_zm are used in advance_wp2_wp3 and advance_xp2_xpyp respectively. (details)
  479. We added two new tunuable parameters: C_invrs_tau_N2_xp2 and C_invrs_tau_N2_wp2. e.g. invrs_tau_wp2_zm = invrs_tau_zm_simp + C_invrs_tau_N2_wp2 * sqrt( max( zero_threshold,zt2zm( zm2zt( brunt_vaisala_freq_sqd ) ) - 1e-4_core_rknd) ). Correspondingly, invrs_tau_wp2_zm and invrs_tau_xp2_zm are used in advance_wp2_wp3 and advance_xp2_xpyp respectively. 1. Some typos are corrected. 2. New tunuable parameters are added in files named errer_$casename.in (issue #842) (details)
  480. Update advance_clubb_core_module.F90 (details)
  481. We put Lscale's calculation into mixing_length.F90 (subroutine calc_Lscale_directly) (details)
  482. Efficiency improvements to calc_turb_adv_range, more specifically the parts which split w into upward and downward components. This adds a case to zero out upward and downward components for values of w that are too small to matter, and now utilizes mkl_vml math functions to improve vectorization. These mkl_vml functions are only used when compiled with MKL, specified by adding -DMKL to compiler configuration files. This is BIT_CHANGING, plots only differ in the usual sensitive cases, and the budgets, G_unit_tests and time step tests all pass. larson-group/clubb#855 (details)
  483. This should fix the uninitialized variables test. mean_vert_vel_up_down was using the upper and lower grid levels, but calc_mean_w_up_down_component was not setting them. These levels aren't actually used by the algorithm in calc_turb_adv_range, but I made calc_mean_w_up_down_component set them to zero anyway since it seems like the simplest and safest solution. larson-group/clubb#855 (details)
  484. An additional damping is added to the invrs_tau term in the C8 equation. ticket #842 (details)
  485. Adding comment because commit 561fa037e7c3c326bc4bd71b6fc486e5d2a46065 was BIT_CHANGING, but missing the commit message specifying that. It was bit changing because the upper and lower levels of mean_w_up and mean_w_down are being output to stats as of commit 0b3ec0d5fc4b89b4a6f34964af3cfda8cb89b9f7, so changing the upper and lower level values changed the stats output, even though those values are not used in any calculations. (details)
  486. We use zt2zm(ice_supersat_frac) replace ice_supersat_frac_zm in the additional damping of C8. (details)
  487. Changing ADG1_ADG2_responder_params to use a do loop with ifs instead of a where statement. This is about 1.5% faster and is bit identical. larson-group/clubb#855 (details)
  488. Pulling the calculation of p_in_Pa(_zm) out of the vertical loop in update_pressure, and precalculates one/kappa. This improved vectorization capabilities of the calculation of exponents, which is slow so that's important. Also added the option to use MKL_VML functions if -DMKL is specified, which is slightly more efficient. This saves about 1.5-2.5% and is bit identical if not using MKL. larson-group/clubb#855 (details)
  489. Renaming width_factor to width_factor_1 to indicate that it is intended for use with the first pdf component, (two-width_factor_1) is the value for the second component. larson-group/clubb#855 (details)
  490. Efficiency improvements to transform_pdf_chi_eta_component. Moving the where statement to if statement inside loop to avoid sqrt operations. Reducing number of divide operations, and putting some code in a loop which reduces cache misses. This is BIT_CHANGING, but not answer changing, plots only differ slightly in the most sensitive cases. larson-group/clubb#855. (details)
  491. Modifying calc_cloud_frac_component to optionally use mkl_vml functions. Added a different version of the procedure to handle the liquid cloud fraction specifically, so the ice_supersat_frac could remain as is. The structure of the procedure when using the MKL functions is based on the changes to calc_turb_adv_range in commit 0b3ec0d5fc4b89b4a6f34964af3cfda8cb89b9f7, since I've already tested that well and it seems to make sense to keep the code similar if it does similar things. This reduces runtime by about 2% when using MKL functions and about 0.5% otherwise. The procedures also use precalculated inverses where possible, so the results are BIT_CHANGING, but not answer changing. larson-group/clubb#855 (details)
  492. Refactoring the lhs and rhs setup procedures for xm_wpxp. There are a number of lhs terms that are very general, and used by all the lhs matricies. The code now calculates these terms in a new procedure calc_xm_wpxp_lhs_terms and passes those terms into the lhs setup. The same sort of thing is done with the first pressure terms and turbulent advection terms, those terms are shared between pairs of lhs/rhs calls. This is BIT_CHANGING, but is not answer changing. See comment on Jul 3 on ticket larson-group/clubb#855 (details)
  493. Update advance_clubb_core_module.F90 (details)
  494. Update advance_clubb_core_module.F90 (details)
  495. I switched on direct diagnosis of tau rather than Lscale. (details)
  496. I updated the pressure initialization for cases that use sounding that is given (details)
  497. I changed the function calculate_thvm from a pre-defined vector of size nz to (details)
  498. I updated the calculation of thvm in advance_clubb_core to use the (details)
  499. Adding SAVE attribute to some stats variables, as it was causing compiler errors when using the newest version of the gfortran compiler. Also commenting out Lapack library dependency from gfortran config file, this required additional Lapack source files be added. Now, no Lapack library files are required to compile CLUBB, whereas before, the source was being compiled, but the missing dependencies we're being added from libraries. This is BIT_CHANGING in all cases when using the gfortran compiler, but only in some cases when using the ifort compiler. Some plots, such as rico, are noticably different when compiled with gfortran, but are bit identical when compiled with ifort. The intel implementation of Lapack used by the ifort compiler must be more similar to the source Lapack than was the Lapack library that was being used for the gfortran compiler. (details)
  500. Adding a subroutine in advance_xp2_xpyp to calculate the turbulent advection terms and modying the rhs and lhs setup procedures to accept these turbulent advection terms as inputs. Before, the turbulent advection terms were calcualted within the rhs and lhs setup procedures, but this resulted in expensive redundant calculations. larson-group/clubb#855 (details)
  501. Changing where statement that was causing floating point errors to a do with if's. This should allow code compiled with the newest version of gfortran to run to completion for microphysics enabled cases. This is BIT_CHANING in microphysics cases, but the values of the output arrays of the only changed subroutine only differ starting around roughly the 13th decimal place. larson-group/clubb#859 larson-group/sys_admin#626 (details)
  502. I am committing a test where I changed subroutine ADG1_w_closure (details)
  503. Changing determination of threshold used to clip large values of rtp2. Before it was possible that this large value clipping introduced a value before tolerance, if rtm was too small. Causing addition problems and potentially crashes. This is BIT_CHANGING. larson-group/clubb#862 (details)
  504. Finally fixing line length error in pdf_closure (details)
  505. Adding more Lapack source files, and a new file to interface with Lapack routines in general. This allows us to call a general interface procedure that can handle single or double precision routines. This should fix the ifort bug we've been seeing, and should be a more robust way to handle this double/single precision situation in general. Works with all compilers, and in single or double precision, producing bit identical results. See larson-group/clubb#861 (details)
  506. Adding more Lapack source files, and a new file to interface with Lapack routines in general. This allows us to call a general interface procedure that can handle single or double precision routines. This should fix the ifort bug we've been seeing, and should be a more robust way to handle this double/single precision situation in general. Works with all compilers, and in single or double precision, producing bit identical results. See larson-group/clubb#861 (details)
  507. Adding blunt clipping to below ground level of xm variables, keeping their value at least tolerance. This prevents the crashing of mc3e caused by rtm being < 0. This is BIT_CHANGING, but only for mc3e, and the plots are very similar. Which must mean that mc3e is our only case where rtm becomes too small. larson-group/clubb#862 (details)
  508. This commit is BIT_CHANGING. It is mainly because 1) We changed the equation of tau_xp2_zm, producing a better agreement with LES. 2) Many parameters have been retuned. We reduce nu2 and c_k2, because they bring us stronger scalar variances,especially for RFO1. We set C1=1, because it helps to reduce wp2 near cloud top. We also set C6=2 to generate stronger fluxes etc. (details)
  509. Update advance_helper_module.F90 (details)
  510. Update advance_clubb_core_module.F90 (details)
  511. Update advance_helper_module.F90 (details)
  512. Adding C_invrs_tau_N2_wpxp to the initmax namelist. This should fix the fire tuning crashes. larson-group/sys_admin#626 (details)
  513. I am adding a file for the new hybrid PDF, which combines the w equation set (details)
  514. I updated the function to calculate the implicit coefficient for the wp4 term, (details)
  515. I made some changes to new_hybrid_pdf.F90 so that it would compile in its (details)
  516. I edited that subroutine that calculates the implicit coefficient and explicit (details)
  517. I updated the subroutine that calculates the implicit coefficient and explicit (details)
  518. Replaced rrm_cond with rrm_evap and Nrm_cond with Nrm_evap because they described the same quantity. This is BIT_CHANGING just because the output now contains the N/rrm_evap instead of N/rrm_cond variable name. No changes were made to the values themselves. (details)
  519. I am adding a new file, new_hybrid_pdf_main.F90, as a driver file for the new (details)
  520. I worked more the functions for the new hybrid PDF. (details)
  521. Refactoring advance_xp2_xpyp to have the capability to perform only one combined solve when the lhs matricies are equivalent. larson-group/clubb#855 (details)
  522. I changed all the PDF utility functions in pdf_utilities.F90 to elemental (details)
  523. I forgot a "then" to go with an "elseif". (details)
  524. Removed all use statements involving silhs flags from the SILHS files below the API level and putting the flags into the argument lists. (details)
  525. Adding intent(in) attribute to rhs_ta terms and making scalar forcings local variables, since that is what they were supposed to be. larson-group/clubb#855 (details)
  526. Adding case to and modifying xp2_xpyp_solve to remove the need for xp2_xpyp_solve_multiple. larson-group/clubb#855 (details)
  527. Refactoring advance_xm_wpxp to clean up code. Now subroutines solve_xm_wpxp_with_multiple_lhs and solve_xm_wpxp_with_single_lhs are called, rather than having huge chunks of similar code. Also changing the way calc_xm_wpxp_ta_terms works, it uses other input variables rather than coef_ and term_ arguements and instead calculates those locally to abstract functionality. This is BIT_CHANGING for some cases, but idenetical for some with some compilers. There are no visible differences in plots when tested with a number of different flags, and gabls2 (which uses scalars) are also the same. larson-group/clubb#855 (details)
  528. I am continuing to build the driver subroutine for the new hybrid PDF. (details)
  529. I am continuing to work on the driver file for the new hybrid PDF. (details)
  530. I have completed the main parts of the driver subroutine for the new hybrid PDF. (details)
  531. The code for the new hybrid PDF now compiles. (details)
  532. I added an entry for the new hybrid PDF. (details)
  533. I have added the new hybrid PDF to the G unit tests. (details)
  534. Mathematically, sigma_x_1_sqd and sigma_x_2_sqd cannot be less than 0. (details)
  535. I added code to interface the call to the new hybrid PDF with pdf_closure (details)
  536. I interfaced the implicit coefficients and explicit terms used in the turbulent (details)
  537. I fixed a small error.  The code compiles again now. (details)
  538. Updated the larson-group.com urls to http://carson.math.uwm.edu/larson-group (details)
  539. Updated the larson-group.com urls to http://carson.math.uwm.edu/larson-group (details)
  540. Pushing down loops over transform_uniform_samples_to_pdf and resolving many if statments beforehand by copying values to new arrays with an additional sample index. This is all bit-for-bit. larson-group/clubb#869 (details)
  541. Replacing the lapack function with a simple loop to multiply a pdf_dim x pdf_dim array by a pdf_dim vector. The arrays are too small to justify using lapack. This ends up slightly faster and allows a lot more flexibility which is going to be needed shortly. This is BIT_CHANGING, but not answer changing. larson-group/clubb#869 (details)
  542. I have added code that allows CLUBB to run interactively using the new hybrid (details)
  543. I am updating the subroutine that calculates PDF component means and standard (details)
  544. I placed proper thresholding on interpolated up2 and interpolated vp2 (details)
  545. I introduced the silhs_config_flags_type in clubb which now handles all SILHS config flags. (details)
  546. I added a limiter to keep the maximum magnitude of the correlations of (details)
  547. I upgraded Nc_Ncn_eqns.F90 to use elemental functions. (details)
  548. The new hybrid PDF also uses this bit of code that sets the correlation (details)
  549. I made modifications to the new hybrid PDF so that that calculation of F_w (details)
  550. Minor clean-up. Writing 'Intent(in)' in call to 'generate_uniform_sample_at_k_lh_start' and adding descriptions for input and output arguments in 'initialize_silhs_config_flags_type(_api)' and 'set_default_silhs_config_flags(_api)'. #856 (details)
  551. Fixed small typo I accidentally introduced in my last commit. (details)
  552. I added the ability to handle scalars interactively to the new hybrid PDF. (details)
  553. I found a couple of spots in the new hybrid PDF where I needed to add (details)
  554. I added init_pdf_implicit_coefs_terms_api to clubb_api_module.F90. (details)
  555. The variable type implicit_coefs_terms needs to be made public (details)
  556. I changed the value of the coefficient in the F_w equation to 0.45 (details)
  557. I am updating the code to pass up3, vp3, and sclrp3 out of advance_clubb_core (details)
  558. Replacing algorithm that calculates the inverse CDF. It's only accurate to single precision, so the uniform samples are clipped to be within a valid range for the algorithm to always be accurate. This is BIT_CHANGING for silhs enabled cases, but plots are visibly identical for rico_silhs. larson-group/clubb#869 (details)
  559. I have added a print subroutine for the SILHS configurable flags. #856 (details)
  560. I have started the process of adding the coding infrastructure (details)
  561. I have completed the addition of the ability to use different up2 (details)
  562. I have added 'l_use_precip_frac', 'l_do_expldiff_rtm_thlm', 'l_use_C11_Richardson' and 'l_prescribed_avg_deltaz' to the 'configurable_clubb_flags_nl' namelist. The latter was moved from 'model_setting' namelist. #856 (details)
  563. I made the l_calc_w_corr code (turned off by default) run again by (details)
  564. I added a few more flags to the 'configurable_clubb_flags_nl' namelist. Also I gave 'l_use_wp3_pr3' the parameter attribute. (details)
  565. I have started altering argument lists to feed clubb configurable flags through them. This commit has 'l_use_precip_frac', (details)
  566. I continued to alter argument lists. This commit covers 'l_C2_cloud_frac', 'l_diffuse_rtm_and_thlm', 'l_stability_correct_Kh_N2_zm', (details)
  567. I continued to alter argument lists. This commit covers ' l_vert_avg_closure', 'l_trapezoidal_rule_zt', 'l_trapezoidal_rule_zm', (details)
  568. Adding more clipping to the uniform sample values, and reducing the treshold. This is BIT_CHANGING. larson-group/clubb#869 (details)
  569. I continued to alter argument lists. This commit covers the last flags in the namelist 'configurable_clubb_flags_nl', namely 'l_predict_upwp_vpwp', (details)
  570. I continued to alter argument lists. This commit covers the last flags in the namelist 'configurable_clubb_flags_nl', namely 'l_predict_upwp_vpwp', (details)
  571. Changing values to use core_rknd precision. larson-group/clubb#869 (details)
  572. Cleaning up clip_transform_silhs_output and removing the X_nl_all_levs_raw variable. This is all bit-for-bit. larson-group/clubb#869 (details)
  573. Changing X_nl_all_levs to inout in clip_transform_silhs_output_api, this was missed in the last commit. larson-group/clubb#869 (details)
  574. Finished altering argument lists. This commit covers the final seven flags, which are in different namelists. (details)
  575. Finished altering argument lists. This commit covers the final seven flags, which are in different namelists. (details)
  576. Pushing a loop down and other small performance refactorings. This is bit-for-bit. larson-group/clubb#869 (details)
  577. I introduced the 'clubb_config_flags_type'. Furthermore, I have created subroutines to set default values, to initialize the derived type and to print the derived type. (details)
  578. I enabled the use of the 'clubb_config_flags_type'. I changed 'clubb_standalone', 'clubb_tuner' and the G_unit_tests so that they now use it. The results are bit-for-bit identical. #856 (details)
  579. I enabled the use of the 'clubb_config_flags_type'. I changed 'clubb_standalone', 'clubb_tuner' and the G_unit_tests so that they now use it. The results are bit-for-bit identical. #856 (details)
  580. I have removed the 'rc_estimate' subroutine in 'src/SILHS/est_kessler_microphys_module.F90' because it was not working properly. I changed the 'autoconv_estimate' subroutine in the same file to be able to calculate both 'lh_AKm' and 'lh_rcm_avg' with it. I renamed that subroutine to 'calc_estimate'. #692 (details)
  581. I fed pdf_params_frz into subroutine advance_clubb_core (details)
  582. Adding error code to arguement list of non-api routines where it was included in the api version. (details)
  583. Moving location of error messages that were in advance_clubb_core. Adding error code setting to those spots as well, they should be fatal. (details)
  584. Added use statement for pdf_params_frz in src/CLUBB_core/clubb_api_module.f90 and made it public. (details)
  585. I have fixed the warnings for lines exceeding 100 characters. (details)
  586. I have fixed the warnings for lines exceeding 100 characters. (details)
  587. Passing individual flags into setup_clubb_core, rather than the type container for them. This is done for code clarity. (details)
  588. Adding GPU code to portion of SILHS, and refactoring minor aspects of code structure. larson-group/clubb#869 (details)
  589. Removing problems. This should fix the compiler error. (details)
  590. Making subroutine to generate random samples and weights on CPU's, this will be accompanied by one for GPU's shortly. This is bit-for-bit. larson-group/clubb#869 (details)
  591. Simplifiying call trees a bit, removing unused procedures, and creating a random pool to be used where random numbers were being used. This pool allows all randoms to be generated at the same time, which is better for CPUs and (as far as I know) the only decent way to do this on GPUs. Becuase of the different random numbers, this is BIT_CHANGING. larson-group/clubb#869 (details)
  592. Trivial update to test if cams autoupdate works (details)
  593. Changing clipping of uniform samples. This is the same fix from commit afe34fb444a47aa4cb8bcc8b9cbcaeceb0539c9f, but was accidentally reverted in commit 766a5934a8352a556ed5ba2cfeac6aa547f76f86. larson-group/clubb#869 (details)
  594. Commiting a space, because the last commit, be3699d840ed6bc3ff52dc5d397a74767ecdc414, is BIT_CHANGING. (details)
  595. Simplifying call tree some more, moving around where calculations are done so that GPU code doesn't have to be interrupted with data copies or CPU code. This is bit-for-bit. larson-group/clubb#869 (details)
  596. Lots of GPUizing and reorganizing calls. This is bit-for-bit. larson-group/clubb#869 (details)
  597. Revert "I am setting model flags and tunable parameters in the clubb_E3SM_silhs branch" (details)
  598. Moving sample point clipping to after the sampling drivers, rather than immediately after generate_uniform_lh_sample. This was causing sample points to end up out of range when compiling in single precision, which is why the nightly tests were failing for PGI. This should be BIT_CHANGING. larson-group/clubb#869 (details)
  599. I placed E3SM preprocessor commands around E3SM-specific code in (details)
  600. Restoring assertion check for the vertical correlation calculation. larson-group/clubb#869 (details)
  601. Changing the error treshold in assert_correct_cloud_normal to use the previously defined single precision threshold. This should fix occasional errors. larson-group/clubb#869 (details)
  602. I added E3SM's clubb_ parameters that can be read in from the (details)
  603. I added the remainder the clubb_ terms that were added previously to (details)
  604. Changing error threshold in assert_correct_cloud_normal and fixing bug where we weren't passing the correct array section. This should fix the WRF parallel test and the PGI test. larson-group/clubb#869 (details)
  605. Small updates to acc kernel statments for general performance improvement. This is bit-for-bit. larson-group/clubb#869 (details)
  606. Redoing some data directives to only copy data that we need off the device. Data that is needed by assertion checks and stats will be updated conditionally. This will make the code faster when no stats/assertion checks are being done, but slower when it is. This is all bit-for-bit. larson-group/clubb#869 (details)
  607. Adding space because commit a8e61923fa19887baef220aa1a7c8be0f773770f was BIT_CHANGING. larson-group/clubb#869 (details)
  608. Simple performance improvement refactoring. Merging loops and creating tmp variable to use to help reduce memory usage. This changes the order of operations so this is BIT_CHANGING. larson-group/clubb#869 (details)
  609. Small performance improvement. Almost reverting the loops to their previous form using the unbounded_point variable. This is all bit-for-bit. larson-group/clubb#869 (details)
  610. Removing lh_clipped_vars and replacing functionality with arrays. larson-group/clubb#869 (details)
  611. Update latin_hypercube_driver_module.F90 (details)
  612. Update parameters_tunable.F90 (details)
  613. GPUizing clip_transform_silhs_output and pushing data directives up call tree. This is all bit-for-bit. larson-group/clubb#869 (details)
  614. Making some data copying regions asyncronous with compute regions, improving performance. This is bit-for-bit. larson-group/clubb#869 (details)
  615. I changed the dummy argument 'value' in the 'stat_update_var' subroutine from explicit to assumed size. #874 (details)
  616. I added the new l_update_pressure configurable flag to clubb_config_flags. (details)
  617. I added some code I used in the special input fields branch to make (details)
  618. An improved NaN-Inf checker. It is based on IEEE_ARITHMETIC. (issue#875)[https://github.com/larson-group/clubb/issues/875] (details)
  619. I revert the changes from commit 'fbcbd86' from February 14th 2020 to resolve an issue with SAM CLUBB. For details see #874. (details)
  620. I got rid of the "allocatable", "allocate", and "deallocate" statements (details)
  621. I placed an ifndef CLUBB_CAM preprocessor flag around the code in (details)
  622. I reduced the minimum possible value of lmin from 4.0 to 1.0. (details)
  623. I made a print/write statement debug level 3 (details)
  624. I made a second print/write statement debug level 3 (details)
  625. I fix a print/write statement debug level3. For #755 and #800 (details)
  626. I am replacing the "use" statements that referenced (details)
  627. I "brought back the stats" by passing the stats from advance_clubb_core (details)
  628. Removing the reference to variables_diagnostic_module (sigma_sqd_w_zt and rtm_ref) (details)
  629. Results were changed yesterday for some cases because thlprcp was (details)
  630. I have resolved all the issues surrounding recent CLUBB commits that (details)
  631. I removed code that stops a run if the output time step is less than a minute. (details)
  632. I removed references to variables_prognostic_module and (details)
  633. Fixed a boo-boo. (details)
  634. I set `l_diag_Lscale_from_tau = .true.` in source code (details)
  635. I removed references to variable_diagnostic_module for various Kessler (details)
  636. I removed the reference to use variables_diagnostic_module for Kh_zm (details)
  637. Removed a reference to variables_diagnostic_module for Kh_zm in (details)
  638. I am able to remove references to variables_prognostic_module and (details)
  639. I removed the l_use_ice_latent flag from the code, and along with it (details)
  640. I have completed the project of removing variables_prognostic_module (details)
  641. I added some missing threadprivate statements (details)
  642. I have taken the code from wp2_term_ta_all and placed it in the subroutine (details)
  643. I am updating wp3_term_ta_new_pdf_lhs to use the optimized code from (details)
  644. This commit is BIT_CHANGING.  It makes the parameter values in parameters_tunable.F90 agree with those in tunable_parameters.in (details)
  645. I am making the change of using tau_wp2_zm to damp up2 and vp2, (details)
  646. I have added the integer flags iiPDF_type and ipdf_call_placement (details)
  647. I am going to make primary PDF type options and primary PDF call (details)
  648. I added E3SM customizations to CLUBB's master branch.  This is meant (details)
  649. I am updating the clubb_ list of namelist parameters used in E3SM (details)
  650. Typo (details)
  651. Fixed more typos (details)
  652. I am changing the new hybrid PDF's calculation of F_w to use (details)
  653. I updated the xp3 calculation for PDF types other than ADG1. (details)
  654. This xp3_coef_ parameters produce new hybrid PDF results similar to the old (details)
  655. I added the 2 new parameters in the simple xp3 equation (for PDF (details)
  656. I have combined the wp3_term_ta_ADG1_lhs and wp3_term_ta_ADG1_lhs_all (details)
  657. I added the partially upwinded implementation of the wp3 turbulent advection (details)
  658. Removed unused module imports (details)
  659. Removed unused module imports (details)
  660. Removed a comma that I missed while removing unused imports (#878) (details)
  661. I am adding l_partial_upwind_wp3 to the list of clubb_config_flags. (details)
  662. Deprecating use of l_Lscale_vert_avg in SILHS. This is causing problems with the GPUization efforts, described in larson-group/cam#129 (details)
  663. I started the process of paring 2 subprograms back down to 1 in (details)
  664. I pared two more sets of equivalent subprograms down to 1 (each). (details)
  665. Paring down 2 equivalent subprograms to 1 again. (details)
  666. I condensed two more sets of doubled subprograms down to 1 (each) (details)
  667. Reduced two more sets of "doubled" subprograms down. (details)
  668. Updating silhs to prepare the column loop commit. This is being committed seperately because it is BIT_CHANGING, due to the way we are initializing the random number generator on CPUs. larson-group/cam#129 (details)
  669. Adding column loop index to silhs, and pushing loops down to allow parallelization over the column index. This requries changing the api, but it is bit-for-bit running on both gpus and cpus. larson-group/cam#129 (details)
  670. I updated CLUBB's copyright date range. (details)
  671. Adding interface in silhs_api to distinguish single vs multiple comulmn calls. This seems to be a better solution than the previous attempt that broke the nightly tests. When calling silhs a single column at a time, the api will copy the single column data into arrays with a grid column index, allowing us to leave the host models the same. larson-group/cam#129 (details)
  672. Removed unused parameters [-Wunused-parameter] (details)
  673. Removed unused parameters [-Wunused-parameter] (details)
  674. Taking more duplicated subprograms and paring them down to 1. (details)
  675. Replaced real checks with an epsilon approach [-Wcompare-reals] (details)
  676. Replaced real checks with an epsilon approach [-Wcompare-reals] (details)
  677. Removed unused imports [-Wunused-parameter] (details)
  678. Removed unused imports [-Wunused-parameter] (details)
  679. Removed styleguide violations from my code (details)
  680. Fixed a backwards epsilon comparison from 8e8e71e (details)
  681. Removed the "doubling" of the remainder of the subprograms from (details)
  682. Changing epsilon used in equality comparison. The previous epsilon seems to be too large, and was causing failures in runs. larson-group/clubb#878 (details)
  683. Small changes to generate_all_uniform_samples. I was encountering a gpu problem with this code when run in cam. I'm not certain why this is an issue, but this changes fixes it and is bit-for-bit on both cpus and gpus. larson-group/cam#129 (details)
  684. Changed the length of solve_type_str to 20 [-Wcharacter-trucation] (details)
  685. Removed unused arguments [-Wunused-dummy-argument] (details)
  686. Removed unused arguments [-Wunused-dummy-argument] (details)
  687. Removed unused variables [-Wunused-variable] (details)
  688. Removed unused variables [-Wunused-variable] (details)
  689. I have tidied up advance_wp2_wp3_module.F90, and I have removed all doubled (details)
  690. Removed continue and undid edits to _api fuction signatures (details)
  691. Removed continue and undid edits to _api fuction signatures (details)
  692. I handled the "doubled" subprograms in turbulent_adv_pdf.F90. (details)
  693. Making change explained in larson-group/clubb#878 (details)
  694. Removed some unused variables (ifort) (details)
  695. Removed some unused variables (ifort) (details)
  696. Adding functionality to pass in a seed for the random number generator. This allows CPU restart runs to function correctly. Because this also changes the seed, this is BIT_CHANGING. larson-group/cam#129 (details)
  697. Removed unused import [-Wunused-variable] (details)
  698. Removes unused function calc_cloud_frac [-Wunused-function] (details)
  699. Fixes style issue (details)
  700. Removed import without only as it was unused (details)
  701. Adds mpishorthand back with only, it appears to be used somewhere (details)
  702. I have pared two subprograms down to one again, this time for the (details)
  703. I pared down subprogram pairs again, this time for mean advection. (details)
  704. I added altitude_threshold to the list of CLUBB's tunable parameters. (details)
  705. Updating clubb variables to output their var_description in the form '[variable name using sci notation], [Textual descirption]' in an effort to provide more standardized titles for pyplotgenplots. (details)
  706. Updating previous commit to not have lines over 100 characters. This commit shouldn't be BIT_CHANGING, but the previous commit was (and was supposed to be). (details)
  707. Adds more debug lines (details)
  708. Removes debug lines (details)
  709. Adds debug lines and changes format (details)
  710. Modifies debug line (details)
  711. Modifies debug line (details)
  712. Initialize ncf%ntimes to 0 when opening netcdf for writing (details)
  713. Removes debug lines (details)
  714. Changes length of units variable in stat_file_module from 20 to 25 (details)
  715. This commit resolves issue #885 and gets the 2D output working, if the relevant flags are set to true.  A duplicated allocate statement is eliminated, and to ensure that the 2D output occurs at the right intervals (every stats_tout seconds) I have also added approrpiate if statements at the beginning of the 2D output subroutines. (details)
  716. Adding API subroutines for latin_hypercube_2D_output and latin_hypercube_2D_close.  This will aid in implementing the SILHS 2D output subroutines in host models.  The new API subroutines necessitated some minor changes in clubb_driver.F90 as well.  Mainly relevant to https://github.com/larson-group/wrf/issues/110 (WRF repo), but see also #885 (CLUBB repo). (details)
  717. I updated the stats code in setup_clubb_pdf_params.F90 and in (details)
  718. I updated the stats code in setup_clubb_pdf_params.F90 and in (details)
  719. This commit primarily overhauls the way the 2D SILHS samples are output to netCDF.  Now, instead of being output along the latitude dimension in a 4d netCDF file, the SILHS samples are output along the "lh_sample_number" dimension of a 5d netCDF file.  Furthermore the lat/lon dimensions of the 2D SILHS sample files are now output with the correct lat/lon information. (details)
  720. This commit primarily overhauls the way the 2D SILHS samples are output to netCDF.  Now, instead of being output along the latitude dimension in a 4d netCDF file, the SILHS samples are output along the "lh_sample_number" dimension of a 5d netCDF file.  Furthermore the lat/lon dimensions of the 2D SILHS sample files are now output with the correct lat/lon information. (details)
  721. Undoing accidental find and replace. larson-group/cam#129 (details)
  722. Updated titles listed for change here: https://github.com/larson-group/sys_admin/issues/542#issuecomment-685963832 (details)
  723. Fix super serious 1 character bug that broke all of the things (details)
  724. I am committing Zhun's changes to the CLUBB portion of his (details)
  725. Update stats_zm_module.F90 (details)
  726. I added Cx_min, Cx_max, Richardson_num_min, and Richardson_num_max (details)
  727. I connected the new tunable parameters to advance_helper_module.F90. (details)
  728. I added l_use_shear_Richardson to CLUBB's configurable model flags. (details)
  729. Adding linear multistep method (LMM) stepping flag (l_lmm_stepping) to provide capability of overstepping-and-then-averaging results from advance_wp2_wp3, advance_xm_xpwp, and advance_xp2_xpyp.  This is intended to help smooth high-frequency oscillations.  Flag is set to false by default so has no impact on standard runs. (details)
  730. In order to prevent dycoms2_rf02_so from crashing, (details)
  731. I updated the recording of the budget terms for upwp_pr4 and vpwp_pr4. (details)
  732. Adding the smooth_min and smooth_max functions to the repo.  These are not yet implemented in CLUBB but are now available for use and testing. See issue #894. (details)
  733. Adding some comments describing zm and zt for the new interface functions, and fixing a problem in the "array_sclr" versions of the functions.  See issue #894. (details)
  734. Modifying some array dimensions to speed up multiply_Cholesky. This cuts the cost of multiply_Cholesky by about 60% in cam but only about 15% in clubb_standalone. larson-group/cam#129 (details)
  735. This commit replaces division by tau with multiplication by inverse tau in most cases.  It is BIT_CHANGING, not only because the results change (only very slightly in some cases, but more significantly in sensitive cases like ARM_97, RICO, etc.) but also because some of the old tau_*_zm or tau_*_zt output variables are replaced with invrs_tau_* variables, hence the netcdf files will differ and there are minor changes to stats input files.  Spurious source test also needed to be slightly modified to accommodate a new variable fed into the advance_xm_wpxp subroutine. (details)
  736. I am committing a bug fix to the invrs_tau_zm equation that was (details)
  737. CLUBB and pyplotgen changes: (details)
  738. I fixed the LMM stepping bug that was affecting E3SM (because (details)
  739. Fixed alignment. (details)
  740. This commit introduces a new flag, l_e3sm_config, which enables the user to switch on or off some of the changes introduced in connection with the E3SM merge (see commit https://github.com/larson-group/clubb/commit/cf5b2e4b80d8bd3ca411b9b5e6d5a2afece04795). It also introduces two new tunable parameters, C_invrs_tau_wpxp_Ri and C_invrs_tau_wpxp_N2_thresh, to replace two "magic numbers" in the code.  The primary code changes are in advance_clubb_core_module.F90. (details)
  741. Update parameter_indices.F90 (details)
  742. Update model_flags.F90 (details)
  743. Adding new flag that allows the user to implement the TKE formulation of the wp3 C15 term (known currently as bp2, but ultimately will be called pr3).  See issue #884. (details)
  744. Separating out the parameter C5 into C_uu_shr and C_uu_buoy, consistent with the formalism of Mironov and Machulskaya 2017. C5 has been effectively renamed C_uu_shr, and a new parameter C_uu_buoy has been introduced.  See https://github.com/larson-group/clubb/issues/901. (details)
  745. I am now passing vert_decorr_coef into SILHS instead of involving (details)
  746. This commits further updates related to splitting the parameter C5 into C_uu_shr and C_uu_buoy (see this commit: https://github.com/larson-group/clubb/commit/3f75a27dd94673a2b8603c24b989da106e759b39).  Changes include correcting one instance where C_uu_shr was passed to a function when C_uu_buoy should've been passed, and also now applying the changes to up2 and vp2, which was overlooked before.  I've also updated the comments to remove, where appropriate, references to "C_5" that were missed before (in a few places I have left the C_5 in place but included a note indicating that it has now been broken up). (details)
  747. Adding a test to make sure new C_uu_buoy parameter is within the valid range. See #901. (details)
  748. This commit renames the wp3 budget term from "bp2" to "pr_turb", and renames the related parameter "C15" to "C_wp3_turb".  The majority of files changed are supplemental files such as postprocessing files for plotgen and pyplotgen and tuner files and input files. (details)
  749. This will allow for a better interface of SILHS parameter (details)
  750. Fixed a preprocessor command. (details)
  751. I'm adding the api entry for read_silhs_parameters, called (details)
  752. Revert "I'm adding the api entry for read_silhs_parameters, called" (details)
  753. Revert "Fixed a preprocessor command." (details)
  754. Revert "This will allow for a better interface of SILHS parameter" (details)
  755. I updated silhs_api_module so that vert_decorr_coef is publically available (details)
  756. Incorporating Shixuan Zhang's and Chris Vogl's "l_godunov_upwind_wpxp_ta" flag and related code.  The flag is set to false by default so results are unaffected.  See #902. (details)
  757. Updating advance_xm_wpxp_module so that the upwp_pr4 term uses the parameter C_uu_shr instead of the hard-coded value 0.7. Also updating the value of C_uu_shr from 0.3 to 0.4 after testing priority-cases with the new upwp_pr4 term. (details)
  758. Moving the acc update host directive to after the wait directives in silhs. Since silhs runs with asyncronous kernel calls the update was occasionally happening before some clipping was finished, causing problems in assert_correct_cloud_normal. This is only a problem when compiling with OpenACC enabled, so it should be bit identical for all our tests. larson-group/cam#129 (details)
  759. Update parameters_tunable.F90 (details)
  760. Reording vertical and subcolumn dimensions in SILHS. This is BIT_CHANING in some cases, seemly due to an outputting error for the precip_rate field, but plotted results are identical. larson-group/cam#129 (details)
  761. Changing dimension order of rand_pool to make consistent with previous reorderings. This is BIT_CHANGING for silhs cases since it changes the order in which random numbers are used. larson-group/cam#129 (details)
  762. Changes non-success `stop` statements to `error stop` (details)
  763. Changes non-success `stop` statements to `error stop` (details)
  764. Adding Shixuan's godunov_xpyp_ta updates here in case we want to merge them into our master branch.  See #902. (details)
  765. Turning on wp3 pr_turb term. (details)
  766. Changed the variable up2_vp2_factor to up2_sfc_coef in all files (details)
  767. I added an option to improve dry, convecting boundary layers. (details)
  768. This commit switches the names, but not the values, of the dp1 and pr1 variables for up2 and vp2.  In other words, up2_dp1 <---> up2_pr1 and vp2_dp1 <---> vp2_pr1.  This makes the terms in these equations more consistent with the terms in the wp2 equation.  I believe this commit is BIT_CHANGING since it will affect the values of these variables even though the nightly plot profiles should not change (but the budget plots would have these lines swapped). (details)
  769. Changed surface to sfc in all instances where requested (details)
  770. Undid sfc change in stats_sfc_module.F90 (details)
  771. Undid sfc change to grid_class.F90 (details)
  772. Undid sfc change in numerical_check.F90 (details)
  773. Pushing grid column loop into setup_pdf_params. Adding iterface too, allowing us to call it with single or multiple columns so that the host models don't need updating to work with this change. This is bit-for-bit, tested with clubb_standalone and cam coarse res run. larson-group/cam#129 (details)
  774. Broke up column loop inside setup_pdf_params. This is all bit-for-bit. larson-group/cam#129 (details)
  775. Fixed typo bug. larson-group/cam#129 (details)
  776. Pushed down some more loops in setup_pdf_params. All bit-for-bit. larson-group/cam#129 (details)
  777. More pushing loops down. All bit-for-bit. larson-group/cam#129 (details)
  778. More loop pushing. All bit-for-bit. larson-group/cam#129 (details)
  779. More loop pushing. All bit-for-bit. larson-group/cam#129 (details)
  780. Adding comments explaining why component_corr_x_hm_n_ip uses corr_array_n_cloud twice. larson-group/cam#129 (details)
  781. More loop pushing, all bit-for-bit. larson-group/cam#129 (details)
  782. Adding one_half to use statement. This was a bug preventing compilation when using the ifort compiler with the MKL functions. (details)
  783. Moving use statement for one_half inside ifdef, since it is only needed if compilation with MKL functions is enabled. (details)
  784. Reducing the number of calls to Cholesky_factor. This is bit-for-bit for all standalone cases and our coarse res version of cam. larson-group/cam#129 (details)
  785. Reordering dimensions of mu, sigma, corr_arrays, and cholesky matrices. This makes the dimension ordering more consistent with similar arrays and should help to reduce computational cost by reducing array slicing. This is all bit-for-bit. larson-group/cam#129 (details)
  786. Reordering dimensions of mu, sigma, corr_arrays, and cholesky matrices. This makes the dimension ordering more consistent with similar arrays and should help to reduce computational cost by reducing array slicing. This is all bit-for-bit. larson-group/cam#129 (details)
  787. Performance improvements from chaning loop orderings and redundant operation reduction. All bit-for-bit. larson-group/cam#129 (details)
  788. Reordering dimensions on some arrays. This is bit-for-bit. larson-group/cam#129 (details)
  789. Reducing operations. All bit-for-bit. larson-group/cam#129 (details)
  790. Adding 2D subroutine versions of some functions to improve performance. This is all bit-for-bit. larson-group/cam#129 (details)
  791. Some small cleanup, all just formatting. larson-group/cam#129 (details)
  792. Changed ustar from an array to a scalar issue #909 (details)
  793. Renamed Ri_zm to sqrt_Ri_zm and iRi_zm to isqrt_Ri_zm #909 (details)
  794. Created new subroutine and ensured it's BFB. All cases run sucessfully #909 (details)
  795. added in missing flag which was causing memory errors #909 (details)
  796. confirmed BFB with e3sam flag set to false and true, no other issues detected in mixing_length #909 (details)
  797. Update stats_zm_module.F90 (details)
  798. Adding dummy dimensions to calls to procedures that operate over 2 dimensions now, and remove 1D versions of those procedures. larson-group/cam#129 (details)
  799. Separating precip fractions from hyrdromet_pdf_params and creating a type of it's own for it. This is bit-for-bit. larson-group/cam#129 (details)
  800. Separating precip fractions from hyrdromet_pdf_params and creating a type of it's own for it. This is bit-for-bit. larson-group/cam#129 (details)
  801. Formatting and condensing if statements. All bit-for-bit. larson-group/cam#129 (details)
  802. Making hydromet_pdf_params optional in setup_pdf_parameters. larson-group/cam#129 (details)
  803. Reformatted mixing length to be more compliant with the coding standard #909 (details)
  804. added a reference to new subroutine #909 (details)
  805. Adding second dimension to allocatable arrays in pdf_parameter type. This also requires lots of dummy dimensions in clubb where pdf_params is used, since clubb only works over a single column, but silhs does not need such a dummy dimension. larson-group/cam#129 (details)
  806. Adding second dimension to allocatable arrays in pdf_parameter type. This also requires lots of dummy dimensions in clubb where pdf_params is used, since clubb only works over a single column, but silhs does not need such a dummy dimension. larson-group/cam#129 (details)
  807. Fixing lines that exceed 100 characters. (details)
  808. Fixing lines that exceed 100 characters. (details)
  809. Pushing loops related to pdf_params down. larson-group/cam#129 (details)
  810. clubb warnings introduced from merge have been removed #909 (details)
  811. Changed safeguard threshold in sigma_sqd_w. (details)
  812. Adding some new code that puts the diffusion term d(wp2*em)/dz into a new function, creates a new wp3 budget term (wp3_pr_dfsn), and adds that new budget term to pyplotgen. (details)
  813. Adding new coefficient to control the wp3 pressure diffusion term. (details)
  814. Some minor updates to advance_wp2_wp3 relevant to the pr_turb and pr_dfsn terms. (details)
  815. Converting em*d(em)/dz to d(em^2)/dz in the wp3_pr_turb term and fixing a typo. (details)
  816. Renaming C_wp3_turb --> C_wp3_pr_turb (BIT_CHANGING due to name change in netcdf output). (details)
  817. These changes add the new fourth-order moment variables wp2up2 and wp2vp2 to the CLUBB code. This requires a new function in pdf_closure_module since they must be calculated separately with a new formula, and they are fed through into advance_wp2_wp3 for use with the pr_dfsn subroutine. They are also added to the standard stats file and will be output to netcdf, hence this commit is BIT_CHANGING. (details)
  818. Putting the wp3_pr_turb formulation back to its d(rho*wp2*em)/dz form.  This would be a BIT_CHANGING commit since it would change the answers for the pr_turb term. However once this branch is merged into the master branch, results should be bit-for-bit since this term was only modified in the alternate branch. (details)
  819. Added intent comments for the following files: (details)
  820. Removing "if" statement around calculation of wp4 in pdf_closure_module.F90 and the same "if" statement around some further manipulation of wp4 in advance_clubb_core.  Results are bit-for-bit with this change, since normally all cases calculate wp4 anyway since the "if" condition was always satisfied in normal runs (but not, for example, in some tuning runs).  This was done because the new wp3_pr_dfsn term needs wp4 in its current formulation so it needs to always be calculated. (details)
  821. Removing some "use" statement variables from advance_clubb_core, since they are no longer used here but are now used in mixing_length.F90. (details)
  822. Fixed comment regarding wp3 splatting term. (details)
  823. Added intent comments. (details)
  824. Added intent comments. (details)
  825. Added intent comments for advance_xp2_xpyp_module.F90. (details)
  826. Makes surface clipping of wp3 consistent with clipping aloft, per #921. This is BIT_CHANGING since it affects how clipping is applied near the surface. (details)
  827. Deleting comments around the old "magic number" for the near-surface clipping. (details)
  828. Fixing fortran standards violation causing compiler errors with nvfortran. See larson-group/clubb#900 and larson-group/clubb#928. (details)
  829. Changed some elements of clubb to allow for better script execution (details)
  830. Fixed clubb not compiling (details)
  831. Feeding gr through the arg list where need only in the CLUBB_core dir. (details)
  832. Feeding gr through the arg list where need only in the CLUBB_core dir. (details)
  833. Reverted changes to clubb_api. For #886 (details)
  834. Replacing use gr statements with feeding gr throught the arg list. (details)
  835. Adding proper indentation to needed files. (details)
  836. Fixing spacing issue on blank lines. #886 (details)
  837. Fixed comment changes. #886 (details)
  838. Fixed incorrect spacing on use (details)
  839. Revert "Fixed incorrect spacing on use" (details)
  840. Fixed spacing (details)
  841. Fixed spacing going too far (details)
  842. Fixed comments being pushed over (details)
  843. Fixed not all variables being indented properly (details)
  844. Fixed indentation going beyond variables (details)
  845. Fixed file_functions indentation being off (details)
  846. Fixed indentation on operations being wrong (details)
  847. Reverted incorrect changes to new_pdf and new_hybrid_pdf (details)
  848. Fixed spacing issue when adding in gr. BFB identical. For #886. (details)
  849. Fixed spacing issue when adding in gr. BFB identical. For #886. (details)
  850. Removing gr as a module variable from grid_class. (details)
  851. Removing gr as a module variable from grid_class. (details)
  852. Fixing typo in stats_zm_module.F90.  Background:  Since this commit https://github.com/larson-group/clubb/commit/466c5383fa5c0cc85316c6d117826974a5e2e0a3# in August 2020 the upwp budget lines in Pyplotgen have not appeared to be balanced for any cases.  It turns out the reason is that a comma and space were added to the upwp_tp variable name in stats_zm_module.F90 in the August 2020 commit.  This unusual naming causes pyplotgen not to recognize this variable, so it doesn't get plotted and the lines appear unbalanced.  However, since the budget balance test still found the variable, it kept passing successfully.  This commit will fix the issue with the pyplotgen plotting by reverting the name to the standard format. (details)
  853. Fixing a typo from an earlier commit. (details)
  854. Feeding gr through arg list for functions outside of CLUBB_core. (details)
  855. Feeding gr through arg list for functions outside of CLUBB_core. (details)
  856. Moving 'gr' from front of arg list when being used as intent(inout) to conform to standard. #886. BFB. (details)
  857. The purpose of this commit is to see whether or not causing changes in sam's version of clubb will cause errors when the master branch of clubb gets merged intosam. Please ignore this commit unless everything breaks, in which case this is the reason why everything is broken. (details)
  858. Add error header for CLUBB in CAM (details)
  859. Fixing the ordering of gr in the clubb_api arg list for affected subroutines. (details)
  860. Fixing coding standard violations (details)
  861. Improving error messages in setup_clubb_core. larson-group/e3sm#38 (details)
  862. Feeding stats variables through the argument lists of needed subroutines. (details)
  863. Fixing spacing issues along with placing the stats varibales on their own lines. (details)
  864. Changing more subroutines to include stats vars in their arg lists. (details)
  865. Fixing incorrect subroutine arg list (details)
  866. Fixing host models not compiling. (details)
  867. Fixing argument list so that way the coding standard is upheld. (details)
  868. I changed the name to calc_responder_driver because I thought that (details)
  869. Code changes to introduce wp2_pr_dfsn, the wp2 pressure diffusion term, consistent with Lumley 1978.  Related to #920. (details)
  870. Fixing comment for the wp2_term_pr_dfsn subroutine.  Related to #920. (details)
  871. Updating wp3 pressure diffusion term to be consistent with the Lumley 1978 formula for the perturbation pressure. For #920. (details)
  872. Making requested changes to the wp2 pressure diffuion additions, including correcting some grid-level related issues.  Related to #920. (details)
  873. Fixing some comments. (details)
  874. Correcting a typo bug and adding some descriptive comments to two new variables.  This is a BIT_CHANGING commit becuase it will affect the newly calculated variables and descriptions in the output files, but it won't affect any plotted results. Related to #920. (details)
  875. Moving the stats variables to module variables of clubb_driver. (details)
  876. Moving the stats variables to module variables of clubb_driver. (details)
  877. Fixing coding standard viloation of lines exceeding 100 characters. (details)
  878. Fixing coding standard viloation of lines exceeding 100 characters. (details)
  879. Adding wp3_pr_tp (aka "negative nose" term) to wp3 equation.  Related to #920. (details)
  880. Changing the way the new wp3_pr_tp term works, by generalizing the wp3_terp_pr_lhs subroutine.  Also cleaning up comments and changing the description of the wp3_pr_tp variable in the netcdf output files, hence this commit is BIT_CHANGING, although it will not affect numerical results since the wp3_pr_tp coefficient (C_wp3_pr_tp) is set to zero. (details)
  881. Removing l_interp_prescribed_params from setup_clubb_pdf_params. (details)
  882. Adding comments labeling subroutine calls with intent. (details)
  883. Adding intent labels for subroutines throughout clubb. (details)
  884. Removing unnecessary constant from use statement (details)
  885. Eliminating l_nu_grid_dependent as requested. (details)
  886. Eliminating l_use_buoy_mod_Km_zm. (details)
  887. Eliminating l_iter_xp2_xpyp flag. (details)
  888. Eliminating l_apply_rule_to_pdf_params flag. (details)
  889. Eliminating l_ub_const_deriv flag. (details)
  890. Eliminating l_equation_21 flag. (details)
  891. Eliminating l_wp3_2nd_buoyancy flag. (details)
  892. Eliminating l_refine_grid_in_cloud and l_interactive_refined. (details)
  893. Eliminating l_use_experimental_term_pr2 and l_use_vert_avg_winds (details)
  894. Eliminating l_use_wp3_pr3 flag. (details)
  895. Eliminating l_clip_semi_implicit flag. (details)
  896. Adding intent labels for subroutines throughout clubb. (details)
  897. Eliminating l_single_C2_Skw flag. (details)
  898. Eliminating l_single_C2_Skw flag. (details)
  899. Eliminating l_include_ice and sat_ice_ratio. (details)
  900. Eliminating l_update_pressure flag. (details)
  901. Eliminating l_upwind_wpxp_ta flag. (details)
  902. Updating the surface clipping coefficient... (details)
  903. Adding in l_vary_convect_depth as requested. (details)
  904. Removing a couple of unused parameters from use statement. (details)
  905. Pushing k loop down through clip_variance_level. (details)
  906. Udpates to make it possible for us to keep certain parameters equal to each other during tuning. (details)
  907. Further tuner updates.  These updates introduce the option to give a minimum value for tuned parameters.  Error checks are included. (details)
  908. Updating some comments related to the tuner updates. (details)
  909. I have passed clubb_params down into advance_xm_wpxp_module.F90. (details)
  910. Adding space to trigger autoupdate. larson-group/sys_admin#755 (details)
  911. Remove space to trigger autoupdate. larson-group/sys_admin#755 (details)
  912. Add space to trigger nightly tests.  For larson-group/sys_admin#755. (details)
  913. See ticket (details)
  914. I am fixing a bug that was introduced in 6b0348e, where the logical (details)
  915. I have passed down CLUBB's tunable parameters into advance_wp2_wp3_module.F90. (details)
  916. added some documentation in pdf_close_module.f90 and started writing of w_up_in_cloud to disk (details)
  917. Updates to separate out C4 and C14 in advance_xp2 module.  This will make it easier to control which invrs_tau_* variable multiplies each term for example. (details)
  918. Changing the name of dummy_1d variables for clarity. (details)
  919. I passed down CLUBB's tunable parameters into advance_xp2_xpyp_module.F90 (details)
  920. Add a blank line to trigger nightly tests. (details)
  921. Passing down more of CLUBB's tunable parameters. (details)
  922. I accidentally removed an important comment in the previous commit. (details)
  923. Passing down more CLUBB tunable parameters. (details)
  924. More passing down CLUBB parameters ... whoop-de-doo (details)
  925. Passing down more tunable parameters and removing references to (details)
  926. Removing line to trigger the nightly tests for all repos. (details)
  927. See respective messages on the issue 958 on date 10/12/2021 (details)
  928. Handling the abomination that is lmin. (details)
  929. Commented out the k=1 boundary conditions in diffusion_zm_lhs and diffusion_zt_lhs, since these are not currently fed into the final LHS matrix.  I included comments to describe why this was done.  Results are b4b. (details)
  930. Passing tunable parameters into the new tau code. (details)
  931. Passed down more parameters. Results are bit-for-bit. (details)
  932. Passing through more clubb parameters. Bit-for-bit (details)
  933. Passing down CLUBB's tunable parameters into the setup_pdf_parameters and (details)
  934. These updates incorporate some of Shixuan Zhang's changes, including: (details)
  935. Passing down CLUBB's tunable parameters into the remainder of the (details)
  936. I passed down the forgotten thlp2_rad_coef tunable parameter. (details)
  937. Uncommenting diffusion.F90 k=1 lines again to fix Oracle uninit var test.  I've updated the accompanying note to state clearly that the lines have no effect on model output, but I guess we need to keep the lines to avoid uninitialized variables. (details)
  938. I am passing down the forgotten parameter, altitude threshold, in (details)
  939. Adding code wrapped in a flag (l_use_tke_in_K_dfsn) to use u_i'u_i' in the wp2 and wp3 eddy diffusion terms, instead of just wp2 or wp3.  Relevant to CLUBB issue #920. (details)
  940. Updates as requested to the l_use_tke_in_K_dfsn code: (details)
  941. I am committing the final stage of the "pass-down params" project. (details)
  942. I am committing the final stage of the "pass-down params" project. (details)
  943. Adding an option to use invrs_tau_N2_iso for C4 terms.  The same invrs_tau had been used for C4 and C14 terms, so some adjustments had to be made to separate them out (this was started with an earlier commit: https://github.com/larson-group/clubb/commit/ef3be1b1378bcd1a447f3866c9f88f8cc4764233).  The flag is currently set to false so results will be b4b. (details)
  944. Renaming invrs_tau_zt and invrs_tauw3t to "invrs_tau_wp3_zt" in advance_wp2_wp3 to avoid confusion.  This variable is only used for the wp3 C8 term, so one consistent name is simpler, and the name "invrs_tau_zt" is already used by another variable in advance_clubb_core. (details)
  945. Adding comments for clarity. (details)
  946. I forgot to add this necessary subroutine call to the clubb API. (details)
  947. Fixing a minor accounting bug related to the changes in https://github.com/larson-group/clubb/commit/987d63de489d2baa09ad6e1538b2c6dbb7551690.  There was some overcounting of the relevant terms. (details)
  948. I have turned the nu_vert_res_dep family of variables into a derived (details)
  949. Added sam file name to DYCOMS_RF02_DO case, fixed the clipping in calc_w_up_in_cloud in pdf_closure_module.f90, and changed long name of w_up_in_cloud in stats_zt_module.f90 (details)
  950. Resolved any issues in the pull request. See https://github.com/larson-group/clubb/pull/970 for details (details)
  951. Included a check in pdf_closure_module.f90 to check if flag for iw_up_in_cloud is set. Removed iw_up_in_cloud from standard_stats.in to prevent binary diffs in CLUBB output files after merge (details)
  952. fixed a typo in pdf_closure_module.f90, line 1284 (details)
  953. See ticket (details)
  954. added some documentation in pdf_close_module.f90 and started writing of w_up_in_cloud to disk (details)
  955. See respective messages on the issue 958 on date 10/12/2021 (details)
  956. Added sam file name to DYCOMS_RF02_DO case, fixed the clipping in calc_w_up_in_cloud in pdf_closure_module.f90, and changed long name of w_up_in_cloud in stats_zt_module.f90 (details)
  957. Resolved any issues in the pull request. See https://github.com/larson-group/clubb/pull/970 for details (details)
  958. Included a check in pdf_closure_module.f90 to check if flag for iw_up_in_cloud is set. Removed iw_up_in_cloud from standard_stats.in to prevent binary diffs in CLUBB output files after merge (details)
  959. fixed a typo in pdf_closure_module.f90, line 1284 (details)
  960. Passing w_up_in_cloud out of advance_clubb_core (details)
  961. fixed compiler warning regarding w_up_in_cloud (details)
  962. Remove clipping from a3_coef. (details)
  963. These changes allow you to call the 4 clubb "advance" subroutines in any (details)
  964. Placing the order variables in a nice, convenient place for testing use. (details)
  965. I reordered advance_clubb_core so that the "Advance xp3" (which is a (details)
  966. I am committing the idiot-proofing code that forces l_min_xp2_from_corr_wx (details)
  967. I am indenting the portion of the code where the advance subroutines (details)
  968. Temporarily commenting out the idiot proofing in order to run some tests ... (details)
  969. Now official reinstating the idiot-proofing and turning off the (details)
  970. I am committing some idiot proofing in regards to the advance (details)
  971. Updating CLUBB to pass uprcp and vprcp into and out of advance_clubb_core. (details)
  972. Now that uprcp and vprcp have been passed through advance_clubb_core, (details)
  973. I am adding more arguments to the argument list for advance_clubb_core (details)
  974. Insert print about overwriting default flags with namelist values (details)
  975. Insert print about overwriting default parameters with namelist values (details)
  976. Making api version of setup_grid. larson-group/clubb#972 (details)
  977. Making some paramters_silhs variables available from the silhs api (details)
  978. Comment out setting of fatal error (details)
  979. This should be BIT_CHANGING, but only because the value of Cx_min should change in the netcdf file. This will not be answer changing. (details)
  980. Changing the value of C_invrs_tau_shear from 0.02 to 0.15. (details)
  981. Avoiding stats call for variables that are not set when l_diag_Lscale_from_tau is not true. (details)
  982. Adjusting the value of C_invrs_tau_shear from 0.15 to 0.16 so that (details)
  983. Add l_smooth_Heaviside_tau_wpxp to smooth discontinuity in invrs_tau_wpxp_zm (details)
  984. Pushing column loop into advance_clubb_core, and adding interface for it so that we will not need to update any host models. Everything is bit-for-bit, testing all standalone cases and our cam_coarse res run. larson-group/clubb#972 (details)
  985. Adding l_stats check around stats stuff. This fixes the crashing when stats is disabled. larson-group/clubb#972 (details)
  986. Making single and multi column versions of advance clubb core available through clubb_api. larson-group/clubb#972 (details)
  987. Breaking up column loop in advance_clubb_core. larson-group/clubb#972 (details)
  988. Pushing loop into pdf_closure and breaking it up. larson-group/clubb#972 (details)
  989. I changed C_invrs_tau_N2_wp2 from 0.1 to 0.2 to help stop turbulence (details)
  990. Pushing loop into pdf_closure_module and breaking it up. larson-group/clubb#972 (details)
  991. Making the good version of pdf_params used most places. The bad version is the single column version. larson-group/clubb#972 (details)
  992. Making a commit that officially places the call to the PDF in the "post" (details)
  993. Pushing loops into all relevent lowest level routines in pdf_closure. larson-group/clubb#972 (details)
  994. Forgot an & symbol. (details)
  995. We need to initialize our local pdf_implicit_coefs_terms_zm in certain pdf types. We also don't need to zero out pdf_implicit_coefs_terms arrays, since that's done in the initialization. This should fix segfaults when l_call_pdf_closure_twice=.True. larson-group/clubb#972 (details)
  996. I am updating ice_supersat_frac to be an intent(inout) variable for (details)
  997. Intializing sigma_sqd_w_zt when not using ADG1. larson-group/clubb#972 (details)
  998. Fixing bug, we were not initializng pdf_params for all columns. larson-group/clubb#972 (details)
  999. Pushing column index into zm2zt and zt2zm. larson-group/clubb#972 (details)
  1000. Pushing column index into Skx_func and making it a subroutine. larson-group/clubb#972 (details)
  1001. A variety of small loop pushing. larson-group/clubb#972 (details)
  1002. Fixed small bug that slipped through because the G_unit tests use nz=1. (details)
  1003. Pushing column index into mixing length routines, not all the way down for the non-tau based calculation. larson-group/clubb#972 (details)
  1004. I added a subroutine that prints that values of all PDF parameters in (details)
  1005. Small changes and a loop push. larson-group/clubb#972 (details)
  1006. Pushing loop into advance_xm_wpxp. larson-group/clubb#972 (details)
  1007. Making the G_unit test use a dummy column index. This makes it so we don't need an interface for compute_sigma_sqd_w since now we only use it with 2 dimensions. This is just nicer. larson-group/clubb#972 (details)
  1008. Breaking up column loop in advance_xm_wpxp_module. larson-group/clubb#972 (details)
  1009. Pushing column loop into local functions. larson-group/clubb#972 (details)
  1010. Moving stats call for uprcp and vprcp to after they are calculated. This fixes the silhs restart test. But does not seem to fix the E3SM or CAM tests that are still failing. (details)
  1011. Adding 2D version of zt2zm and zm2zt to clubb_api (details)
  1012. Pushing loop into solve_xm_wpxp_with_single_lhs (#986) (details)
  1013. Refactoring to remove need for global stats scratch variables. (#988) (details)
  1014. Gunthers branch (#989) (details)
  1015. Fixing small bug that breaks runs with scalars. (details)
  1016. Implementations of smooth min, max and heaviside function. Added G-Unit tests (details)
  1017. Making setup_pdf_parameters accept ngrdcols size arrays of stats and grid types. (details)
  1018. Forgot two small changes. larson-group/cam#129 (details)
  1019. Removing need for data copies. larson-group/cam#129 (details)
  1020. Changing column loop index from j to i. larson-group/cam#129 (details)
  1021. Removing data copies that we don't need anymore. This still runs correctly on GPUs. (details)
  1022. Making clip_transform_silhs_output use an array of gr. This is how it should have been once the column loop was pushed down into it, but at the time clubb was using gr through a use statement making that not possible. (details)
  1023. No more need for these data copies anymore now that pdf_params is allocated with ngrdcol rather than pcols. (details)
  1024. Adds a blank line to trigger git merge with E3SM (details)
Commit 76cfc8ac782f64d335792fd4475d68b7b393395e by nieznan3
For other:ticket:362, adding our current license agreement to the source code.

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7753 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3654bf90d57d5852f46bb952ecf0b1324b2fdf0f
The file was modified advance_clubb_core_module.F90 (diff)
Commit edf87f57fa0f2065891886fa3c3af4f4158057ef by raut
For clubb:ticket:740, I added `l_rcm_in_cloud_k_lh_start` and `l_random_k_lh_start` to the microphysics namelist for experimentation.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7762 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 2621fce0646505533d66df07ebb1998798a3c852
The file was modified parameters_silhs.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 84313563e665c97522300ac19a8d39c20f0cc7d8 by raut
I made the changes necessary to get 2D output working.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7763 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 26ce70ced385ebf7f1deee490775b481ec48d872
The file was modified output_2D_samples_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 7ea3e7821c94c99f38ccc201ea78263a96778eeb by raut
I patched a memory leak related to clubb:ticket:740.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7770 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bd53a209c9da5f715015b1133d93a06b388c7513
The file was modified stats_clubb_utilities.F90 (diff)
Commit b38da5b42e4c5e41704e414d4a90db9562cc58a3 by raut
For clubb:ticket:740, I implemented an algorithm to limit the sample point weights to a prescribed maximum. The algorithm ended up being a bit more convoluted that I originally thought it would, but it works!

Output should not change because this option is turned off by default.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7775 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c4bfdcdc6248e84d9423d489361acb6d1470f9b1
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit 486d89b7d513a723f7803653ff53c01865eee54c by raut
For clubb:ticket:740, I am adding an output, "rrm_mc_nonadj", that contains the value of the tendenc
y "rrm_mc" before source adjustment and evaporation adjustment are performed.

This new variable is not output by default. Output is bin-diff identical when the new variable is not output.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7793 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e53b8d6b5e1adb8bdb53901fb05791c4ef623a69
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit ace9fd5c41573b81fad273729d427ed37f8a5b2f by raut
For clubb:ticket:740, I added `prob_thresh` to the microphysics namelist as `importance_prob_thresh` in preparation of finalizing a configuration for the paper.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7798 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 930946c36fd87b6174eb7dd340c7329e2f9dcf5e
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit 75302c5ac9b7415cca699a5c042473db427f7861 by weberjk
For clubb:tickets:770, I am merging my branch into the trunk. This code includes a 3D_Luhar pdf closure and is provided 'as is' and without warranty. 

I tested the priority cases from when the branch was created to the merged copy. The differences are very small and could be a result of subtle numerical changes such as a change in order of operations. When overplotted, the differences are not discernable.

ADG2 does not nessesarily work for interactive cases since CLUBB is mostly written assuming ADG1. Hence, I tested arm_97. For arm_97, the differences were very tiny (similar to ADG1) and when overplotted not discernable.

The code could use some refactoring. However, it is usable in case others would like to experiment (comment:68:ticket:764)

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7802 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 586c13884d8e6def94699a6b12679e977f1bbe83
The file was removedSkw_module.F90
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was addedSkx_module.F90
The file was modified advance_clubb_core_module.F90 (diff)
The file was addeddiagnose_xp3_module.F90
The file was modified pdf_closure_module.F90 (diff)
The file was modified variables_diagnostic_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 6513ff315e669e7fe93cc4fa769d28649763b1c3 by raut
For clubb:ticket:740, I generalized the clustering code to handle different numbers of categories in each cluster.

This is purely a software engineering change. Output is bin-diff identical.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7806 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 84e67df8e07fd365d1beb8c571a2a79c1d2a4d73
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 82996fa1da9075c9116dce49d6e6318ef29a1f1c by raut
I am committing, into a feature branch (because I hear they are the hot new thing), some untested code that proportionally allocates categories only in the cloud or precipitation regions.

clubb:ticket:740


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/ticket_740_newscheme@7809 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bbe80763cbb32986bfaa1ac71fe0d646233740ba
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 8de60d3ee2b73b7f47b154978c17f7cf6125e2bf by weberjk
For clubb:ticket:770, cleaning up some compiler warnings. In the process, found a bug where Skrt_zm was not being computed. I deleted diagnose_xp3_module since it is unfinished and unused. If we want to add a third order moment for interactive runs, the Ticket_770 branch has diagnose_xp3_module.F90 for one to continue work on.

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7810 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0194ae7321a31f8d51dafb325131aaf783bc0756
The file was modified Skx_module.F90 (diff)
The file was removeddiagnose_xp3_module.F90
The file was modified advance_clubb_core_module.F90 (diff)
Commit 947d5c55a2b7e5e8cf8143da99adba5e7ceac8c1 by raut
I renamed `new_scheme` to `two_cluster_cp_nocp`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/ticket_740_newscheme@7811 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ce0355223edbbd867cea80d3ea1870fa77c67478
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 1d696287d023658480400f05d16caac1bf34b601 by raut
A small bug fix for an assertion check was committed herein.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7818 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4a79a6fbc388f96b615caec96975bc900afcd25e
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 78cfb14b8fa5de38bd6fb61a3f5aca221d6011e5 by weberjk
For clubb:ticket:770, the Oracle compiler was throwing a floating point exception here. wpxp2 and xp2 were being fed in as Nans.

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7819 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6a633ba12a025460419d06b5f05531cb60776dff
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7d7684199de03d8c6191ad00e0ac9c03814bd3e6 by raut
For clubb:ticket:740, I am making some changes to the importance sampling code to support zero prescribed probability in a cluster.

* In the transferrence code, if a cluster's PDF probability is less than the threshold, its prescribed probability is set equal to its PDF probability, whether or not the prescribed probability before was greater than or less than the real probability.
* In the weight limiting code, if a category's PDF probability is less than the threshold, the code requires the prescribed probability to be equal to the PDF probability, rather than just ignoring the category as it did before. The code then performs the appropriate number crunching to make this happen.

Output is bin-diff identical for all SILHS cases in the default configuration. This change should only make a difference when a cluster/category is configured to have a very low (e.g., zero) prescried probability.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7820 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6d223ed74c090f926ebbe2fade5b9a9b72cf316b
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 3f0c630cb0a06f95618ff95fc6a8e1cb42ac9944 by raut
For clubb:ticket:740, I changed some SILHS parameters and added others to the namelist so they can be changed at runtime. At this point, the configuration of SILHS to be used in the paper can be enabled without editing any source code.

Output is bin-diff identical for all SILHS cases in the default configuration!!


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7826 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: dba38d2344b2ea5a171b33a3d83ced4d4b993677
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit 23b83be5cb345e758984087986aa513cfe770db8 by bmg2
The new file calc_roots.F90 contains functions that solve for the roots of a
cubic polynomial (function cubic_solve), the roots of a quadratic polynomial
(function quadratic_solve), as well as cube root (function cube_root, which is
called by the function that solves the cubic polynomial).

These are general purpose functions which can aid in many solutions.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7827 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9320a395d5164202f5bbe38aa3067fa66372035d
The file was addedcalc_roots.F90
Commit c0949611cc5c9e712edef2f051104ed96b125153 by raut
I added a comment.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7828 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 566091fcaae4ee82dacf98e27324391b64605141
The file was modified silhs_importance_sample_module.F90 (diff)
Commit f548aaf2a9ca4d1004cd7a305861f80db325725b by raut
For clubb:ticket:740, I implemented the algorithm to prescribe `f_j` (called the "variance fraction" in the code) rather than `S_j` (called the "prescribed probability" in the code). The algorithm ended up being short and elegant because transferrence is not required when prescribing `f_j`. (When prescribing `f_j`, `p_j = 0` implies `S_j = 0`, so transferrence is not needed.)

The flag to enable prescribing `f_j` is named `l_var_frac`, and is set to false by default. When the flag is set to false, output ought to be bin-diff identical for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7862 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6972ef875b3d0c192f9caf978080fb55ade4c5ef
The file was modified silhs_importance_sample_module.F90 (diff)
Commit c0f1997fe5f1a2c2b8d1e58f7db42cabcaf41539 by raut
For clubb:ticket:740, I added `l_lh_var_frac` to the namelist.

Output shouldn't change for any case in the default configuration.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7864 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 836f3b8c7413dd419cc10d84b94a13e6b4326668
The file was modified parameters_silhs.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
Commit bca9a2215a247e64e502d32b871a5bea44ce57e0 by raut
For clubb:ticket:740, I am handling the scariest divide-by-zero situation you've ever seen, just in case.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7865 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 47845c9572be356ce773b81dc75ff60de53682fc
The file was modified silhs_importance_sample_module.F90 (diff)
Commit cea3875a9022bfe5bbb7bc6d231f689a42ff9175 by bmg2
I tweaked the precipitation fraction code so that the weighted ith PDF component
preciptation fractions (mixt_frac_i * precip_frac_i) remain proportional to each
other when overall precipitation fraction is not equal to the sum of the two
weighted component precipitation fractions (e.g. while there can be some slight
discrepancies in a standalone run, but this will have the greatest effect when
precipitation fraction is supplied by the LES).



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7868 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d012def7452f348a844a9f24849730ecd58eb53e
The file was modified precipitation_fraction.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 31dd544b8b214d8958f0e44adf9e9fc45193e7cc by raut
For clubb:ticket:740, I had, in an earlier commit, left out a block of code that should be there. Now it is there.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7870 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 09bff2e33b05c9d13615c706cc80ab136fef92ae
The file was modified silhs_importance_sample_module.F90 (diff)
Commit aaf5e04fbe3b21620b279f09bc2b33bea9afcdfa by raut
I moved the subroutine `determine_sample_categories` to the module `silhs_importance_sample_module` to make it available to modules within the `SILHS` subfolder.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7880 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0df10b4f37272c3c6222a1acdbc477939add9ec4
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 585247fc8fb1a96020d92f03aefbc4402c6ec460 by raut
For clubb:ticket:740, I added an output for the "sampling fractions" in each category, which are the SILHS approximations of S_j.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7881 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3809b00b3a69243036f98e13528481d72fa50621
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 8dd99699dcf36a52272f3ed4fe69e214ff81b662 by raut
For clubb:ticket:740, I added an output for the "sampling fractions" in each category, which are the SILHS approximations of S_j.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7881 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3809b00b3a69243036f98e13528481d72fa50621
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
Commit 258fec2c7ca57f2b179245c5b855deabed9a51d5 by raut
I have discovered a better way to do the assertion check for consistency between `chi_i`, `stdev_chi_i`, and `cloud_frac_i`.

In this commit, I create a (very) small box around cloud_frac_i. (1-cloud_frac_i should be equal to zero.) I then verify that the left end of the box gives a positive value of chi in normal space (that is, in cloud), and that the right end of the box gives a zero or negative value of chi in normal space (that is, no cloud).

This is better than how it was done before because the tolerance (which is the box width) has a more meaningful interpretation. E.g., if a box of width 10^-5^ passes the assertion check, then it is guaranteed that all uniform values of chi outside of this box (i.e., where 1 - 10^-5^ of points are expected to fall) will be correctly interepreted as in cloud or out of cloud. Before, I had to set something called `boundary_tol`, which I lamented that I didn't know how to set properly.

This is for clubb:ticket:720!



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7891 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 527b33a09df1fee8e2ed45a2597a459706c4db27
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit a19eb1268eea01db06d58408df83ffe12bb85c3f by raut
For clubb:ticket:720:

I changed the name of `cloud_boundary` to `chi`, and added an additional print statement to the assertion check.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7892 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 37b2aaff6d294203a639a96392a33d0b6b2899a2
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 0f34241b7bbf1ccf0805b6357bea04573a51d5c1 by bmg2
I updated pdf_closure_module.F90 by integrating changes I made in the
Brian_special_input_fields_r7565 branch.  The changes are formatting, variable
names, and some small improvements to the 3-D Luhar closure.  This does not
effect the default ADG1 closure.

The results in GrADS output files from the this revision are an exact match to
the results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7899 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b74c29c8fdd46473694efb1b2c91a66bd22a85c2
The file was modified pdf_closure_module.F90 (diff)
Commit ab2e38486b0a1adf323e8b58922473771113f37a by raut
For cam:ticket:36:

I meant to apply clubb:r7916 to the trunk.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7917 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4d6ddb360ce0a8fdd50b24bc2d19e0522f2c8bf8
The file was modified clubb_api_module.F90 (diff)
Commit e917230571da0d9992cebe933575a3a0f058bc41 by raut
For cam:ticket:36#comment:132, I removed `gr` from the use statement in `setup_grid_heights_api`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7918 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c625a4f22f57a4ae514f60a2aa8769a678a855c3
The file was modified clubb_api_module.F90 (diff)
Commit 0f06bb5311bde1161de7347d363d3a57d551faf1 by raut
For clubb:ticket:773, I fixed some unsoundness in our code regarding kinds, specifically in `parameters_model.F90` and `endian.F90`.

GrADS output is bin-diff identical for all priority cases!


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7920 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 64a44bab443b257dc08482146a99a9f3b701a694
The file was modified parameters_model.F90 (diff)
The file was modified endian.F90 (diff)
Commit e6bacda8d9b14bf0886c9c840ae2a9892a46188e by raut
For cam:ticket:41, the change in clubb:r7921 should be applied to the trunk as well.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7931 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a44255272b0264ffa148779ae06623ea74a061d3
The file was modified clubb_api_module.F90 (diff)
Commit e48ac26999cd9b7c4cd6df95028cf842693bbee7 by raut
For clubb:ticket:775:

I dug up some old timing code from an obsolete CLUBB branch and found that it gives accurate results. Therefore, I am committing it to the trunk of CLUBB, inside the `CLUBB_core` directory. It is not used right now; it is simply designed to be a utility for code analysis.

I cleaned up the code and added comments to make it suitable for the "official" CLUBB.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7934 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 10dcb3e8aaf7b5d36530bcbbb34e3787686f6403
The file was addedcode_timer_module.F90
Commit de48143312d64ba3c84d8363ed7c164ec1edb73d by raut
For clubb:ticket:775:

I found a better (more precise) way to time code using `cpu_time`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7939 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ba495771c41d466065d79323fcb3e2065ea870e1
The file was modified code_timer_module.F90 (diff)
Commit dd1186e7c5f4efe426972dc7634d8549de4414b4 by raut
Misc. code cleanup


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7940 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d06b87ca91e3cbb735187dc2534e6a736e46f557
The file was modified code_timer_module.F90 (diff)
Commit 6915abd02fc590a68cf65e0b1f078fb9044461e5 by bmg2
I am updating default CLUBB to use the same hydrometeor PDF parameters that are
used in the Brian_special_input_fields_r7465 branch as well as in the paper on
Hydrometeor PDF shapes.

There are small changes to all cases that use analytic microphysics or SILHS.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7963 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 92187f595acfabf21a05e04d24a46688c868e428
The file was modified precipitation_fraction.F90 (diff)
Commit 128fe10ff2fddabb0d49733f01208760bd1c4fb5 by raut
For cam:ticket:50:

This change belongs on the trunk as well.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7968 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 608c4ad520fe8dd614b2cda1a2c063d8d7874470
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit ab483169d851468267535c872592b7593bb6a418 by raut
For cam:ticket:50:

I made the SILHS settings in cam:attachment:cam_2Cat-CldPcp.diff:ticket:50 the default in CLUBB trunk. This is the 2Cat-CldPcp scheme.

This will result in changes to cases that use SILHS.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7969 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 2f27d6f32fc609d6d0f273dfc73f8b396e9bd0e1
The file was modified parameters_silhs.F90 (diff)
Commit b52d3abbdcfaf6908711a08b85a1c64097ceac75 by raut
For cam:ticket:50:

I added some fool-proofing to the code that stops the run with an error if the user sets `l_Lscale_plume_centered = .true.` and `l_avg_Lscale = .false.`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7972 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f11ede285a96bf2c04bdd7471bc0f7359b194a80
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7212e04073f05fecef967735a8cded8e1598b5c8 by raut
For clubb:ticket:778, I am setting the tolerance on an assertion check based on epsilon. Hopefully, this assertion will no longer trip in single precision mode.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7974 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4bb95f9e44abd1303a308336670fe620ae786f2c
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit c4366bf950382ebbc45905a6a961de1df29c3d7c by raut
For cam:ticket:52:

I moved `l_stability_correct_tau_zm` to `model_flags.F90`, and made it a variable instead of a compile-time constant. This should be the only change we need to make to CLUBB to do away with the branch.

CLUBB standalone output is bin-diff identical for a fine selection of CLUBB cases.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7978 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 25a8690cba226668f8eb62e75b86b6a43782a8c2
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit afd352985083952f77c4cbcfc616f482aa434671 by raut
For cam:ticket:52, I added some parameter indices to the API.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7980 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6e6fa65c78c57c47d118dc5825f370b620bb56cd
The file was modified clubb_api_module.F90 (diff)
Commit cd647d184035d2add22118d108274fe8e330b12c by raut
I forgot a parameter!

cam:ticket:52.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7982 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 2f2dc8e11b099c5aea3986de77b291e945720ec7
The file was modified clubb_api_module.F90 (diff)
Commit 4d646f638e6cfc8472db3543dd695c70a57db6e5 by raut
For cam:ticket:54:

I added `l_max_overlap_in_cloud` and `vert_decorr_coef` to `parameters_silhs.F90` and made them run-time configurable. This is the first step to put them in any namelist.

The parameters were not changed, so output is bin-diff identical.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7986 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 070eac27fdbd68125165f3019d86a9261cd5faaf
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit 61f401a444b13eb465b007134bbfe7ed44706035 by raut
For clubb:ticket:753:

I added statistical output for the SILHS estimates of `rtp2_mc`, `thlp2_mc`, `wprtp_mc`, `wpthlp_mc`, and `rtpthlp_mc`.

Output ought to be bin-diff identical for all cases, aside from the new outputs (which are not output by default).


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7987 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a8e9a4db95398ec9024a1e17f0763969a102fc36
The file was modified stats_variables.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
Commit fa4a644de4db1a2c6e6572097f8994265770e0a3 by raut
For clubb:ticket:753:

I added statistical output for the SILHS estimates of `rtp2_mc`, `thlp2_mc`, `wprtp_mc`, `wpthlp_mc`, and `rtpthlp_mc`.

Output ought to be bin-diff identical for all cases, aside from the new outputs (which are not output by default).


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7987 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a8e9a4db95398ec9024a1e17f0763969a102fc36
The file was modified lh_microphys_var_covar_module.F90 (diff)
Commit 5de08c8becc16a5b83c3bf0a6908bcaeb6cdecd6 by raut
For clubb:ticket:782:

I merged in NCAR's changes to `advance_clubb_core_module.F90` and `interpolation.F90`. This is probably at least half the battle.

I added some flags to `model_flags.F90`. They are set to the values that preserve answers in CLUBB standalone. Output is bin-diff identical for a comprehensive selection of test cases.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7989 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 09326d9dfe1aaff864a12cd1c7c0773002d912f4
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified interpolation.F90 (diff)
Commit 1e6552e61c15a0c39c0a556625694c2dc50d00c6 by raut
I forgot a flag.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7990 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 36100d67534c0bce1c278b7bd6da1e9e8b3931a7
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5d190297215985f31583c4a206fc173b56bc52e8 by raut
For clubb:ticket:782:

I completed merging in NCAR's changes. The changes include a LOT of missing `!$omp threadprivate` directives. I wonder how they manage to find these. Maybe they have a script?

I also eliminated all CAM preprocessors from `parameters_tunable.F90`!!

Output is bin-diff identical for a selection of cases.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7991 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7ac98ef43fe88b5c9936db4becc53e2579b172a7
The file was modified clubb_api_module.F90 (diff)
The file was modified csr_matrix_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified variables_prognostic_module.F90 (diff)
The file was modified gmres_cache.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified saturation.F90 (diff)
The file was modified parameters_model.F90 (diff)
The file was modified mt95.f90 (diff)
The file was modified model_flags.F90 (diff)
Commit 68c38299b84040772fd03108779fc63f5c0e3485 by raut
For cam:ticket:55, I added some parameters to CLUBB's API.

Output is highly unlikely to change in any configuration.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7992 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 328e2a42184ddd72b4d584391edef45de2285526
The file was modified clubb_api_module.F90 (diff)
Commit 26ad189a39a78c215af30e67ac15fd2369ed9091 by raut
For cam:ticket:55:

Apprarently, I had some indices declared twice. Also apparently, `gfortran` accepts this but Intel doesn't.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7993 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a47cfe4bd86442b727ba24412b5a52f48e798945
The file was modified clubb_api_module.F90 (diff)
Commit dcff2a464746767405fe023874bb35aef395ffa6 by raut
For clubb:ticket:782, I merged in NCAR's changes to SILHS.

This commit is so unlikely to change output it's not even funny.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7994 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ba508cb788ffe2b36b5f9da11e593a87993bd9ff
The file was modified output_2D_samples_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 89d55c003c20904a3c1c5542e6c672af2c03585d by raut
For clubb:ticket:753:

I refactored the code in `lh_microphys_var_covar_module` to compute the SILHS variance and covariance tendencies by using the terms given in clubb:ticket:753#comment:20. This is the first step in making SILHS agree with the analytic solution.

I overplotted the tendencies produced by this code with the tendencies produced by the prior code, and visually they look identical. Nevertheless, output was not bin-diff identical (likely due to round-off error).



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7998 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8b95edc889d65111b47e8e4314e7bfbde748f650
The file was modified lh_microphys_var_covar_module.F90 (diff)
Commit 6928cb5c8104508b97f1fbc50a95ad28ee7acc56 by raut
For clubb:ticket:753:

I added a flag, `l_lh_instant_var_covar_src`, which will include the timestep-dependent terms when false, and set the timestep-dependent terms to zero when true.

The flag is turned off by default, so the output from this revision is bin-diff identical to the output from the __previous__ revision (r7998).


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@7999 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 39f1cb066a06de34f9324db0c1755e66ba28bf2a
The file was modified parameters_silhs.F90 (diff)
The file was modified lh_microphys_var_covar_module.F90 (diff)
Commit 04f8f49de8f169df9236fa1d44f4ea04e3948419 by raut
For clubb:ticket:753:

I am turning on the `l_lh_instant_var_covar_src` flag by default!!!!!

This will affect all cases that use SILHS and `l_var_covar_src = .true.`. Our coding policy would encourage making this flag change in a CLUBB standalone specific context, but I think it is safe to violate the policy in this case since nobody outside of our group uses the SILHS `l_var_covar_src` code (I think).


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8000 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a6c81798e06fb578e71596727b104b6ef6ac5ba8
The file was modified parameters_silhs.F90 (diff)
Commit 56f87be8850c283ce00a8d858ec00d2f6b4af11c by raut
I cleaned up some warnings from the Mac compiler. (build:14977)

Output ought to be bin-diff identical for all cases.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8001 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9b7d4d071dbdd3704e5fe09b274aa82de9b146fd
The file was modified clubb_api_module.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit 7dd9df5551acd5e70fb89814937b361bb7e0dcf1 by raut
I cleaned up some warnings from the Mac compiler. (build:14977)

Output ought to be bin-diff identical for all cases.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8001 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9b7d4d071dbdd3704e5fe09b274aa82de9b146fd
The file was modified transform_to_pdf_module.F90 (diff)
Commit 8025ab1342a7a1b3e085b1783856426c1a92a89e by raut
For clubb:ticket:785, I renamed `initvars` to `clubb_params_nl`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8010 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bd3995e594614e659c8491539a29167fbd4cb318
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 1889cc7cdabe616805708d52c269b35192b3ec77 by raut
For clubb:ticket:785:

I renamed `silhs_flags_nl` to `configurable_silhs_flags_nl` and `configurable_model_flags` (only the namelist) to `configurable_clubb_flags_nl`.

The output from this revision is bin-for-diff identical to the output from clubb:r8007.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8011 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3e443cf08251c8b4b090c622ad44c54933323ea3
The file was modified model_flags.F90 (diff)
Commit c44ad4365657039db80b07ad3e2240211c9c8064 by raut
For clubb:ticket:779:

I replaced `pointer` with `allocatable` in (almost) the entirety of `CLUBB_core`.

All compilers in `compiler_tests.bash` can compile this version of CLUBB and none emit any warnings related to these changes. Further, with `gfortran`, output is bin-diff identical for all cases.

CLUBB has officially joined the 21st century!


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8014 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b0a141cc435acc5e0343523eb79307d33da7a711
The file was modified input_reader.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified csr_matrix_module.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified gmres_cache.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified stat_file_module.F90 (diff)
The file was modified stats_type.F90 (diff)
Commit 8c1f6a6777bbe860e745ac46cb13652b81f974f2 by raut
For cam:ticket:56:

I refactored `lh_microphys_var_covar_driver` such that `lh_rtp2_mc` and company are not interpolated from the zt to the zm grid before being output from the subroutine. The interpolation is now the responsibility of the (CLUBB standalone only) `est_single_column_tndcy` subroutine.

This will make it easier to call `lh_microphys_var_covar_driver` in CAM, since an initialized grid is not needed.

In CLUBB standalone, output is certified bin-diff identical by the Bin-Diff Association of America.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8018 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 86d5dcf549c45f44373ae43ce2f090347759e90f
The file was modified lh_microphys_var_covar_module.F90 (diff)
Commit 350758eb63a72d5e90ef7780396f65107f07700f by raut
For cam:ticket:56:

I added `lh_microphys_var_covar_driver` to the SILHS API.

This shouldn't change output.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8019 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a84165b65a845bc3d4c0137b50c30eef60e2a41d
The file was modified silhs_api_module.F90 (diff)
Commit cac8541445e3db6df096fc04655670471a646ae9 by raut
For clubb:ticket:786:

I am attempting to fix two related problems in CLUBB:
1. We need to make sure CLUBB is completely cleaned up before exiting `run_clubb`, otherwise we have memory leaks and potential errors.
2. We should make sure variables are allocated before we attempt to deallocate them.

For (1), I refactored CLUBB's cleanup code into a single subroutine and am calling it in some places that a "return" statement appears. For (2), I attempted to add some appropriate conditions to look for before deallocating variables.

Output ought to be bin-diff identical.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8020 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 224a4ecb0e3aebba959a50ffb56f2975de192aff
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified variables_prognostic_module.F90 (diff)
The file was modified variables_diagnostic_module.F90 (diff)
Commit 2be0615c817b980139e9df1bbc39b5bd91285cfb by raut
For clubb:ticket:786:

I fixed two tuner related problems.

I made the SILHS parameters namelist optional, so that a warning message is simply printed if the namelist is not found. I'm not particularly fond of this solution, but the difficult alternative is to track down the places in the tuner where the SILHS namelist needs to be placed. Maybe some other day.

I also deallocated a variable in SILHS that wasn't deallocated before.

Output ought not to change.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8023 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ccef9fe7bcd6531d3a6903fbe2c6a8db763830ea
The file was modified stats_clubb_utilities.F90 (diff)
Commit a3dc0f5e2d291c1006484d2b428366db3c3883e4 by raut
For clubb:ticket:786:

I added some helpful comments to `lh_microphys_var_covar_driver`, renamed `rtmc` to `rt_mc` and `thlmc` to `thl_mc`, and improved the code structure a bit.

Output is bin-diff identical for two test cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8025 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 51830352a051761325ca59ae444a06f810a5925f
The file was modified lh_microphys_var_covar_module.F90 (diff)
Commit 76ffc1e665c4e26d1668c2efc9df9cdb5bbc142f by raut
For clubb:ticket:782, I added all CLUBB's parameter indices to the API.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8029 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 129197ab3782d5708e97fa61b72e3e1d6bc29cdd
The file was modified clubb_api_module.F90 (diff)
Commit 3a6793ec01bbe473ddf6d0583c662432bbbc4507 by raut
helpful note

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8030 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f1a1a51bab997a8957a9878542c03b55d2eae5ac
The file was modified parameters_tunable.F90 (diff)
Commit 4d2d0eb0e397482dacaa804e257fdad814b540fc by raut
more helpful note

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8031 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 24e0650cb14be00b26b35e9314c0886b249a6099
The file was modified parameters_tunable.F90 (diff)
Commit ee33663d3cd6174fe4feefaec16f7a837f227bcb by raut
most helpful note

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8032 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fa7f961b7b520e654a30096415d1ba60fd4f1807
The file was modified parameters_tunable.F90 (diff)
Commit 72529d6d77d14863829ec0b2dd173e88561e8ac7 by raut
For cam:ticket:56:

While looking through plots, I noticed that for some reason, CLUBB output files list `cloud_frac` as having units of "count", which in fact it is a fraction between 0 and 1. I have changed the units to be "-", as is done elsewhere.

Note that this commit is BIT_CHANGING, but only because of the metadata change. Numerical values of all variables should be identical.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8039 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 386dd79390ff0720658e567be846b45f1267b596
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
Commit c6500cfe559a78be80cba8e53e2fdd19ca853f3b by raut
While working on cam:ticket:59, I noticed that `tau_N2_zm` is computed twice. I removed one computation.

This shouldn't change answers.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8051 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 56c350b1b4e1bd8cbc7337c7f3d3b5d5b6a7f7b3
The file was modified advance_clubb_core_module.F90 (diff)
Commit cb412fb54cc283d26552c72d98c21a225df26cc8 by raut
Dat crazy indentation, though...


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8052 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bbb1955eaad91f06f5fea34e40eb6ea168b7d959
The file was modified advance_helper_module.F90 (diff)
Commit fb63f2634b6063fef6e6aaa7cd11a2c017516501 by raut
For cam:ticket:59, I refactored the calculation of `brunt_vaisala_freq` into a subroutine, and renamed it `brunt_vaisala_freq_sqd`.

Output is bin-diff identical for a test case.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8053 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e6131eda3cc0829d2900c24ffeac3e1cfdf9196f
The file was modified advance_helper_module.F90 (diff)
Commit 42e5348649c5fe2849b9f3f4f75a64cee941e842 by raut
For cam:ticket:59:

I added an option to compute `C7_Skw_fnc` based on the Richardson number. This change is wrapped in a flag, `l_use_C7_Richardson`, which is false by default.

Output is bin-diff identical in the default configuration.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8056 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f545aa262b505691bcbc7a6a0dff5a6561bdb64d
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 185167896321573e6a27bb1994ac28aa75203fed by raut
For cam:ticket:59:

I am incorporating Vince's changes into the trunk.

This commit introduces a new flag, `l_damp_wp2_using_em`, which, if true, will use a dissipation formula based on `em` in the `wp2` equation.

The flag is false by default, and output is bin-diff identical in the default configuration.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8066 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 39fb65cf92cbd275653e062e6e5603abc28dd1bd
The file was modified model_flags.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 29d9ce8ac3458638923b4ac461a5a569774cd604 by raut
For cam:ticket:59:

I added a check that ensures `C1=C14` and `l_stability_correct_tau_zm=F` if `l_damp_wp2_using_em=T`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8067 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 90a2faf25065f00bda5220403e7cdb654c114f50
The file was modified advance_clubb_core_module.F90 (diff)
Commit c32284c78f7aa9070afc4f0b61bed73ccf7ccdf3 by raut
For cam:ticket:59, I added a new output for Richardson number.

It is not added to the default output file, so output is bin-diff identical in the default configuration.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8068 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: cad331d6bd01ccc55b8b797a5f502ed45477530f
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 9d61a8bf2a1f6989dec2ad8c2b9d5d4454b4bfe6 by raut
For cam:ticket:59:

I am adding an option to use a different formulation of `brunt_vaisala_frequency_sqd` in saturated air. This formula comes from Durran and Klemp (1982).

As always, the change is wrapped in a flag, and output is bin-diff identical in the default configuration.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8069 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 41dcf2571aeebbf3725a54ad3c0da5e062769577
The file was modified advance_helper_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 9e607955d0c529d4ef6b36f9378b6d08fa21137c by raut
Per cam:ticket:59#comment:21, using `T_in_K_zm` in "the formula".


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8070 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 56b84fdb1a791cbe02cc4c810a8bac7f49c7704e
The file was modified advance_helper_module.F90 (diff)
Commit 7682bbc205b4cd2c20021752e41e29fc76a4a8d0 by raut
For cam:ticket:59.

Also, `rsat` should be `rsat_zm` where it appears in the formula, ''except'' when it appears inside of `ddzt()`. Right?



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8071 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3f69d0d4521af585b55d8462f1eaa98e180189d6
The file was modified advance_helper_module.F90 (diff)
Commit f82218e2933997790453ec1d4f6990fdda8415e5 by raut
For cam:ticket:59 I renamed `Richardson_no` to `Richardson_num`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8072 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fdb08f1446b21bf3ba54158aac38d49e4d5ef7bd
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
Commit c74225d16f9673c358f062b6f1e77a2c7cbd0638 by raut
For cam:ticket:59, I added kludgy statistical output for `brunt_vaisala_freq_sqd`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8074 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8fc0610745db2bf6e686f9d315b46fc8395c1cb9
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit f521cb23468f0094a3fda8a7dccf8f6969bb1666 by raut
I made an error message more verbose.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8081 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 2622ca3c97a4a241fa401ad1b29cb20fede97e00
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 05eb072a7ebf64f5cd235377b90e41fceb628150 by raut
Still wanted to stop, though...


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8082 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fbee05a49431f6281a36f48f9d68b3a267a691f2
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 604739065495ff559f032f191e99e9837e667106 by raut
For cam:ticket:59:

I added functionality to vertically average Richardson number based on Lscale. The option is turned off by default, so output should be bin-diff identical by default.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8083 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6821e86becfff5f3144b4398a27ba261903f486d
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 197f846d43da2f87e5f6f03a1862bd2ceeecc7cf by raut
For cam:ticket:59:

Oops.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8084 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e452ee71e4c3a0ec7bbb1dae710efe4b1209806f
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 193b2356409331ff90c897b93d468ed501771a77 by raut
For cam:ticket:59:

While reading through the code, I found an important bug in the moist Brunt-Vaisala code. Inside a `where` statement, I had calls to functions that take in an entire profile as input, such as `zt2zm` and `ddzt`. But the arguments to these functions where themselves initialized in the `where` statement! Therefore, much of the input profiles to these functions were likely uninitialized. Not good.

This change affects only the case where `l_brunt_vaisala_freq_moist = T`, which is not the default.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8085 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8ca078a9223a3a07a90e115f1f1d3296ea196896
The file was modified advance_helper_module.F90 (diff)
Commit c7d55c72919e58648dae4e5003586d2100876571 by raut
For cam:ticket:59.

Refactoring: I renamed function `Richardson_num_vert_avg` to `Lscale_width_vert_avg` to make it clear it can be used for other variables.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8086 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f56b3f11144798216e670da4f77fcd1579428676
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 0522c9f194d6b51ad08844e40e84d5099e7820fc by raut
For cam:ticket:59:

I set `Richardson_num_max` to five, and enabled by default code that vertically averages `C7_Skw_fnc` over a distance of `Lscale_zm`, as this seems to be closer to what we want.

This only affects results when `l_use_C7_Richardson = T`, which is not the default.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8087 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 087970848c0e815d6b87a84d5d538e720ed6e95b
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 4f0028b1d246bd6d16b5435fc172ecb34a354fc9 by raut
Apparently, I didn't have to jump through the hoop of declaring a separate profile to use in the `max` statement.

Ref: cam:ticket:59.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8088 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d3a45797366bc238c5b19441707cc0c9f7d99883
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 33af548fec392e63dabb9e2adc048c7c70c9fb86 by raut
For cam:ticket:59:

I am adding exciting support for density-weighted vertical averaging (using function `fill_holes`) in averaging `C7_Skw_fnc`.

This affects output if and only if `l_use_C7_Richardson = T`, which is not default. Changes are fairly minor.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8089 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e37640c3132cadc52f0385ba3c8c3c832bccdf28
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit d685dd943a6c479c2997e19bb4e8726eb947042b by raut
For cam:ticket:59:

Refactoring: Virtual levels!!! I am refactoring the code to make use of "virtual levels". This lays the framework to allow below-ground levels to affect the vertical averaging.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8090 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a6bdc7a8634bcac9b9caf5beb7f47313d515a0c6
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit c48216a85ed26f6c6f973e7e9bfad6ae6f6ff173 by raut
For cam:ticket:59:

I have set up the `l_use_C7_Richardson = T` code to include "virtual" vertical levels below ground in the vertical averaging of `C7_Skw_fnc`.

Output shouldn't change in the default configuration.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8091 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 54d6826625f5e603cd3e348f3fd91c90a578ff83
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 0f756d77d387e7bbf34196f019648ffd85583460 by raut
For clubb:ticket:782:

I merged NCAR's tag, !^/tags/ncar_tags/clubb_cK10_tags/clubb_cK10_n05_r8096, into the trunk. This commit mainly adds a new tuning parameter, `c_K10h`, which is related to `c_K10` but `c_K10h` is for thermodynamic levels. Keeping `c_K10 = c_K10h = 1.0` maintains current results.

This commit is BIT_CHANGING, but only because a new tuning parameter was added, and apparently we are in the habit of outputting all tunable parameters in our NetCDF files. Numerically, NetCDF results should be identical. GrADS results are bin-diff identical for all (priority) cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8099 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 06bb00ff2f9e355d4115f2d3b0023e628fec704a
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit fabce99c9f3c6239be758f17fa091f1615b44d17 by raut
For cam:ticket:59:

I am bringing in the latest and greatest features from the `diag` branch back into the trunk. The changes are enhancements to the case where `l_use_C7_Richardson = T` (not default).

Output is bin-diff identical in the default configuration.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8106 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 71595a55488b9463768ec15182052bbe4c767470
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit d47e9225511e6b87d16e1a95e6aaec700ef71fdd by raut
For cam:ticket:59:

I had to increase `nvarmax_zm` due to new statistics being added.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8108 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 50ad45cdc9d10b94c9245b6007e09262696c43c5
The file was modified stats_zm_module.F90 (diff)
Commit cc7ff036228d237f5777ed263151c838cd0a3d1b by raut
For cam:ticket:59:

I reintroduced the ability to use `turb_freq_sqd` in the denominator of `Richardson_num` as a option set to false. I suppose this is better than commented out code.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8109 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4de028682e1994f0206331aba28c9b3ac14c5ab7
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 2107752e392902007942d6fdf4b344f1f10bdf8e by raut
For cam:ticket:59:

I am introducing a new option (non-default) to vertically average clipped `Richardson_num`.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8110 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f5efc2c4006252b3d5f5278dab026c7f2a8ffdd6
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 97c842511dae89f61397c68fe463edda9a62d84e by raut
For clubb:ticket:782:

These changes augment clubb:r8099. I confined the declaration of `RHpostPDF` in a `CLUBB_CAM` preprocessor directive to resolve a compiler warning. I also added `c_K10h` to some error_*.in files for the tuner. This resolves the failure of the nightly FIRE tuner test last night.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8111 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a3e3d9ef33520631972c02276aac7cd4df1459b8
The file was modified advance_clubb_core_module.F90 (diff)
Commit 491b13f63db3f99e5095c89562ecf4065fc69a18 by raut
For cam:ticket:59:

I am committing parameter changes to the `l_use_C7_Richardson = T` code:
* `Richardson_num_max = 200`
* Vertical averaging of `Richardson_num` is enabled.
* `Richardson_num` below ground is `0.5 * Richardson_num_max`.

Output should be bin-diff identical in the default configuration.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8112 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c4131f9f29baedbd678035f8d8aadecb08b68358
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 78b1837f3871084d821505278bbb3f493870d6ed by raut
For cam:ticket:59, I fixed bugs in the `l_use_C7_Richardson=T` vertical averaging code:

1. The averaging levels should be within 0.5*Lscale, not Lscale.
2. The equation for the number of "below ground" levels was totally wrong. I must have been half asleep when I wrote that equation.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8113 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0d38c52c98c6060f95ccb6e35be4b497ff8fff56
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 922aa61598b0b75ff0e72446efbc31737cd5b5e7 by raut
I adjusted a comment.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8114 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: da6f1c25f65f4f89af732ac5081fe1ea932915c3
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 0fceb83bc012d5304422b23d42dd3b5ab083a919 by raut
For clubb:ticket:788:

I am adding support for "pressure term 3" (pr3) in wp3's equation set. `wp3_pr3` will be included in the equation only if `l_use_wp3_pr3 = T` (default false).

The magnitude of `wp3_pr3` is dependent on `C16_fnc`. Currently, `C16_fnc` is hardcoded to be 0.5. In the near future, `wp3_pr3` will instead be based on `Richardson_num`, analogously to `C7_Skw_fnc`.

Output is bin-diff identical in the default configuration.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8115 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 216c85147d343dad788bd34689f333e854ffb660
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 65085f8ad1cd4a0a49f60d764d36faa0d47d1869 by raut
For cam:ticket:59:

Minor correction to units: the Skw_fnc variables should have units of "-", not "count".

Of course, this commit is BIT_CHANGING because units, which are written to the NetCDF files, have been changed.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8116 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e7d892a1ae271bf6e3c6f8a20ff0ca2046b2b215
The file was modified stats_zm_module.F90 (diff)
Commit f6f7a5aa8bc79938d9294f1d0d79c93f885daa48 by raut
For clubb:ticket:788:

After a long battle, I finally got successful statistics outputting of the `wp3_pr3` term!!!

Tests run:
1. Output is bin-diff if `l_use_wp3_pr3 = F` (default).
2. Output is bin-diff if `l_use_wp3_pr3 = T` and `C16_fnc(:) = 0.0`.
3. If `C16_fnc(:) = 1.0`, then the `wp3_pr3` term exactly opposes the sum of the `wp3_ta` and `wp3_tp` terms when overplotted. Furthermore, after adding `wp3_pr3` into the `wp3_residual` equation, `wp3_residual` is zero! (That is, the bu
dget balances.)

That code in `advance_wp2_wp3_module.F90` is pretty intricate, eh?



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8117 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 313f0faf6a0fc63ab241027943c8498096bbe599
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit 11fdf543bc3a7f58254d8fbe13b5153b70823f43 by raut
For clubb:ticket:788:

Refactoring: I moved `compute_C7_Skw_fnc_Richardson` and `Lscale_width_vert_avg` to `advance_helper_module.F90`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8118 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0811835821202839f23ac52b2703a7ef1fc95472
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 206f04854099eb063ed1693d2920c0c7645630c0 by raut
For clubb:ticket:788:

Refactoring: I renamed `compute_C7_Skw_fnc_Richardson` to `compute_Cx_fnc_Richardson`. I pulled out the computation of `Cx_fnc_Richardson` to `advance_clubb_core_module` and passed `Cx_fnc_Richardson` to `advance_xm_wpxp`, where it is used to set `C7_Skw_fnc`.

Output is bin-diff identical for some test cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8119 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e9d6955c8a6dff6139dbc4945304625a4477c0d1
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 4e1247dd422e18086b059476e7133b703d36ac81 by raut
For clubb:ticket:788:

I am using `Cx_fnc_Richardson` to set `C16_fnc` in subroutine `advance_wp2_wp3`.

This should affect output if and only if `l_use_wp3_pr3 = T` (default `F`).



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8120 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 918f896b3a551678cf5c156adfd2c04000958a12
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 43a1c71b99857c13815467fcdacd4d0cc18253f7 by raut
For clubb:ticket:788:

Damage control: I am adding lines that clip `C7_Skw_fnc` (which should now be renamed to `Cx_fnc_Richardson` in this context) to be within the range [0,1]. Apparently, on at least Intel (see build:15667), roundoff error can leave `C7_Skw_fnc` slightly outside this range.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8129 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4675048a0d54c86064366ca667174c5a403d6462
The file was modified advance_helper_module.F90 (diff)
Commit a962121436c1d8fe111f625513733b6e28d5c983 by raut
Renamed C7 to Cx in appropriate places.

Ref: cam:ticket:59


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8130 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9db4228a9996907f46488ec7e6733cdf28e58ab0
The file was modified advance_helper_module.F90 (diff)
Commit 71e67a099e4ecd80abfd3d6e0d25acfa5c6334cb by raut
For cam:ticket:59:

I am effectively disabling the use of `shear_sqd` in computing `Richardson_num` in the default code.

Output should be affected only in non-default code.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8131 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6f10cf99569442c0bfb8b4814d6528669e5f1b00
The file was modified advance_helper_module.F90 (diff)
Commit d49aa6e935a68e226ab41d125afb5e1a8c68d052 by raut
For cam:ticket:59:

I am committing various changes to the `Richardson_num` code, such as increasing the averaging width and the `Richardson_num` below-ground value.

Output changes only in non-default (i.e., esoteric) configurations of CLUBB.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8132 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0fb298192f03271b416be42967f0283db679eade
The file was modified advance_helper_module.F90 (diff)
Commit b5cf8ffd94155c1b1eb83dc383b8adffc62e150a by raut
I made it a default to use 0 instead of cloud_frac_min in the B.V. frequency calculation.

I also changed `Richardson_num_max` to 400.

This commit will affect CLUBB output only in non-default configurations.

Ref: cam:ticket:61.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8133 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5e9cf12eca6b97bf81881796ef7f1ebcde68a4e7
The file was modified advance_helper_module.F90 (diff)
Commit 6169ec78b702433711f504bb5a8f86e6b1c780fb by raut
For clubb:ticket:790:

I am adding an option to SILHS to normalize sample point weights so that they add up to num_samples.
The option is turned off by default (for now) so output shouldn't change yet.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8165 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fb10c1cf97430afeae868e59d88b32c007a30849
The file was modified parameters_silhs.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
Commit fdd301bb825931e9313c6f69ac022c0d0cb091dd by raut
I am setting `l_lh_normalize_weights=T` by default in both the source code and the namelist.

This commit is BIT_CHANGING: it will change answers in all cases that use SILHS.

Ref: clubb:ticket:790


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8168 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a222c9ffd940a67e0759d99c707df0abc7cfe692
The file was modified parameters_silhs.F90 (diff)
Commit 11d19bb017414c12230547489ab559001398846b by raut
It is more robust to check the average of the sample point weights rather than the sum of the sample point weights for unity-ness.

For clubb:ticket:790.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8171 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bc95e82e4c03358f4f5797b7b527ee03c3ea8f55
The file was modified silhs_importance_sample_module.F90 (diff)
Commit be1c3106832fe19595c6446e12a254d55b452fc1 by raut
For cam:ticket:67:

I refactored the computation of rsatl_par_j into a function.

Output is bin-diff identical. In the future, this function will do many exciting things.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8180 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6939bd1b43cee733a2028da7bbb654f5427a106f
The file was modified mixing_length.F90 (diff)
Commit 9241d3160bc3f08cea06a367363bac429b0a4801 by raut
For cam:ticket:67:

I added the ability to use ice in the computation of rsatl_par.

This is wrapped in a flag, `l_include_ice`, which is F by default, keeping output bin-diff.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8182 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f69754e5f7c966f12ce435d22662adcb41959f50
The file was modified mixing_length.F90 (diff)
Commit a65a2716e9a84c14d8ce00274c7d8ceb64cec15b by raut
Code improvements.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8183 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 784a92ac88af2f4b23ccd2a75d95f6044beef1d5
The file was modified mixing_length.F90 (diff)
Commit 1241c9306c125114c5e2cf74fa5ddf3c0c575ce2 by raut
Vince noticed that `sat_mixrat_liq` or `sat_mixrat_ice` will be left uninitialized if `sat_ice_ratio == 0` or `sat_ice_ratio == 1`. No more!

For cam:ticket:67.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8185 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 1a2d64da0eaa23681153f9377c943ba076f6f7d9
The file was modified mixing_length.F90 (diff)
Commit bb6808a33f9a42df19a9d0a3f2d28fe1e7df96bb by raut
For cam:ticket:32, I made `hydrometp2` `intent(out)` in CLUBB, since the input value is not used.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8195 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4bfa90e34669bb3e6b15b9b4307a62567624763a
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit aa8a3d9da135f520be59cdf4a39b6835519350ab by raut
Fixed a comment.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8196 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8551b37c3d21f0eefe0678cb265e12d0d7546021
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 4457ce79704986f96788b965685a759a6a14654d by raut
For clubb:ticket:788:

I made sure `wp3_pr3_rhs` was initialized when `l_use_wp3_pr3 = F`, so that zero is output to stats, rather than an uninitialized variable. This should resolve the failures of the Nightly Uninitialized Variables Test (build:15959) and the Nightly OpenMP Test (build:15953) last night.

This commit is BIT_CHANGING because a variable which was output as uninitialized (usually NaN) before is now output as zero. However, answers remain unchanged as long as `l_use_wp3_pr3 = F`.

It is worth noting that clubb:r8198 also caused the Nightly Bin Diff Regression Test (build:15948) to fail because it added a stats output and was not marked with a BIT_CHANGING tag. Including the tag in this commit will resolve that failure, and we should see a lovely shade of spring green tomorrow morning.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8199 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 88ee4f1f9682fbaf959972a78008162165f1b04f
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 942ecdc6d4c071de7a24f6eb24c549ec417eddb4 by raut
For clubb:ticket:792:

I changed some CLUBB parameters:
{{{
l_vert_avg_closure  = .false.
l_trapezoidal_rule_zt = .false.
l_trapezoidal_rule_zm = .false.
l_call_pdf_closure_twice = .false.
l_use_cloud_cover = .false.
}}}

This commit is BIT_CHANGING: answers will be changed in all cases.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8200 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8b469e885afa1be9b6055abc2a7d52ae6fe7d8fe
The file was modified model_flags.F90 (diff)
Commit 842f4771aae526e1c2614eecca67aa77b12ac1ce by raut
For clubb:ticket:792:

I initialized some variables that were before uninitialized when `l_vert_avg_closure = F`. These uninitialized variables were used only for stats.

This commit is BIT_CHANGING in the "_zm" output file because some variables, such as `cloud_frac_zm`, that were output as undefined before are now output as zero. However, the simulation result does not change as a result of this commit.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8201 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 21ad814bfcfd439dd5faf226745d30aad397a9f7
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5097bb3b46bc376688d970c63fcfc2b2dbe81ea5 by raut
For clubb:ticket:792, I added more initializations for uninitialized variables.

This commit is probably BIT_CHANGING, because output variables that were uninitialized are now output as zero.

With this commit, CLUBB runs to completion with the Oracle compiler, resolving build:15997. Hopefully the OpenMP test (build:15991) will follow suit.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8202 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e37f06af1cecae4ccd91298942c3fc3c9bb3780f
The file was modified advance_clubb_core_module.F90 (diff)
Commit afa64ca95f3398b1df10f9d3159711a052d12a6b by bmg2
When l_avg_Lscale is turned on but the plume-centered calculation is disabled,
I changed the "sample points" chosen to pick the theta-l point associated with
the rt point based on the sign of rtpthlp.

Since the l_avg_Lscale flag is turned off my default, the results found in
GrADS output files from this revision are an exact match to the results found in
GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8203 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a98b05fd3e2d332d890fbdf8130ed339f2238b09
The file was modified advance_clubb_core_module.F90 (diff)
Commit eb0be9200bae51409573b16aaab4d40821477003 by raut
For clubb:ticket:792:

I removed the `CLUBB_CAM` preprocessor directive surrounding the RH_postPDF fix, and instead added a new flag, `l_rcm_supersat_adj`, set to false by default.

This changeset produces bin-diff identical output.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8204 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d2869a87f94e19e634e8eaaf6ca296f21994506f
The file was modified output_grads.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 3137b73c6c8a14a6eec8eee3cf7c53ae38420b2e by raut
For clubb:ticket:792, I added a new stats output, `rcm_supersat_adj`, to record the degree of rcm adjustment. It is not output by default. This changeset does not change output.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8205 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c399236ebfe9a2691198f3f87952e0a757833a2e
The file was modified stats_variables.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit f61e9048127a441fc4fce451ecf7a25f4a3eb9c5 by raut
I renamed RH_postPDF to rel_humidity.

For clubb:ticket:792.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8206 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c3a4c87b8438e6b3bd9404e5b16a5fb09d05e391
The file was modified advance_clubb_core_module.F90 (diff)
Commit 2b9c0abf5f05672f14e2ffc9c479ec51c03eb187 by raut
For clubb:ticket:792. rsat actually should be recomputed here before output, because it will change if `l_rcm_supersat_adj = T`.

This commit doesn't change output by default, because `l_rcm_supersat_adj = F`.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8207 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 424d83775df122fb2114c6dc7a3276a63690a881
The file was modified advance_clubb_core_module.F90 (diff)
Commit b5e36c5cc98bee2a71b6e1aac647ef04740481ca by raut
For clubb:ticket:792. I am reusing the `rel_humidity` variable for output, for no particular reason.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8208 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c3aef1ca27eb0b5ce179c9910fe52cea575dbb33
The file was modified advance_clubb_core_module.F90 (diff)
Commit f0c489f1ec91fede9e93674f5ad8da5adcc72ff2 by raut
For clubb:ticket:792!!!! I set `l_rcm_supersat_adj = T` by default, in both source code and namelist.

This commit is BIT_CHANGING. For most cases, results do not change because `l_vert_avg_closure = F`. However, at least twp_ice changes slightly.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8209 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e6bc9207fc8f2130454a06cbca7fbcffe4860805
The file was modified model_flags.F90 (diff)
Commit 85557a043ebf71d33df4cb766e602ecc4a507346 by raut
As requested, I am adding a warning message (debug level 1) when spurious supersaturation is removed.

For clubb:ticket:792.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8210 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a2c8d6b5c2bfd632c12e47335b95d5fba6e9dc1a
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5a524a2d05c67e5b0eba255e0804760871ccbca6 by raut
Comment.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8211 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d58325cd8606f6c4461777a20d0d1b0c3f13a68d
The file was modified advance_clubb_core_module.F90 (diff)
Commit 421941ece8fe45eff7e5382bf99596c2c681e527 by raut
For clubb:ticket:788, I added a threadprivate entry for `iwp3_pr3`, which will hopefully resolve the failure of the OpenMP test (build:16010).


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8212 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 41002aa1be883eea7f5cee997cf5384d81c4a333
The file was modified stats_variables.F90 (diff)
Commit 3cd78611e048d03e25589bae4bd6d754156d9a99 by raut
I removed a spurious print statement.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8216 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d0b98149fb8261c773b77d91b7feada06c134e41
The file was modified output_grads.F90 (diff)
Commit e20752ab491ab93d8c23011bad3f73e6c914a7c9 by raut
For cam:ticket:73:

To facilitate committing tuning changes to CAM, I added a new tuning parameter, `up2_vp2_factor`, and a new flag, `l_use_C11_Richardson`. I made various other changes.

Output is bin-diff identical for all cases.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8220 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: adaa047dde0e71089e9f336095fa038de4fb2a6d
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
Commit 644805cc11020c09f7f7341fac1620b7cdb6200e by bmg2
I am beginning to generalize the sponge damping code so that it can be applied to
fields such as wp2, up2, and vp2.

As part of this change, I am reverting the interpolation of sponge damping time
scale, tau_sponge_damp, from linear interpolation to the kind of interpolation that
is used in SAM LES.

Since the CGILS cases use sponge damping for mean fields toward the top of the
domain, the results of this change will be BIT_CHANGING.  However, the effect is
minor.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8228 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 23464bb22b7d8a9ce22bd69c0495c047bb5cc36c
The file was modified sponge_layer_damping.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 0c83ceeaa0aa916808a262473b8df43bb02fdfb3 by bmg2
I have added all the coding infrastructure to perform sponge damping (and record
its effects on the budgets) for wp2, wp3, up2, and vp2.  This code is turned off
by default.  Additionally, I haven't added the stats to stats.in files yet.

As a result, the results found in GrADS output files from this revision are an
exact match to the results found in GrADS output files from the previous
revision for all cases.

Larson Group Internal Trac System Reference: papers:ticket:14.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8229 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: abe95893a6e5716d55769a9090c78f29be20d886
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit bde6e65ded8cec97c1df34c94091e882b55408e4 by Vince Larson

I added comments about the two sets of indices in CLUBB,
the ii indices and the iiPDF indices.  These are used
to index the hydrometeors and PDF variates, respectively.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8255 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9657730a0639973c1006be330637e3d9fcc56150
The file was modified index_mapping.F90 (diff)
Commit b6c2764136da24f7734273fe582d1021db667c10 by roessle9
clubb:ticket:796

I added the sum and the average of the sample point weights to the lh surface output.
The variables are called lh_sample_weights_sum and lh_sample_weights_avg and will be
written with the standard_stats output configuration.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8261 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 367b148899348e1a912288af135c165818fab7e9
The file was modified stats_variables.F90 (diff)
The file was modified stats_lh_sfc_module.F90 (diff)
Commit 6e539c8461bba161899a33c9ac6d09a6bd5b9207 by roessle9
clubb:ticket:796

I added the sum and the average of the sample point weights to the lh surface output.
The variables are called lh_sample_weights_sum and lh_sample_weights_avg and will be
written with the standard_stats output configuration.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8261 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 367b148899348e1a912288af135c165818fab7e9
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit a3ffb88e1500efe97673ee2d43487617c0a0ff24 by bmg2
I added some parameter value checking in subroutine setup_parameters.

When l_clip_semi_implicit is set to .false. (which it is by default),
the new code enforces C6rt = C6thl, C6rtb = C6thlb, C6rtc = C6thlc,
and C6rt_Lscale0 = C6thl_Lscale0.  This will prevent an inconsistent
calculation of wpthlp_pr1 in this scenario, while preventing the user
from thinking that the C6thl set of parameters do anything in this
scenario.

Larson Group Internal Trac System Reference: clubb:ticket:794.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8262 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bf2c9cc9ecbd57d0b8023e100f1d73156d055b65
The file was modified parameters_tunable.F90 (diff)
Commit e71b63c797a2f56b4dfb532421ea6062ad089053 by roessle9
clubb:ticket:796

The subroutine lh_microphys_var_covar_driver calculates covariances of rt, thl, and w.
This calculation requires mean values of the variables, which were calculated with
compute_sample_mean() and the drawn sample points. However, the actual mean values
of the PDFs are known by CLUBB and stored in pdf_params. With this commit we change
the calculation so that the known means are used to improve the accuracy and reduce
noise.
Small changes to the SILHS API have been made, since the pdf_params variable was
added to the parameter list of lh_microphys_var_covar_driver().





git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8263 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c2f888a936850200bf6a42c1efa7518d74a65685
The file was modified lh_microphys_var_covar_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit c0f71070adf163ea058fe79592c6d476aadc2aa6 by bmg2
I finally have a standalone version of the new subroutine, generate_pdf_params,
that compiles.  It is not currently called from any point in the code.  Just
getting this ready has been an accomplishment.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8281 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f8d6c7c4529e72e216b9de62b7dfe2aedf44f438
The file was modified advance_clubb_core_module.F90 (diff)
Commit f5ee4a59559816b441a43d16faeb8b458ea8065a by bmg2
Some code within advance_clubb_core that is found within CAM_CLUBB preprocessor
flags requests rcp2_zt and thlprcp as output.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8282 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 198ec6e782719c2321a23acf48820ea841761e1c
The file was modified advance_clubb_core_module.F90 (diff)
Commit 33092de95e77d84d9857adebcf870b293cb613cd by bmg2
The perturbation Lscale code requires rtm_frz, thlm_frz, and pdf_params_frz to
be output from generate_pdf_params, and the stats_accumulate code requires that
rcm_supersat_adj is output as well.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8283 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 1cb9f8be3845cc6a7aa6cf3c372cdf9491c02d19
The file was modified advance_clubb_core_module.F90 (diff)
Commit 617c5f2a850ab442bd934af221554ae218fcccbb by bmg2
I added a missing intent(out) statement.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8284 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b5482df6be9a1bf3edac10c606dfb183ca5c6cd6
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7cc27e32c42a7c9441b678648e3aa91f8280d038 by bmg2
I have interfaced the new subroutine containing all of the PDF closure-related
stuff with the code.  When the subroutine call is made from the location of
the code it is replacing, the results in GrADS output files from the new
revision are an exact match to the results in GrADS output files from the
previous revision for all cases using CLUBB's default configuration.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8285 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ce07a9d5a621c43d084c67071fa3f694be010651
The file was modified advance_clubb_core_module.F90 (diff)
Commit 1cece97462a9a5d534b5130012ed38d5b9e23d66 by bmg2
I got rid of some variables that were brought into advance_clubb_core by use statements
that are no longer necessary.  This eliminates new compiler warnings.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8286 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 48e38f266be67c2ef7af997b682505434d7541c3
The file was modified advance_clubb_core_module.F90 (diff)
Commit 74d4f7f23ddc2d22d680a6c63cd3fedd86ab83f9 by bmg2
I cleaned up more compiler warnings for unused variables.  The warnings came from g95.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8287 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ae7227875369b954d7e996e6ba845fb0cf8e6fdb
The file was modified advance_clubb_core_module.F90 (diff)
Commit 65844eccfd6e78d303f9e2b529eabf24f0e95fd6 by bmg2
I have added a second call to subroutine generate_pdf_params.  This one occurs
after predictive fields have been advanced.

I have also added code to call generate_pdf_params at its original location, at
the new location, or at both locations.  The appropriate anti-idiot code is
currently located in advance_clubb_core, but will be moved in the future.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8288 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: da44da508e6af8609aa44a634f1a8a8ecfef9fd5
The file was modified advance_clubb_core_module.F90 (diff)
Commit 652b8ad1bd732665a1c5e813186c434fe84ef4f4 by bmg2
I moved the setting of qclvar and thlprcp_out to after the second call to
subroutine generate_pdf_params.  This way, rcp2_zt and thlprcp don't need to be
passed in and out of subroutine advance_clubb_core.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8289 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b0697278dc51c875d2131da2dd818c6566983029
The file was modified advance_clubb_core_module.F90 (diff)
Commit f2b2a33f8d2799df9309411d6a38c945f6e0d69d by bmg2
I have declared the l_use_ice_latent option and the l_call_pdf_closure_twice
option to be imcompatible with the ipdf_post_advance_fields option.  This
prevents seldom-used variables, such as rtm_frz, thlm_prz, pdf_params_frz, and
pdf_params_zm, from having to be passed in and out of subroutine
advance_clubb_core when the PDF is only called after predictive fields have
been advanced.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8290 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7fd1cf79fe8112f1d96b0e8eb56b700190daef28
The file was modified advance_clubb_core_module.F90 (diff)
Commit 66ed30caf14d248db6cf1fcdf4f13abb1a2ec053 by bmg2
I added a local cslculation of sigma_sqd_w near the top of subroutine
advance_clubb_core in a scenario when the PDF is not called until after the
advancement of the predictive fields (in other words, when
ipdf_post_advance_fields is selected).

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8291 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b8c687375bd2a3ba9f8f113597ee02e6a66b440b
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5d635a9256509ec7a5a327a323966cc64f5c58a4 by bmg2
I am changing the inputs and outputs of subroutine advance_clubb_core so that
rcm, cloud_frac, wpthvp, wp2thvp, rtpthvp, thlpthvp, sclrpthvp, and pdf_params
are all passed through as intent(inout) variables.

This change allows for CLUBB's PDF to be called after the predictive fields are
advanced when the appropriate option is set.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.  The
default option is still to call CLUBB's PDF in its historical location, which
is prior to the advancement of the predictive fields.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8293 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9e49c5e8030cb7838d4a1582f3a6c2aa3ee93f05
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 090114c800f5dbd574978c07c4d5558ca86c69ee by bmg2
I added code so that stats that are internal to subroutine generate_pdf_params
are only called once every model timestep when the ipdf_pre_post_advance_fields
option, which calls the aforementioned subroutine twice, is called.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8294 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 1b25e9166559c4323fc8182969a948e9397c9c39
The file was modified advance_clubb_core_module.F90 (diff)
Commit 582c3bf747b2fa69443e8f75e18dae7c861ecb4c by bmg2
I have updated subroutine advance_clubb_core so that pdf_params_zm is now passed
into and out of it as an intent(inout) variables.  This enables it to be
preserved from timestep to timestep.  This also removes the flag
l_call_pdf_closure_twice from being blacklisted when ipdf_post_advance_fields
is used as the ipdf_call_placement option.

The results in GrADS output files from this revision are an exact match
to the results in GrADS output files from the previous revision of this
branch for all cases (with the default configuration of
ipdf_call_placement = ipdf_pre_advance_fields).

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/reorder_advance_clubb_core@8314 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7326a7a09d64f47ad1738b2f42b3752f9ccc1bcf
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit cdaeea61eda638c5b85824407830ec4b16a5abe5 by savva
Ticket #799 -- Moved iiPDF_... module variables from module corr_varnce_module to module array_index -- The results of the priority cases are bin-diff identical

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8339 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: eebc4d9c6aec2d6a54b9769d4dbac2a14ee20c8f
The file was modified array_index.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified index_mapping.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 586355222c1c41305aafd6c519115915e1eafe41 by savva
Ticket #799 -- Moved iiPDF_... module variables from module corr_varnce_module to module array_index -- The results of the priority cases are bin-diff identical

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8339 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: eebc4d9c6aec2d6a54b9769d4dbac2a14ee20c8f
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 2d21676fa45bca8e71ae19a0844aba77789b4127 by savva
Ticket #798 -- Renamed d_variables to pdf_dim -- The results of the priority cases are bin-diff identical

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8341 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 94b0bd96aa64476c342b0fa90bbf9c28df1fb468
The file was modified corr_varnce_module.F90 (diff)
The file was modified matrix_operations.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified index_mapping.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit b5ac7cc9c742a41cd4463e754d2c701131e773ab by savva
Ticket #798 -- Renamed d_variables to pdf_dim -- The results of the priority cases are bin-diff identical

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8341 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 94b0bd96aa64476c342b0fa90bbf9c28df1fb468
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified generate_uniform_sample_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
The file was modified output_2D_samples_module.F90 (diff)
Commit 729952dc7d1cce36a1243a7968fc10b1f9d5e482 by Vince Larson

I added a blank line, which will not change answers.
However, it will test if the AUTO_COMMIT feature is still
working after other:r537.

For other:ticket:439.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8346 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b9caa5a3e8936342fc662afee698c65f32fe02cb
The file was modified advance_clubb_core_module.F90 (diff)
Commit 129209e51573452d8eef3328cff95a1aa34db1e9 by Vince Larson

I added a blank line merely to trigger the AUTO_COMMIT updater.
It won't change answers.

For other:ticket:439.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8347 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 15a16bb6e0e12fb0b4afa9e1f386936a471d7f93
The file was modified advance_clubb_core_module.F90 (diff)
Commit f613fb4ce5602b4624d4637df30dd3069057a94c by bmg2
I added a new subroutine, init_pdf_params, to pdf_parameter_module.F90.
This allows for an easier way of initializing variables of type pdf_parameter.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8348 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0411cc2ab856908a8153bc51bdcdc93638767e24
The file was modified pdf_parameter_module.F90 (diff)
Commit baeba5205aa0fdde1c16c1d735011a9d6eeb96fd by bmg2
I renamed the subroutine pack_pdf_params found in setup_clubb_pdf_params.F90
as subroutine pack_hydromet_pdf_params.

I took out the ifdef CLUBB_CAM preprocessor flags around some declarations
and subroutines in pdf_parameter_module.F90 because they are also going to
be called by WRF-CLUBB (and possibly SAM-CLUBB).

The results in GrADS output files from this revision is an exact match to the
results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8349 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e7fe6b09e563382cdf65378edd286fa3d6b9c7c9
The file was modified pdf_parameter_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 92d57479e3f56b93ba46a1773be93ab46078b8b8 by bmg2
I am now using the new subroutine init_pdf_params to initialize the
values of the PDF parameters of type pdf_parameter.

The results in GrADS output files from this revision are an exact match
to the results in GrADS output files from the previous revision for
all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8350 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 24899b7617ce4e89fd6ba4406625230c9f18dfbb
The file was modified variables_prognostic_module.F90 (diff)
The file was modified variables_diagnostic_module.F90 (diff)
Commit 149845b7ef749677b049d594d2e87e8fd4e0ce92 by bmg2
I removed the CAM_CLUBB preprocessor directives from pack_pdf_params_api,
unpack_pdf_params_api, and num_pdf_params so that they can be accessed
from WRF-CLUBB.

The results in GrADS output files from this revision are an exact match
to the results in GrADS output files from the previous revision for
all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8351 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 749c0e32563c60a53b924f1ff350fbc0e82e03e3
The file was modified clubb_api_module.F90 (diff)
Commit 0e6ad4f7bd68117de009609e955a67219d396655 by savva
clubb:ticket:800 -- Changed fatal errors statements to debug level 0.

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8355 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 842caa8112d9655db44e72c6906c8b6efd4e60fe
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified matrix_operations.F90 (diff)
Commit 4a974e672ff4636c1840cc5276a9a32cb9963a27 by savva
clubb:ticket:800 -- Changed fatal errors statements to debug level 0.

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8355 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 842caa8112d9655db44e72c6906c8b6efd4e60fe
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 8907a3787230cb9be6c3fea6254676a199330a13 by bmg2
I updated CLUBB stats so that wpthvp, wp2thvp, rtpthvp, and thlpthvp
are passed into subroutine stats_accumulate rather than be brought in
by USE statements.  This will allow these variables to be output
correctly in the CLUBB stats grid column in WRF-CLUBB runs.

The results in GrADS output files from this revision are an exact
match to the results in GrADS output files from the previous
revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8361 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b7dbabdfea13cf54aa5d8f089ccbc780be0ddd1d
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit cf19b99a6421ab461a8aba9db5cffe0045a2c8c2 by bmg2
I have added the coding infrastructure to output additional statistics
w_1_zm, w_2_zm, varnce_w_1_zm, varnce_w_2_zm, and mixt_frac_zm.  These are
necessary for CLUBB restarts if the ipdf_call_placement flag is set to
ipdf_post_advance_fields and the l_call_pdf_closure_twice flag is turned on.

Additionally, I have added all the necessary CLUBB fields to input fields and
to CLUBB restarts so that restarts should be successful if the
ipdf_call_placement flag is set to ipdf_post_advance_fields.

I have not added the new stats to the stats.in files yet.  With that, the
results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

Larson Group Internal Trac System Reference: cam:ticket:87.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8362 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4289d2475f8d595b9e6dc2bb91286da307b49241
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 797509049869e44636489bd02d8d7359dd85ed0d by bmg2
This is a bug fix for the Sun compiler.  The variables pdf_params_zm and
pdf_params_frz, which aren't used with CLUBB's current default settings, are
intent(out) of subroutine generate_pdf_params.  While they are initialized in
CLUBB, they were not initialized in subroutine generate_pdf_params, and since
they weren't being used by default, NaN values were being passed out of
generate_pdf_params, overwriting the 0 values that they had been initialized to.
This bug fix initializes pdf_params_zm and pdf_params_frz locally within
subroutine generate_pdf_params.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8366 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: dff11a1927e522b0c5ff0acb47da029ee6750ed5
The file was modified advance_clubb_core_module.F90 (diff)
Commit da1e6e93f57c3b5937ce93743d13f2c8698fafe8 by bmg2
I am updating the hydrometeor PDF code to set mu_hm_1 and
mu_hm_2 based on mu_thl_1 and mu_thl_2.  This will help
improve the increase of thlp2 from evaporation of rain
near ground in cases that use analytic microphysics or
SILHS.

The results of this change are BIT_CHANGING for all
cases that use any type of microphysics.

Larson Group Internal Trac System Reference: papers:ticket:14.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8368 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ec62851ec33aa701989b4a4cac6dee344a642277
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 2849e9ec8d8be6daa3f5c9db5f17bf33290447f6 by bmg2
Running the Bitten tests.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8370 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6aaf5c5e07d2bc8e122b2a68f5d92bed5ae7bc78
The file was modified advance_clubb_core_module.F90 (diff)
Commit a6062d549742eeeeec89ba1fd47e8ba7de4b587b by Vince Larson
I added some comments so that CLUBB-SILHS would be consistent with
the CLUBB-SILHS overview document that I am writing.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8375 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f3f8fc84aa3c36b96796c683052f3f443980e0a7
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit eb63cc3ecb36c7abf5b3dc60006f1285c707ffe1 by Vince Larson
I added some comments so that CLUBB-SILHS would be consistent with
the CLUBB-SILHS overview document that I am writing.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8375 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f3f8fc84aa3c36b96796c683052f3f443980e0a7
The file was modified advance_clubb_core_module.F90 (diff)
Commit eda17276e4902acc2eb5264928fe293bc2375010 by roessle9
clubb:ticket:805

Initial version of altitude-based weighting.

This version does not consider that the radiation scheme requires
soda straws with uniform thickness.

We are also not sure if the sedimentation is handled correctly.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/ticket_805@8378 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 090f4e417e6e2f8e0b478dac0d331b452a29c35f
The file was modified lh_microphys_var_covar_module.F90 (diff)
The file was modified math_utilities.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit c4d09b6d76afbfae6cb52cb37fa1910e51a035bb by roessle9
clubb:ticket:805

Added a flag l_calc_weights_all_levs that determines if weighting
takes place on each layer or just on k_lh_start.
The flag is set to .false. when radiation is computed (e.g. every fifth
time step).





git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/ticket_805@8379 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3a9cc7a5468a4e839050ca6042e7a1bdaaf94ad3
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit e576fdda6b75d7dc50f48c79307d666490959220 by roessle9
clubb:ticket:805

renamed l_calc_weights_all_levs to l_calc_weights_all_levs_itime


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/branches/ticket_805@8382 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9aa7ce04e8df560492ba903284c9b79fb799ca23
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit e030ca7e04c0a0095b34b53a1e2088b9de562b01 by Vince Larson
For clubb:ticket:805, I made two changes:

1. I think that lh_sample_point_weights needs the k (vertical)
   dimension when outputting profiles of SILHS samples.
2. The arm_97 and mc3e cases were failing the Bitten tests
   (clubb:build:PortlandGroup:17188) because a number
   was out of range, preventing SILHS from choosing a category.
   It appears that either the category-choosing code has round-off error,
   or that a random number was equal to 1.
   I relaxed the assertion check, but a random number = 1     
   is unsafe because it could lead to
   an infinity if it is transformed (exponentiated).



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8394 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 04f0546918d35f08ea8f1deadcdf9cff73f4b6d3
The file was modified output_2D_samples_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 1bdf138739edb357345723bef5f76f60b0df026c by bmg2
As a first step, I changed all instances of rrtthl to corr_rt_thl_1.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8405 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 79fdfb7e6a2ee9170090af10d080d8d936a149c1
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 2f64d7d1fad1935e490184a2f226e249b4dadeee by bmg2
I have added corr_rt_thl_2 to the code to go along with corr_rt_thl_2.

Since an additional stat has been added to output, this particular change
is BIT_CHANGING.  However, this is only for GrADS _zt output files.  Results
in GrADS _zm and _sfc output files remain the same.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8406 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b4b6c041f955df44b7e95fbcc72b4bfbfabf91a1
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 9e72781b4211e81e73b40cafe2fc4f0f0ad3a30d by bmg2
I have added some code to add corr_w_rt_1, corr_w_rt_2, corr_w_thl_1, and corr_w_thl_2
to the pdf_parameter derived data type.  The value of these variables is simply set
to 0 for the ADG1 PDF.  They have not yet been output to stats.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8407 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6a265cc291b093421e23178aaf0a2793a513fdbc
The file was modified numerical_check.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 5c7d2be0e9f62502f81ce75fe3741456dae750ed by bmg2
I added new statistics to the CLUBB _zt output files, specifically corr_w_rt_1, corr_w_rt_2,
corr_w_thl_1, and corr_w_thl_2.

The results in GrADS _zt output files change, owing to additional statistics.  This commit
is BIT_CHANGING.  Otherwise, all the other GrADS output files stay exactly the same.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8408 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 71c2743e87f125b0e60ccae83fc1fff07e69cb6f
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit d854c55ef50cfb617782f166fb066c43ceb8ada7 by bmg2
I am updating the equations for wp2rtp, wp2thlp, wprtp2, and wpthlp2 to include
within-component correlations of w and rt or w and theta-l.

I am also replacing the hardwired settng of corr_w_rt_1, corr_w_rt_2,
corr_w_thl_1, and corr_w_thl_2 to 0 (for ADG1) with the equations that solve
for these correlations.  For the ADG1, the result of the equation is
within-component correlations that have a value of 0 --- well, within numerical
roundoff error of 0 (such as 1.0e-14).

Since this code change technically changes results, this commit is BIT_CHANGING.
However, plotgen shows profiles exactly overlap for almost all cases.  The
ultra-sensitive ARM 97 case is the most notable exception.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8409 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e5487001c112145b1f562684e41498d04ef27f89
The file was modified pdf_closure_module.F90 (diff)
Commit 65c599a0a6b342524a4e151d6a5fe6b29f792af2 by bmg2
I am adding a special function to calculate the within-component correlation of
eta and variable x (such as w), which depends, in part, on the
within-component correlaton of rt and x and the within-component correlation of
theta-l and x.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8410 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7fb019f47f4446c226d298f7219d77628c879392
The file was modified pdf_utilities.F90 (diff)
Commit ec0c789074314e3ce17bafe76ff0f03d46431f7c by bmg2
I added variables corr_w_chi_1, corr_w_chi_2, corr_w_eta_1, and corr_w_eta_2
to subroutine pdf_closure.  They calculate the within-component correlations by
calling utility functions in PDF utilities.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8411 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e9ca795e3b8d60784a00b76016f8b209c9a93203
The file was modified pdf_closure_module.F90 (diff)
Commit c5840a13dc0ebcb6ee34e88c8c56ba714373b312 by bmg2
I am adding corr_w_chi_1, corr_w_chi_2, corr_w_eta_1, and corr_w_eta_2 to type
pdf_parameter.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8412 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a43fc0230324a470f3d7ab7c3f1345b54994ad84
The file was modified pdf_closure_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
Commit a1089add9c25d5324dde3dbd23e95e3b33821b08 by bmg2
Now that the PDF component correlations of w and chi, as well as w and eta,
will be allowed to be something other than 0 when a new PDF is used, stats
needs to account for that.

Already in the code, corr_chi_eta_1 is the value calculated in PDF closure,
while corr_chi_eta_1_ca is the actual value used in the correlation array.
This depends on whether the calculated value or a prescribed value is used
in the array.  This code is now being mimicked for corr_w_chi_1, corr_w_chi_2,
corr_w_eta_1, and corr_w_eta_2.

The first step is change the current stats output corr_w_chi_1 to
corr_w_chi_1_ca, etc.

The results in GrADS *.dat output files from this revision are an exact match
to the results in GrADS *.dat output files from the previous revision for all
cases.  The GrADS *.ctl files differ because the stat names have changed.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8413 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8a0b4efb9a160adb315c099462bcc07dc5b9359e
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit ab1a600e7f1f56ee0e69d72ca22eaba8e0e811f6 by bmg2
I am adding statistical output for corr_w_chi_1, corr_w_chi_2, corr_w_eta_1,
and corr_w_eta_2.

The results in GrADS output files differ because of the additional statistics,
so this revision is BIT_CHANGING.  However, this is only for the *_zt output
files.  The results in GrADS *_zm and *_sfc output files from this revision are
and exact match to the results in GrADS *_zm and *_sfc files from the previous
revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8414 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 309a5fed35104c5422cc4ad24efc8c0c241ad858
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit 8ca31ccec167f25a7f32ddbf3ca7b54d3a823032 by bmg2
I am changing the name of the flag l_fix_chi_eta_correlations to
l_fix_w_chi_eta_correlations.  This is because code will need to be introduced
to fix the PDF component correlations of w and chi and w and eta for SILHS.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8415 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 32b0f55832325418462852f9fc611c2ed25a7b2c
The file was modified corr_varnce_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 5779b395cf8ca60cdd2b751d238da3b2c4542129 by bmg2
The two component normal (double Gaussian) PDF used by CLUBB will now be
selected by an integer index, rather than multiple logical flags.  The PDF
type used by CLUBB is called iiPDF_type.  The value of iiPDF_type can be set to
one of the following:

iiPDF_ADG1 = 1:  ADG1 PDF (default)
iiPDF_ADG2 = 2:  ADG2 PDF (can only be used with input fields)
iiPDF_3D_Luhar = 3:  3D Luhar PDF (can only be used with input fields).

Additional PDF types will be added in the near future.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:770.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8416 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9b7157d59487b308c22704bc6f37dc39fb1acb0b
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 8edb8709cbdb95f0e8ae17bf23a57d9863c9d77d by bmg2
I moved the checking of the options for the PDF call placement to subroutine
setup_clubb_core, which is the same place where the options for the PDF type
are checked.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8418 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7d2573b3d770b6f6f0b3a899a49f2ea17978e381
The file was modified advance_clubb_core_module.F90 (diff)
Commit 26a1ae6570d7ca0c695eab9bd90bd6e66bb6f313 by bmg2
I am altering setup PDF parameters to be able to read in the values of
corr_w_chi_1, corr_w_chi_2, corr_w_eta_1, and corr_w_eta_2 calculated by
CLUBB's PDF closure when l_fix_w_chi_eta_correlations is turned off.

Since RICO and RICO SILHS have l_fix_w_chi_eta_correlations turned off by
default, and since the values of corr_w_chi_1 are within numerical roundoff
of 0, but are not exactly 0 (since they aren't hardwired to 0 anymore in this
situation), the GrADS output results for the RICO cases are technically
BIT_CHANGING.  However, for all other cases, the results in GrADS output files
from this revison are an exact match to the results in GrADS output files from
the previous revison.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8420 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f78b2d5236cd3ee28677ab616d9a3189fb3e1cde
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit c07ab5ccd5a6e475db0719d161e28b3928b9331c by bmg2
I am adding the new file new_pdf.F90 to the CLUBB core directory.  So far, it
basically contains a few comments.

CLUBB Trac ticket reference:  clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8424 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 907fafe42349a2f36c433b92f7e96fd9206a182f
The file was addednew_pdf.F90
Commit ce75f5ce98726c064acad7ff3b291699db00bf2e by bmg2
I am adding a large amount of code to the new PDF.  I have filled in the driver
subroutine, and I have added functions and subroutines for mixture fraction,
the PDF component means and standard deviations for the "setter" variable, and
the PDF component means and standard deviations for the "responder" variables.

CLUBB Trac ticket reference: clubb:ticket:777.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8427 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 014bdf1009c7ade517a2a13b457a8d0dfcbc915e
The file was modified new_pdf.F90 (diff)
Commit 85308f4beb5f735c34d9d8e875a722134919d6a7 by bmg2
I am adding code to the new PDF that calculates the minimum and maximum
allowable values of F_x for a responding variable.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8431 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5e00f9da2367b8a8c40031b8d2f9817458ef1533
The file was modified new_pdf.F90 (diff)
Commit 11d7a9d84753ae52c284a70bf29849bc744ed9c4 by bmg2
I added a new iiPDF entry for the new PDF, and I neatened some of the current
code.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8432 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8f478d6814c6a69b3677af8309f4a145fe85090e
The file was modified pdf_closure_module.F90 (diff)
Commit 7ae91ab288665049bbef456846c14561ab3ac108 by bmg2
I added an option to call the new PDF from subroutine pdf_closure.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8433 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 208d82318173789a7c7d6e09277832b2d5fb39f4
The file was modified pdf_closure_module.F90 (diff)
Commit df45d687af4c60ee9f4d8dc3ed58df880c4e90f1 by bmg2
I had to add checking for the new PDF so someone does not try to run it
interactively until it is ready for that.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8435 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ee48cae5f28e2184bf87cd80351fc1987fddb28d
The file was modified advance_clubb_core_module.F90 (diff)
Commit 250072e68b4e2047771089a721f91f5648f686ee by bmg2
I made a couple changes to (1) initialize two variables that aren't used by the
new PDF (alpha_rt and alpha_thl) to default values in order to avoid them being
set to NaN and causing a runtime error, and (2) calculate skewness from thlp3
and thlp2 (or rtp3 and rtp2) for the new PDF.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8437 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7fb0580861183c3d696238bd7168d1cfbc97bcd3
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 122a9c185ebc5211667fef6f3500c821a5036614 by bmg2
I added a conditional to the subroutine that sets the responder parameters.
When both Skx and F_x are exactly 0 (and the only Skx that can be represented
when F_x is 0 is a Skx of 0), a couple of equations end up with an undefined
0/0.  In this scenario, the PDF is converging to a single Gaussian.  When both
Skx and F_x have a value of 0, the PDF of responder variable x is now defined to
be a single Gaussian (which is the shape it was converging to).

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8439 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 816a6b607a2d470e1e21faaba2cae46905211943
The file was modified new_pdf.F90 (diff)
Commit 7760911823e32928409cbe64bf70121141891a34 by bmg2
I have added the beginnings of a new unit test for the PDF parameters.
Currently, it tests the new PDF, but only the "setter" variable.  It checks
based on a variety of input values and loops over many different tunable
parameter values.  Once mu_w_1, mu_w_2, sigma_w_1, sigma_w_2, and mixt_frac have
been calculated, the values of wm, wp2, wp3, and Skw are recalculated using PDF
parameters and compared to their original values.  Additionally, the test also
checks that sigma_w_1 >= 0, sigma_w_2 >= 0, and 0 < mixt_frac < 1.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8441 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 116cd507bfb549e1fd9678dc1207a98de3d8bb52
The file was modified new_pdf.F90 (diff)
Commit 82a034dfa874b3e850244853312a754392e823bd by bmg2
I have updated the PDF parameter unit test to make a call to the full PDF (for
the new PDF).

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8442 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b3c8936e8d546569a1877900dc53dcc7cffdb9a4
The file was modified new_pdf.F90 (diff)
Commit 8e609886fe423733d4568c845d91d3847cc80874 by bmg2
I have added a feature to the PDF parameter unit tests which allows the user
to declare which PDF is being tested.

With this, I have added some code to test the "setter" variable for ADG1 (which
is always w).  The test loops over incremental values of sigma_sqd_w for each
of the PDF input parameter sets, calculates the PDF component means, component
variances, and mixture fraction, and then recalculates wm, wp2, wp3, and Skw.

I still have to add code to test the full PDF for ADG1.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8443 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 645ed2b73204952f8d3cc9193f516576d13ef6ae
The file was modified pdf_closure_module.F90 (diff)
Commit df8d5977e025ede94c6b058b97856c0bed8cb326 by bmg2
In the setter variable description and subprograms, I made a name change from
mu_w_1, etc., to mu_x_1, etc.  This was done because other variables besides w
might be used as the setter variable.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8444 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 04ecfc94c1d512f4815f332ea0d6271b413b7394
The file was modified new_pdf.F90 (diff)
Commit f191465a17f26341952b058689a1d428c0a4bfdd by bmg2
I have updated the method of calculating the setter variable so that mu_x_1
and mu_x_2 are set based on the sign of <w'x'>.  This is described in the back
pages of the derivation of the method for the setting variable.  In a nutshell,
sqrt(F_x) is replaced by sqrt(F_x) * sgn( <w'x'> ) in the entire equation set.
Most equations use F_x (or an integer power of F_x).  Even after the
replacement, F_x remains F_x (because the square, etc., of sgn( <w'x'> ) is
always 1).  The only equations that are altered are the equations for mu_x_1
and mu_x_2.  When the sign of <w'x'> is positive, mu_x_1 >= mu_x_2.  Otherwise,
when the sign of <w'x'> is negative, mu_x_1 <= mu_x_2.  When variable x is w,
the sign of wp2 is always postive, and mu_w_1 >= mu_w_2, following previous
conventions.  This change allows for things such as mu_thl_1 <= mu_thl_2 when
<w'thl'> < 0 in the event that theta-l is the setting variable.

CLUBB Trac ticket reference: clubb:ticket:777.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8445 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 733f5f36dad88f0ecaef746b8e01c4ffbff39ef5
The file was modified new_pdf.F90 (diff)
Commit 2dcf994553dc649bcd496308117a8b6a97113d4b by bmg2
I added primarily some more documentation and notes.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8446 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e7b3f11bef3737730d2d558cff2e12e27c75b139
The file was modified new_pdf.F90 (diff)
Commit e81daa5f055f4c99b63bd444bce743bd8f92c897 by bmg2
I added some more comments documenting the code.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8447 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 08c4a3ab5eebcd45cefffb401c35386c88a872b6
The file was modified new_pdf.F90 (diff)
Commit 46632b4b96b05fb8079924794420043194c5ee01 by bmg2
I got rid of some of the expressions that a script might try to flag as
"magic numbers" by doing something that I started a while ago --- declaring
those numbers as constant parameters in the code.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8448 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e99a65715204e9382dfb6357ac1a76ebf4517581
The file was modified new_pdf.F90 (diff)
The file was modified constants_clubb.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit b7a9edf6cdf37b4d301a5426e8f7f787fac26ccc by bmg2
I added much more documentation about the responder variable.  Specifically,
much of the new documentation is about how the limits of F_x are calculated.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8449 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a8d6f95d883a38bf345324b717d3f1955d5688d5
The file was modified new_pdf.F90 (diff)
Commit 96dd4a8d1759e5ed899571e92df95527e3995d87 by bmg2
I am adding the new file, original_pdf.F90, as the new home for the ADG1, ADG2,
and 3D Luhar PDF closures.  As of right now, the original code still remains in
PDF closure, and this code is not currently interface with any part of CLUBB.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8450 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4d83bf47bf1260f79b1584952743991e1d4af68a
The file was addedoriginal_pdf.F90
Commit e45432703a561cdc6e81c106568c3cab71b56bba by bmg2
I have now switched the PDF closure code over to calling the code that had been
moved to original_pdf.F90 in r8450.  The code that remained in PDF closure has
now been deleted.

I have also moved the code to calculate the PDF parameters for passive scalars
to inside the driver subroutines for ADG1 and ADG2.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8451 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5b68933fc999bc8258625b0d9a3fd8c1b3128d46
The file was modified original_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 1a2c52b7d840dea49e23776c4d9591929663b5bc by bmg2
I updated the documentation in the code comments for the setter method and
generalized the mixture fraction code so that any variable, x, can be used as
the setter variable, not just w.

CLUBB Trac ticket reference: clubb:ticket:777.




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8453 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 319e3ff46c48a3a9efea5d7e7b977ddeb203ee4b
The file was modified new_pdf.F90 (diff)
Commit 1b93dd6436c3a08431325786bfc77e3a0ed10c5f by bmg2
I added a comment.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8454 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 476d92833ba72680bb61cee9e1a5846e2df19a53
The file was modified new_pdf.F90 (diff)
Commit 9638daee00cbed38db5adb3d64ec7cdba43206c5 by bmg2
I added a new function, calc_comp_corrs_binormal, to pdf_utilities.F90.  This
function calculates the PDF component correlations of two variables that are
both distributed as part of a two component normal distribution.  The code is
a copy of code that was previously found in subroutine pdf_closure.  Now,
pdf_closure calls this function multiple times over, rather than repeating the
same code multiple times in a row.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8455 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ee93f6bfb3c984fdec7a851189dfc4c502aae5c0
The file was modified pdf_closure_module.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
The file was modified new_pdf.F90 (diff)
Commit 512906b3f915322181776bee28aa6abd4bb7703a by bmg2
I added some more descriptive comments and a new function that calculates the
coefficient of the wp4 equation (for implicit time stepping), where:

wp4 = coef_wp4_implicit * wp2^2^

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8456 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4336f01d26892857c38991297e10d652737d4754
The file was modified new_pdf.F90 (diff)
Commit 376bd21e269d7d0c874d2dc5fb12d05f99d8794f by bmg2
I updated the code so that coef_sigma_x_1_sqd and coef_sigma_x_2_sqd are passed
out of the subroutine that calculates the PDF parameters for the setter
variable.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8457 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: dd22397b49b2096afb51cdefa80f672f93bc5c50
The file was modified new_pdf.F90 (diff)
Commit ec87600ee30f3e74fb2037e0166318973b4b5416 by bmg2
I fixed a mistake.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8458 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 56c95f8615f28064b8a74c51c26d791616eb2cb4
The file was modified new_pdf.F90 (diff)
Commit 060c2e9f5a165d0db494d1fa22ead556ef6a717d by bmg2
I have added code to call the new function that calculates wp4 implicitly from
the unit testing code.  I also added some more comments.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8459 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 98fe8bf67b016720bdc77236c765ea80c681ea57
The file was modified new_pdf.F90 (diff)
Commit a5753ccef073f127ffd2a0c7ea4fbd9026d8ebd5 by bmg2
I moved the calculations of wp2xp (wp2rtp and wp2thlp), wp4, and wpxp2 (wprtp2
and wpthlp2) into their own functions.

At most timesteps, results are exactly the same.  On occassion, very, very
small discrepancies between the previous version and the new revision show up.
The calculations occur with everything in the exact same order as they were
performed in previously.  They only thing different is passing code out of
functions and back to the main program.  This odd behavior makes this code
technically BIT_CHANGING.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8460 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 79030bc1913e95ecb36bd613713658d726944188
The file was modified pdf_closure_module.F90 (diff)
Commit 5384d9d0de5cbfa54786e0022ac45d03923528bb by bmg2
I added another function to the new PDF.  This function helps to calculate
wpxp2 implicitly as part of the xp2 predictive equation.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8462 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 33547d862fbf9fecded1db6f1b8f0d4c27db176d
The file was modified new_pdf.F90 (diff)
Commit a104dde34400e73f7996e9b0528415d6529defc6 by bmg2
I added a special case for the wpxp2 implicit code.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8463 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5d60384202b85e0e30d3b33c1ec996550e5e485f
The file was modified new_pdf.F90 (diff)
Commit b20f067da35fa0881ebe6ca019282953548d637d by bmg2
Back in clubb:r8409, the PDF component correlations of w and rt and w and
theta-l were calculated rather than assumed to be 0.  For ADG1 and ADG2, the
resulting values of the correlations were within numerical roundoff error of 0
(for example, 1.0e-14).  However, in the interest of trying to keep results
in-line as much as possible with historical results, this commitment introduces
code to simply set these PDF component correlations to 0 (and avoid the
calculation) when the chosen PDF is ADG1 or ADG2.  Otherwise, when other PDFs
are used, the correlations will be calculated.  This commitment is BIT_CHANGING.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8464 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 03e97996f9e5aace3643cf8da3a7019b8f864ed1
The file was modified pdf_closure_module.F90 (diff)
Commit 315aa47cfb4f0803b723148723f70a5771b63444 by bmg2
I added a subroutine that calculates the implicit and explicit portions of the
wp2xp equation, where:

wp2xp = coef_wp2xp_implicit * wpxp + coef_wp2xp_explicit.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8465 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e6e7a3c61a7ea3f44564e4ab82f73facba6c7115
The file was modified new_pdf.F90 (diff)
Commit 682b8167989760c5e3bdb5fe3112632a48098801 by bmg2
I renamed original_pdf.F90 as adg1_adg2_3d_luhar_pdf.F90.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8466 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ea939d307f723c18aba6dff8ef2a0c739263e2a0
The file was removedoriginal_pdf.F90
The file was addedadg1_adg2_3d_luhar_pdf.F90
The file was modified pdf_closure_module.F90 (diff)
Commit 16b439a231f958d7434c9945fda5b0a33f565956 by bmg2
I added statistical output for F_w, F_rt, F_thl, min_F_w, max_F_w, min_F_rt,
max_F_rt, min_F_thl, and max_F_thl.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases for all
output files besides the *_zt.dat output files.  Owing to the new stats, the
*_zt.dat output files make this revision BIT_CHANGING.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8467 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 2243298ace53299c9e0222adf2cd233026fe6268
The file was modified new_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 14cd9184faf1cd20250b7dafa64a794f0097225b by bmg2
I split the new PDF into two files.  I added a new file that currently houses
the driver.  The core functions and subroutines of the new PDF remain in the
original file.

The Happy Birthday to me CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8469 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 68224186fc824f10965e7f887d79f6a3b6d414d4
The file was addednew_pdf_main.F90
The file was modified pdf_closure_module.F90 (diff)
The file was modified new_pdf.F90 (diff)
Commit 7fa72c493db849383093c4b14b73e1e5567b47c6 by Vince Larson
I clipped temperature within the Goff-Gratch functions for saturation over liquid and ice.
The goal was to avoid the creation of NaNs that caused CAM to crash over the Himalayas.
The result of applying a minimal threshold on temperature is to set saturation to the same small
value in all cold areas.

To test the code change, I ran the priority cases and determined that the new code
produces bin-diff identical results for these cases.  That just means that these cases are not cold. 
However, the code change might increase
saturation in cold areas in CAM, thereby diminishing condensation in the upper atmosphere.
It would be prudent to check a WACCM simulation for degradation.  If there is degradation,
the minimum temperatures could be set to smaller values.

For cam:ticket:98.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8470 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6c2c6fc13a7673bcdf5da93bde0a350086383b4e
The file was modified saturation.F90 (diff)
Commit 2056a9a395e6d8d41d25f58d5e65da97dc4f46bf by bmg2
I initialized some output variables in order to prevent a runtime error.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8472 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3047483573f92b8e310d3f1529a9870a3bdf8446
The file was modified pdf_closure_module.F90 (diff)
Commit d6bbb281bffd128da2be6a16fa6275df12f972f3 by bmg2
I made a sub-driver level subroutine for the calculations necessary for a
responder variable.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8473 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9b930c433b4f7c0162637737a57bd4b5dd51c663
The file was modified new_pdf_main.F90 (diff)
Commit 09094b52ced98602026e3ba4b157d17c07c46b6e by bmg2
I added code to allow the variable (of w, rt, or theta-l) with the greatest
magnitude of skewness be the setter variable (the variable that sets the
mixture fraction).



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8476 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5c0be9f8b54edea4f614fe27d7bdcbabf21071d9
The file was modified new_pdf.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
Commit b8df0b0f7f07bbafe999455169a9e03c928f7b74 by bmg2
I added calls to the functions and subroutines that calculate the implicit and
explicit components of equations for wp4, wpxp2, and wp2xp.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8477 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bd5eb61264aed108784e8a104833036e2737d08d
The file was modified new_pdf_main.F90 (diff)
Commit 796393862523d0e2dc6dcd049937db3fc8702b86 by bmg2
I changed coef_wp2xp_explicit (coef_wp2rtp_explicit and coef_wp2thlp_explicit)
to term_wp2xp_explicit (term_wp2rtp_explicit and term_wp2thlp_explicit) because
"term" is a more accurate description here than "coef".



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8480 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3518be4233b5b02e269e2f3d65518d5006cc64ee
The file was modified new_pdf_main.F90 (diff)
The file was modified new_pdf.F90 (diff)
Commit 58cd28c513082639da7ed8a8c98ea851cfd53ce9 by bmg2
I am adding a new file for the new trivariate skewness-dependent analaytic
double Gaussian (TSDADG) PDF.  I have added an interface in the unit tests,
although the standard tests aren't conducted yet.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8481 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f6b6b4d8826565e3a7efe3f7b0ad3004d67fd74b
The file was addednew_tsdadg_pdf.F90
The file was modified pdf_closure_module.F90 (diff)
Commit 628c9ccf8a8ec694e55e2a305f72feadc5fc3134 by bmg2
I fixed a bug in the new Trivariate skewness-dependent analytic double Gaussian
PDF.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8482 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 2bbab551f1c16a8aacee8191faf4e6fe9f078a03
The file was modified new_tsdadg_pdf.F90 (diff)
Commit 514ef09cc3bbf7f44f4073b9ac4cdbcbdcf760f1 by bmg2
In order for the TSDADG PDF to work correctly, when Skx * sgn( <w'x'> ) >= 0,
l_x_1 > 2/3 and 0 < l_x_2 < 1.  However, when Skx * sgn( <w'x'> ) < 0, the
limits need to be reversed.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8483 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 430ba9fb82f4868373f7d7b04e9f578d7d2a7aaa
The file was modified new_tsdadg_pdf.F90 (diff)
Commit 1be60070880272802ecd85639370eaaa7130eead by bmg2
In order to clarify coding in CLUBB, I am moving a block of code that is
specific to ADG1 and ADG2 to inside their driver subroutines, rather than keep
it outside the driver subroutines, in subroutine pdf_closure, where it is more
confusing to someone trying to understand the flow of the code.

I also added the full PDF unit test for ADG1.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8484 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: dcefdbe88476adfa5843797ca9b175f0532ba91d
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 284816e2267c454cec10b226e2a9e4f5beed0479 by bmg2
I am fixing a bug where rtp2 and thlp2 (and sclrp2) were not preserved when
wp2 became very small.  This bug is being fixed by treating the rtp2, thlp2,
and sclrp2 distributions as single Gaussians in this limit.

CLUBB Trac ticket reference: clubb:ticket:809.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8485 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6fc49c6d8ff3e053530b7120b4085ec62f6b1c3c
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
Commit f254c056660b61f160ad0ddb4add793c7fb6cedb by bmg2
I updated the TSDADG PDF by adding the responding variable description, the
responding variable subroutine, and the driver subroutine.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8486 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5aee19d916b7c32862b399d9be7cf52aa8cc95e9
The file was modified new_tsdadg_pdf.F90 (diff)
Commit 8c5f2d26747d7b6a9fbd65eae0ce0a4dc8d6fb24 by bmg2
When ADG1 or ADG2 are not used, we have to set alpha_rt, alpha_thl, and
alpha_sclr to values (their default values) in order to avoid a runtime error
from the Oracle compiler.  Previous, we had been adding statements after the
call to every non-ADG1-or-ADG2 PDF.  I am changing that to do it in one spot,
similar to the setting of the F_w, etc. output when the new PDF is used.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8488 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3dda9fdc4aa7793281899453d947140fd8e9e9ab
The file was modified pdf_closure_module.F90 (diff)
Commit 82e4512cd314dd9167d6fdf34c1c0131f534bae4 by bmg2
I am calling the new TSDADG PDF from subroutine pdf_closure.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8489 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 47b687afb77aba9f3ad508722183a92a76cafff7
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 9e30e75783f5497150bf902e5ad196bf0c664444 by bmg2
Clarity changes to the new TSDADG PDF.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8490 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 90d307cbedb920815bea8b4cb3e38bbf678ceee6
The file was modified new_tsdadg_pdf.F90 (diff)
Commit 4f8df90fd67b0ffb5fd8b8529e1ec87c7b49e710 by Vince Larson
I added some references to the CLUBB-SILHS tech doc.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8491 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0909638d763d531940e2c39d0f29781bc944ba30
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit eb7b43da00d1e363c842bfa9a13af8366261ea0b by Vince Larson
I added some references to the CLUBB-SILHS tech doc.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8491 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0909638d763d531940e2c39d0f29781bc944ba30
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit d619f5f53cd31fd5e70aed41cdcab497d5e3bde3 by bmg2
I fixed a bug in the calculation of PDF component variances in the new TSDADG
PDF.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8492 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0f2d324713d9aceaeb79e1068f22a5961d392fdb
The file was modified new_tsdadg_pdf.F90 (diff)
Commit efe39da7fe654d39207de5386b2e8c6df823896b by Vince Larson
I added more references to the CLUBB-SILHS tech doc.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8493 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9bbd2e209eb3c3eabfc3bb809173a9c749aa91bf
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 19feff73609725876ea3aecc264562c49276db71 by Vince Larson
I added more references to the CLUBB-SILHS tech doc.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8493 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9bbd2e209eb3c3eabfc3bb809173a9c749aa91bf
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 9978e28d197b2f7b30fbc58554fa93b6b00393e4 by Vince Larson
I added more links to the CLUBB-SILHS overview tech doc.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8494 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c2da8b794e4beb2d89eac738d41f477dc2f6b299
The file was modified generate_uniform_sample_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 98527ca18b054a23337b2f533c07615fa3ea4eaa by bmg2
I have set the tunable parameters F_x and zeta_x to skewness functions for the
new PDF.  Coefficients are currently declared in the driver subroutine and then
passed into subroutines and functions.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8496 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c22cd4b53994328617fc67e53a7790cf1126a814
The file was modified new_pdf_main.F90 (diff)
Commit ccc0b6d541c0713648245747ab1eadaf9cfe888a by bmg2
I needed to increase the limit of nvarmax_zt so that LBA (and other
cases that use Morrison microphysics) could be run with all_stats.in.

I also improved the warning messages when the number of variables
exceeds nvarmax_***.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8500 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3f2cd8d90c71f059c2a0f5fe634139e31b77e32d
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit 10430950c7c61a6d3a595323d24a1307aab1a057 by Vince Larson
I changed the URL references to the CLUBB-SILHS overview document.
Instead of pointing to the larson-group.com webpage,
they now point to arxiv.org.
The shorter URL forestalls error messages from the CLUBB standards script.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8501 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9a8b38e22f389eff1c4a482ad5b599746d904ca5
The file was modified grid_class.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 2c7254b16efe51e134ceb8b03626db9070369c9e by Vince Larson
I changed the URL references to the CLUBB-SILHS overview document.
Instead of pointing to the larson-group.com webpage,
they now point to arxiv.org.
The shorter URL forestalls error messages from the CLUBB standards script.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8501 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9a8b38e22f389eff1c4a482ad5b599746d904ca5
The file was modified generate_uniform_sample_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 5d4fb30b6c9723bafca4801a43b485a2ff04d90e by hoc_browser
Changed variable and subroutine names, see ticket 810 and 811

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8505 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 70c6930d3e20937b44ab1952c25f13703271bcf4
The file was modified array_index.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified index_mapping.F90 (diff)
The file was modified Nc_Ncn_eqns.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 800413e5d6b2b4e7d2102f32abc468d608332e90 by hoc_browser
Changed variable and subroutine names, see ticket 810 and 811

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8505 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 70c6930d3e20937b44ab1952c25f13703271bcf4
The file was modified parameters_silhs.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 87941baa3c7e8cac1b5fc43eb23d3f5376ce7929 by bmg2
I have added the Lewellen and Yoh (1993) PDF to CLUBB for testing and comparison
purposes.  It has also been interfaced to CLUBB's unit testing and passes all
unit tests.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8507 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8b69cefc1eaee288c3bb9148f29f217bde5d22c2
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was addedLY93_pdf.F90
Commit 155144632ea823a8aad31c4e92c5dd2b12bd62fc by Gunther Huebler
Fixed line length exceding 100 characters warnings

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8510 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5abcc9ff7571f0b1ee60353d593f0c9f6145e5ea
The file was modified advance_clubb_core_module.F90 (diff)
Commit cf54191c724355605855f800ef1e96aef010a2cb by Gunther Huebler
Changed the arrangement of variables in the subroutine compute_mixing_length as well as calls to it clubb:ticket:815

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8513 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: cafe9e697d9af413bdcfeee991fd94f7813cc6b7
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit 1261bdb1eb0192241599c0695e77dbb74f33b4ab by Gunther Huebler
Fixed lines exceeding 100 characters warnings clubb:ticket:815

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8514 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5706620361cc9b71e02f6527da0fe30869e37fe0
The file was modified advance_clubb_core_module.F90 (diff)
Commit b9d643f8efaabb8279bdb89230899dc95569bd32 by Vince Larson
I added an option to incorporate the buoyancy term into CLUBB's eddy diffusivity for momentum.
This option is controlled by the flag l_use_buoy_mod_Km_zm, but that flag is set
to false, and so this commit should leave the answers bit for bit identical.

For clubb:ticket:791.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8515 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 1f56ceb1efb1b3d32e2fe232bdfa180a952e1aaf
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7dbb97784343b514c33d7f8b85578d0af7b9cb2d by Vince Larson
I added c_K10 as a tuning parameter in front of the new momentum eddy diffusivity.
Again, the results shouldn't change because the option is shut off.

For clubb:ticket:791


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8516 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c31cb2119386f1d98fd944e43db018ed1356d27c
The file was modified advance_clubb_core_module.F90 (diff)
Commit 852d264a2c802e30cd4e0f83cab4c9d417c77d06 by Gunther Huebler
Removed unused parameters to clear warnings clubb:ticket:803

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8519 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9b8095c6e057e7c0aa9d430ad419ad03a4065683
The file was modified output_netcdf.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified anl_erf.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified variables_diagnostic_module.F90 (diff)
Commit 4426d94037ce302e85668284a534bc046321534a by Gunther Huebler
Removed unused parameters to clear warnings clubb:ticket:803

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8519 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9b8095c6e057e7c0aa9d430ad419ad03a4065683
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified output_2D_samples_module.F90 (diff)
Commit a63e4c88b6bcbd69a45cd2c6216327a9b01cffb0 by Vince Larson
I multiplied the eddy diffusivity for momentum by a skewness-dependent factor
that is intended to reduce momentum flux in cumulus layers.  The idea is that
the cumuli contribute an upgradient flux that is not taken into account by our
prior downgradient formulation.

However, the results should be bit-for-bit identical since the flag that implements this,
l_use_buoy_mod_Km_zm, is set to false.

For ticket:791.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8520 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4b601fea96554aac3e98e5bc3745bac6d2205c25
The file was modified advance_clubb_core_module.F90 (diff)
Commit c5944a96c830d5fbbe8595c7673cbfbe30c90c3e by bmg2
I changed the way that F_rt and F_thl are set in the new PDF.  They are now set
as a constant interpolation between min_F_x and max_F_x (where x is rt or thl),
and the F_rt value can be reduced (toward min_F_rt) by exp_factor_rt, which is
dependent on the adjusted (overall) correlation of rt and thl.

The adjusted (overall) correlation of rt and thl is:

adj_corr_rt_thl = rtpthlp / ( sqrt( rtp ) * sqrt( thlp2 ) )
                  * sgn( wprtp ) * sgn( wpthlp ).

The exp_factor_rt is:

exp_factor_rt = 1 - exp{ -0.2 * ( adj_corr_rt_thl + 1 )^5^ }.

The equation for F_rt is:

F_rt = min_F_rt + ( max_F_rt - min_F_rt ) * coef_rt * exp_factor_rt;

where 0 <= coef_rt <= 1.

The equation for F_thl is:

F_thl = min_F_thl + ( max_F_thl - min_F_thl ) * coef_thl;

where 0 <= coef_thl <= 1 (and where exp_factor_thl is simply set to 1).

CLUBB Trac ticket references: clubb:ticket:777 and clubb:ticket:808.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8521 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c7465ccca8ca132cae3740697ffb3ecf87b45781
The file was modified new_pdf_main.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 085d3f50af1eebbbaa47033513bccf03506ab3ec by bmg2
I changed the flag setting on the new PDF so that it always uses w as the setter
variable.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8522 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f8df06311b269503e0721d31861f86af7a560f3d
The file was modified new_pdf_main.F90 (diff)
Commit ae9ae3e3dc30bd359760c86bee918562732d7859 by Gunther Huebler
Changed many equality comparisons using == to a safer epsilon method, this should end up being BIT_CHANGING, clubb:ticket:803

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8535 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 83f1ba5f428ff05246a994886955eca43d7cfe7b
The file was modified Nc_Ncn_eqns.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 6dc8b188c4c07fd53d28e21d4edbe39e5ab785f8 by Gunther Huebler
Changed many equality comparisons using == to a safer epsilon method, this should end up being BIT_CHANGING, clubb:ticket:803

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8535 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 83f1ba5f428ff05246a994886955eca43d7cfe7b
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 0f8a60bbc1f530c8ff72359bad1438b0a5ee610f by Gunther Huebler
Improved binary search algorithm clubb:ticket:818

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8536 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8f8b516d82350d2ceff815e5fa1a153d1908f4ac
The file was modified interpolation.F90 (diff)
Commit 1cbe16fb05b01b1b4cf50b2c65deb6c5ceb31098 by Gunther Huebler
Added warning messages to function binary_search clubb:ticket:818

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8537 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 55a8aaab680d5c3fc8c5d26479a4a3ec00dd25f0
The file was modified interpolation.F90 (diff)
Commit 6f7801daba3f1a59ce0a4c8c41d6c871fe959502 by Gunther Huebler
Removed unused variables causing warnings clubb:ticket:803

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8538 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 447dda2b6f9f50dbdc0ead7ebb04c82173e5ad39
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified Nc_Ncn_eqns.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
Commit 32948e0ff5444ecbf76708f75bd469a8bd2dbf27 by bmg2
I updated the call to the new PDF so that Skrt and Skthl are intent INOUT
variables.  In the scenario that either one (or both) of these skewnesses are
clipped in the new PDF, the updated values of Skrt and Skthl are passed out.
This is necessary for the PDF parameter unit tests to work properly.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8539 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8c597babe3e55f0052ca3b582ed7f5aaf64a3e3e
The file was modified pdf_closure_module.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
Commit 1911423245af862a7eb5e57f8e9bcc91b8af88d8 by Gunther Huebler
Removed many eqaulity comparison warnings in precipitation_fraction.F90 clubb:ticket:803

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8545 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bf1ce0c334d2290189095d16da33b3298eea51be
The file was modified precipitation_fraction.F90 (diff)
Commit d56edc54adcaea428260146d038a0f6893a6bcdc by bmg2
I am adding a new function, calc_wpxpyp_pdf, to pdf_closure_module.F90.  This
function calculates the <w'x'y'> term that I derived by integrating over the
PDF.  This function is used to calculate <w'rt'thl'>.  Shortly, it will also
be used to calculate <w'sclr'rt'> and <w'sclr'thl'>.  This new calculation of
<w'x'y'> allows for the PDF component correlations involving w to have a value
other than 0.  This generalizes the calculation for a PDF other than ADG1 or
ADG2.

CLUBB's calculation of wprtpthlp in pdf_closure is currently just used for
statistical output.  For ADG1, the old form and the new form of wprtpthlp
produce the same result mathematically.  However, owing to numerical roundoff,
the results of the wprtpthlp in the new revision are BIT_CHANGING compared to
the old revision.  Otherwise, the results in GrADS output files for all other
outputs from this revision are an exact match to the results in GrADS output
files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:777 and clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8546 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 85a115499facd5577647492c2a1cc8c1419b2426
The file was modified pdf_closure_module.F90 (diff)
Commit fd7aa20bb54009799ca395df136dc7703462c698 by bmg2
I finished adding the units to the variable descriptions in
function calc_wpxpyp_pdf.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8547 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 227018a956203820e0e6e3deb63d7064442e00ad
The file was modified pdf_closure_module.F90 (diff)
Commit 5c5313f5a0d4fc7b43a834ff3603f7ea4312d8b3 by bmg2
The calculation of higher-order scalar terms <w'^2^ sclr'>, <w'sclr'^2^>,
<w'sclr'rt'>, and <w'sclr'thl'> are now generalzed for any PDF type.

For ADG1, the old form and the new form of these scalar terms produce the same
results mathematically.  However, owing to numerical roundoff, the results of
the calculations in the new revision are altered compared to the old revision.

Since scalar calculations aren't output to standard stats, the results in GrADS
output files from this revision are an exact match to the results in GrADS
output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8548 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 1de02e2e856ebe28ccf7fa96e26e146a7c1de5fe
The file was modified pdf_closure_module.F90 (diff)
Commit e6afdac47f9659f2f9d0616bf08f7f036ecde46f by bmg2
I added the tunable or adjustable parameters for the new PDF to CLUBB's list
of tunable parameters.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8550 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c2d6df498f894b70febc252006b96502a6877d88
The file was modified clubb_api_module.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified parameter_indices.F90 (diff)
Commit 3a41920e95d798623cc40f94168d709e0654c81a by Gunther Huebler
Fixed various warnings. Mainly by removing unused variables and commenting out unused procedures. See clubb:ticket:803

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8567 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9fcc71ba9fe9e105b1180b1357a4a8513073d9fc
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
Commit 4200fe360ce72c7377df0b0f5c80643f8d7497f0 by bmg2
I am committing a line of code that limits the adjusted correlation of rt and
theta-l at max_mag_correlation or -max_mag_correlation.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8569 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b92144149facd0a7521fbcdba3baac2f3cd6a4c6
The file was modified new_pdf_main.F90 (diff)
Commit 8dc0d797bb099c02aed79d9360606e549e23ff5e by Vince Larson
I implemented a new method to handle cumulus momentum fluxes.
It approximates upthvp in terms of dthlm/dz.
The old method, based on Skw, has been commented out.

This should not change answers because l_use_buoy_mod_Km_zm = .false.

For clubb:ticket:791.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8577 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 97de0326fbb8c32763efecac95e27e8fe7204361
The file was modified advance_clubb_core_module.F90 (diff)
Commit 3290e0eba4a72f8a7ec08d543e1105ab05cc8597 by Gunther Huebler
Switched from using the erf function defined by anl_erf to the intristic erf function. This should be BIT_CHANGING see clubb:ticket:804

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8581 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c47f680bc0e4fa7ba6a8989a2c15a9f3b1a3ece3
The file was modified Nc_Ncn_eqns.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
Commit 44528e35e528c9ca3f597c12040d1eefbeb715fa by Gunther Huebler
Switched from using the erf function defined by anl_erf to the intristic erf function. This should be BIT_CHANGING see clubb:ticket:804

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8581 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c47f680bc0e4fa7ba6a8989a2c15a9f3b1a3ece3
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
Commit 67891bdb3d2819c6e890c4ea998b2c25fc64607a by Gunther Huebler
Removed file anl_erf.F90, it is no longer used

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8582 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 889fed911d2db4710e36ccacba8ee82ebc6cb85c
The file was removedanl_erf.F90
Commit 496afc42dfa487aa03127eaae63bef0ab026d553 by bmg2
I am altering the solution to the wp3 predictive equation to calculate the
turbulent advection term and the turbulent production term independently.

Mathematically, the code is still the same, but numerically, there will be
round-off level differences between the old version and the new version.
This revision is BIT_CHANGING.  However, plotgen shows that lines for the old
version and the new version overlap.  The only cases that show any differences
are the cases that are traditionally extremely sensitive.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8584 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 817ad4cce25c98568f8b5f7239e623c56505195d
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 58ac5319ebb7dbec2410e3dff1fa80c3999a9be5 by bmg2
I fixed the problem with the wp3 budgets as a result of r8584.  The budgets in
the new revision now match (lines overlap) the budgets from r8583.

I also added the l_use_explicit_turbulent_adv flag, which will be used to allow
an explicit treatment of the turbulent advection term (for those equations where
the turbulent advection term is calculated by integrating over the PDF).



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8585 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 15e67de170ecb2fe141ad76cccf699e67883d1e0
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 0908a71238f2462ae5f5b6b88c52689ba918e13f by bmg2
I altered the names of the turbulent advection functions that are closed by
the PDF (from integration over the PDF).  The current functions have been
altered to include ADG1 in their names, because the closure is done by assuming
ADG1 is the PDF used.

The results of this revision are an exact match to the results from the previous
revision for all cases.  However, yesterday's clubb:r8587 changed results
without including BIT_CHANGING in the commit message, so that is being added
here to reset the appropriate Bitten test.

CLUBB Trac ticket reference: clubb:ticket:804.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8589 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 59983e00cb8d7b0d64af979ab088c411ff760466
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 54acce1ef42b67cfeff425f4b147f1a396d108f2 by bmg2
I added a couple comments about how the discretization of the turbulent
advection terms are specific to the ADG1 PDF.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8590 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6759e06e920dd46cbd647292b8f39a9f1fe53acd
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 6bbed2efbc5d562a7f4aded4c5b0d5eadba2912b by bmg2
I added the function that sets up the implicit calculation of the wp3 turbulent
advection term for the new PDF.  This has not yet been interfaced with the code.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8591 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 782eb348eff41c4908448320d84b859108e3bcd6
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 60e6f11dd819cafcfa5a4c6b1f7c3ed713d1f654 by bmg2
I added a function that calculates the explicit form of the wp3 turbulent
advection term to advance_wp2_wp3_module.F90.  This option works for any PDF
type.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8592 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3e9e64e2476e7196d4b35f62eabb21b4fb684a1f
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 821c06bfa97f773d98c40085edb2645fd6e407be by bmg2
I am adding a function to calculate the turbulent advection of wpxp explicitly.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8593 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 23fe1bf4037d21c1827c4ff9e46012a5f88090b5
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 5234cd6880cd9f87b335bc9ad183df7bb74a5992 by bmg2
I am adding a function to calculate the turbulent advection of xp2 and xpyp
explicitly.  This option works for any PDF type.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8594 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 501c3fde5d6941d5913c78f7106c70681d33d9b6
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 186420004c5507db0ee5040a91b25298e89ca8db by bmg2
I interfaced the wp3 explicit turbulent advection code with CLUBB.  It is
turned off by default.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8595 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 985667d04c031b0b8feb554b6edb1260a3e94faf
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 48ea03ac7ef620f41952bc774f75e0ee29a68f71 by bmg2
I am interfacing the wpxp explicit turbulent advection option with the rest of
the code.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8596 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b092b91fbe367a6a286ce1eb60b65edb011e5157
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 7d58047821a003b123d8388e646c29942dee2ab3 by bmg2
I fixed a small bug with the explicit turbulent advection option for wpxp.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8597 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f5b172c76dd5ad50fd0f97c306454957ccad410f
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit ecda7108a1fdb1ec9d9ea3b17af63c07090db3d1 by bmg2
I am interfacing the xp2/xpyp explicit turbulent advection term with CLUBB code.
This works generally for any PDF type.

CLUBB Trac ticket reference: CLUBB:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8598 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9af9946863af42ee030e3b4db8c5ae82b5708d49
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 4c69f1b72a411929d718806f5cda271949ad9a43 by bmg2
I added the l_explicit_turbulent_adv_* family of flags to the new PDF, for some
calculations don't need to be made when turbulent advection is being treated
explicitly.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8599 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f477c736d61efd958d2442176fcdf3ca91f10bd2
The file was modified new_pdf_main.F90 (diff)
Commit 199de59e71871807cd93bcb4ebc98e799a85a349 by bmg2
I am packing up the implicit coefficients and explicit terms calculated by the
new PDF into a derived type variable.  That variable is passed back to
advance_clubb_core so it can be used for such things as implicit turbulent
advection of wp3, etc.  This variable is also passed into the PDF parameter
unit tests.  There, in the future, it will be used for such things as double
checking such things as: wp4 = coef_wp4_implicit * wp2^2^, etc.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8602 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c69c21bfdbfa0ab19a6545692b1682ecf34cdaba
The file was modified new_pdf_main.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit a89104550d9e46e533fa31bf3bd92c83677614b6 by Gunther Huebler
Made epss variable based on its use by adding flag l_high_accuracy_parab_cyl_fnc. Low accuracy for runs (epss=1e-4) and high accuracy for tests (epss=1e-15), see clubb:ticket:804

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8603 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b8da02f687d55e0d56b7d1c141da50be60d06ada
The file was modified model_flags.F90 (diff)
Commit 6d734fcb31a8876c05eae5b5ad869762c825603d by bmg2
I made a slight change to function calc_coef_wpxp2_implicit in new_pdf.F90.
A small bug was brought to light by last night's G unit test failure.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8604 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: bfdba85d07239103cc20ee7cf1445976d442f95c
The file was modified new_pdf.F90 (diff)
Commit 1624553b92964a93b60b81bc053b580e43ebd287 by bmg2
I have completed interfacing the implicit form of the wp3 turbulent advection
term for the new PDF with the rest of the CLUBB code.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8605 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 33dfdbb42d1322be71e5011913a6a57fb2e0aa31
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 42c5e04bcbd0387f44c6b3ac17b9ebbb787579f9 by bmg2
When the l_explicit_turbulent_adv_wp3 flag is enabled, the turbulent advection
of wp3 at thermodynamic level 2 is based on wp4 at momentum levels 1 and 2.
The value of wp4 at momentum level 1 is calculated by interpolating the values
of wp4_zt that is calculated by integrating over the PDF at thermodynamic levels
1 and 2.  However, the values that come from the call to pdf_closure at
thermodynamic level 1 (the "below ground" level) are unreliable because the
inputs are unreliable at that particular level.

The best solution is to simply set wp4 at momentum level 1 to 0.  This also
matches the value of wp4 at the upper boundary.

By default, CLUBB does not use explicit turbulent advection.  However, the
results are technically BIT_CHANGING because wp4 is still output to statistics.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8606 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e5488acd9de2a8e9219a27ff57c3cba664c8826c
The file was modified advance_clubb_core_module.F90 (diff)
Commit f645a7fa5b5eab7ab36b427730226ba206db0d6a by bmg2
I cleaned up the Skx_module and added an additional function,
xp3_LG_2005_ansatz, which calculates xp3 using Skx from the LG 2005 ansatz.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8608 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 709538fce7534b77ec33ae37bbb69353379f7672
The file was modified Skx_module.F90 (diff)
Commit 0f015a9eca1f27ecd084f20d80713c35e94db7c9 by bmg2
I fixed a bug in the calculation of scalar skewness.  It was being set to 0,
causing problems with the new PDF.  I corrected the bug and I also made the
scalar skewness code a little more user friendly.  It is now controlled by a
flag, l_use_xp3_LG_2005_ansatz, which is set to true by default.

In the default ADG1 code, the LG 2005 ansatz is not used interactively.  It only
outputs to stats.  This commit is BIT_CHANGING only because statistics change.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8610 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d86300fff06c4ae2f1d5673e6a0e1c22cf8566a6
The file was modified Skx_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit bce822492723d4d4b56113dc49125951ee4f004d by bmg2
I moved the location of the LG 2005 ansatz to calculate xp3 because it would be
more helpful for testing purposes before the first call to pdf_closure_driver
(which is the call we use).  In default CLUBB, this affects only statistics.
However, this change is technically BIT_CHANGING.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8611 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3a1c774648552b4fb8b0d3e4799bd460890f8b3b
The file was modified advance_clubb_core_module.F90 (diff)
Commit a85dc94233b2feac1f7631b66fc16268f1bd4711 by bmg2
I reverted clubb:r8611 because (1) having the code in the other location
introduced a bug, and (2) upon further review, it just makes more sense in this
location, and is more consistent with the rest of the code.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8614 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 71881434bb65be73688a08b4f88bd556f1733a6b
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5eb6a87a6ff59bcc68d56a668a1fddf396f07a4a by bmg2
I have added a new function, term_ta_new_pdf_lhs, to
advance_xp2_xpyp_module.F90.  This function will handle the implicit turbulent
advection for xp2 and the implicit portion of the semi-implicit turbulent
advection for xpyp for the new PDF.  This code has not yet been interfaced
with the rest of CLUBB.

The previous commit, r8614, changed statistical results, but I forgot to put
a BIT_CHANGING in the log message, so here it is.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8615 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4a56ec579a61738b9a433cadb76b95ea2e234052
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 1a64aba9e0965e5ca2be2ae42114ecfd18324a88 by bmg2
I have linked the implicit turbulent advection code for rtp2 and thlp2 to the
rest of the CLUBB code.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8616 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5c892b7b825cfdea679a968ea139fa8e360c758a
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 32ef7b3f76f1eeb30646cd50c0c3f6d0fd913815 by bmg2
I have added a new file that has two options for handling the xp3 term for
scalars (thlp3, rtp3, and sclrp3).  Both options are based on the d(xp3)/dt
equation.  One option predicts xp3 with the turbulent production, accumulation,
and turbulent dissipation terms.  The other option uses a steady-state
approximation (dxp3/dt = 0) and calculates xp3 from the same three terms, since
xp3 is found in the turbulent dissipation term.

This has not yet been interfaced with the rest of the CLUBB code.  When it is,
this code will be one option for calculating xp3, with the other option being
the ansatz.

CLUBB Trac ticket reference: clubb:ticket:822.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8618 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7be02a8f18fcc08247c90045078ea95a36bc041e
The file was addedadvance_xp3_module.F90
Commit 36fc76e515e1809b0c2db8c8acbb6caf6c2bc5e4 by bmg2
I have interface the new xp3 code to the rest of CLUBB.  It can be turned on
with the l_advance_xp3 flag in model_flags.F90.  It is turned off by default,
which means that default CLUBB still continues to use the ansatz to calculate
xp3.  The results in GrADS output files from this revision are and exact match
to the results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:822.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8619 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8b94ac8fb33138049c067c06d5aeae2c4279510b
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
Commit 817b7d5301840ee5fa5fe98b74b066903a356caa by bmg2
I added a driver level subroutine for the new advance xp3 code.  This will make
it easier to add xp3 budget statistics.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8622 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d0f2a8e83ed686b15cee05cecf437abc9528da86
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
Commit 7d820dc808911b68c5bc7b3bc79824426e2e6beb by bmg2
I added budget stats for rtp3 and thlp3 to CLUBB.

Since this commit adds statistics, it is technically BIT_CHANGING.  However,
the results in GrADS zm, sfc, etc. output files from this revision are an exact
match to the results in the same GrADS output files from the previous revision
for all cases.

CLUBB Trac ticket reference: clubb:ticket:822.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8624 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c1f320b0d32ee3c7f42a22465d991fcfa69645df
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
Commit ddc181ff3266df2b2d9620d409d13c09cab4d2bd by bmg2
I am adding code that allows the turbulent advection of wpxp to be treated
semi-implicitly for the new PDF.

The wpxp code was already split into two sections based on an "if" statement.
One section uses a single left-hand side, and the other section uses three
left-hand sides (for wprtp, wpthlp, and wpsclrp).  The new code has been added
to the section with three left-hand sides.  For the section with a single
left-hand side, dummy variables are passed instead.

The default is to call the single left-hand side, and it will remain that way.
When the single left-hand side is called, the new PDF must use explicit
turbulent advection.  However, since the code was already there for the section
with three left-hand sides, it made sense to enter the semi-implicit code in
that section.  This way, for the new PDF, the semi-implicit turbulent advection
can be compared to the explicit turbulent advection to see if there is any
downgrade in results.  For ADG1, the implicit turbulent advection and the
explicit turbulent advection produce very similar results.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8629 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 71546e35186628f4a7290aac600d51d946fe5eda
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 3f1dc0ded1ee5f8b5885043aaf605e2233d04d2e by Gunther Huebler
Redesigned error code system. Errors are now treated as strictly fatal, meaning they are only thrown by procedures which cannot continue or has detected something that will crash the code. When the error occurs the procedure which detected it should immediately report it and either return to its calling procedure or stop the program, this is to avoid a cascade of error reports due to a single error. Other problems are now reported at level 1 and 2 debugging and only write the error out rather than set a code.

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8635 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0864df227743b27686b96e826991a1bf7fd8c18b
The file was modified grid_class.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified error_code.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified gmres_wrap.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
Commit 30f9c5873c2acf233a9cf8ca3ccfb72ad740ae8c by Gunther Huebler
Redesigned error code system. Errors are now treated as strictly fatal, meaning they are only thrown by procedures which cannot continue or has detected something that will crash the code. When the error occurs the procedure which detected it should immediately report it and either return to its calling procedure or stop the program, this is to avoid a cascade of error reports due to a single error. Other problems are now reported at level 1 and 2 debugging and only write the error out rather than set a code.

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8635 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0864df227743b27686b96e826991a1bf7fd8c18b
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 771489f3d5884d9c350e7027e61919193798dda7 by Gunther Huebler
Various small comment removals and returned some functionality to api interface clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8637 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fac7d1bad2fad4ffdc0012c6bd39c48dcb299c46
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
Commit e825a918920d5b8f6477c6fac06251a72a67f51b by Gunther Huebler
A variable found to be less than zero now only gives a warning rather than setting an error code. Some fatal error checks also changed from debug level 2 to 0 clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8640 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0a7c278ab999293009a3e48ffaa63e7c5e73834e
The file was modified numerical_check.F90 (diff)
Commit cd544c579e1b8dd3405333d72763477ac77d7d57 by bmg2
This is the first part of a two-part change.  I am updating plotgen plots so
that they contain wpthvp followed by the contribution of cloud water to wpthvp,
wp2thvp followed by the contribution of cloud water to wp2thvp, thlpthvp
followed by the contribution of cloud water to thlpthvp, and rtpthvp followed
by the contribution of cloud water to rtpthvp.

In order to plot the contribution of cloud water, a variable named rc_coef is
needed.  Previously, this had been output on momentum levels so that it could
be used to calculate the contribution of cloud water to wpthvp, thlpthvp, and
rtpthvp.  However, wp2thvp (and wp2rcp) are thermodynamic-level variables, so
the contribution of cloud water to wp2thvp couldn't be plotted because plotgen
can't handle variables from two different files (zm and zt) in the same
equation.

In order to plot everything, rc_coef needs to be output on both momentum levels
and thermodynamic levels.  As a first step, I have renamed the previous
rc_coef as rc_coef_zm.  The variable rc_coef is calculated based mainly on
constants.  However, the does contain exner, which is a thermodynamic-level
variable.  Additionally, it is calculated as part of pdf_closure, which is
called on thermodynamic levels.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.  The
variable name rc_coef has been changed to rc_coef_zm in all GrADS _zm *.ctl
files.

CLUBB Trac ticket reference: clubb:ticket:824.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8641 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 09c06d8ab9627dd30252246f78f48144a01e524c
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
Commit 59d3974bbca99650fa4ed55e6572ba5664b732e7 by bmg2
In part 2 of this two part commit, I have added rc_coef to the list of
statistical output variables on thermodynamic levels.  This will allow plots
of the contribution of cloud water to wp2thvp.  Since this adds new statistics,
this commit is BIT_CHANGING.

CLUBB Trac ticket reference:clubb:ticket:824.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8642 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 85cb66d509812298fdc043933fb1c2ee2bf9eadc
The file was modified stats_variables.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit a53242d5e14b0d2cdc77956a1b7dc25ba0bee217 by Gunther Huebler
Various debug checks added/improved. Negative value checks changed back to throw fatal errors. Parameterization check changes to disclude thermodynamic variables at grid level 1 clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8645 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ea6c90ebb091e0edaa253a485bcb0fe74b04e9a2
The file was modified numerical_check.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified gmres_wrap.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 534a0c72de8873a5009bf671530b47f0d49206f9 by Gunther Huebler
Check negative no longer assumes array sizes are gr%nz, this should fix the SAM-CLUBB-SILHS error in the nightly tests clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8648 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c5367d31f8d14bf63fe8db9d739ce3556d199437
The file was modified numerical_check.F90 (diff)
Commit 5c4a849bdb5f53fcf9dfc89fd033336c1efbfc8d by Gunther Huebler
I'm pretty sure this will fix the check negative issues this time, fortran has some lacking features when it comes to arrays clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8650 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9e6bfd050584076696a51885cd3617afab1240f2
The file was modified numerical_check.F90 (diff)
Commit 5594fe9e9fbe5678de31813cee26b5cb9335667e by Gunther Huebler
Changed calls to parameterization check to work with the new check negative implementation clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8651 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ecec6a8815e819b2b51add31db0d3f4995a02a81
The file was modified advance_clubb_core_module.F90 (diff)
Commit 0838560e573a27fecf5357fc654ad1e0d3097e6e by Gunther Huebler


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8652 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b5b67470d5464025531cc981f1b4cd8906fc5450
The file was modified advance_clubb_core_module.F90 (diff)
Commit 710b86bb2771a3ea99f8f49d70eee9f0d7a9fa98 by Gunther Huebler
Removed rtm(5) = -1 line, it was a test accidentally left in and caused many nightly tests to fail clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8653 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3bb388ad7e3f6068c8a15c50cb53ff038dd98d1f
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7819819232585aa60a22328a59ee1678e1a692f2 by Gunther Huebler
Changed error checking if statements to check for equality to clubb_fatal_error rather than inequality to clubb_no_error, makes them more readable clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8656 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e7594b96ec54ad94de28f8ba06d5508ffcbbfd66
The file was modified numerical_check.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 13831ab3cc6c757038004f5404bb16b6e601d99f by Gunther Huebler
Fixed unused variable warnings related to error code changes

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8657 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 178198f65006fe50b1b5f18b7178987d2d1a3c0b
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
Commit df6f4296f21568086b513f923063d7df9a3aced3 by bmg2
I am generalizing the wprcp, wp2rcp, rtprcp, and thlprcp equations to account
for the PDF component correlation of w and rt and the PDF component correlation
of w and theta-l.  In regards to the PDF transformation, this accounts for the
PDF component correlation of w and chi and the PDF component correlation of w
and eta.

For the default ADG1 code, the plotgen results overlap for all cases except for
the most sensitive ones -- ARM 97, TWP-ICE, and MC3E.  For ADG1, the
calculations are mathematically the same, but numerical roundoff errors account
for any changes, making this commit BIT_CHANGING.

CLUBB Trac ticket references: clubb:ticket:777 and clubb:ticket:806.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8659 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a7259659c0a879df9d5e32bd2d3087328bb0304a
The file was modified pdf_closure_module.F90 (diff)
Commit 8da2c418b38a9dcfed11d90ee4d963a6c7c72726 by Gunther Huebler
Added error header functionality. Using the err_header character array from error_code in a write statment will print out either the thread number or process ID along with CLUBB -- ERROR: . This is mainly to  keep track of error messages is multithreaded scenarios clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8660 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 1f3a5d4af18e3ebf53f8b821e413b69d5f1f3381
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified error_code.F90 (diff)
Commit 0ac6d77e9e485ba1860339e34ee86c2dcabd5137 by bmg2
In r8659, I accidentally overwrote some code.  This commit restores the prior
version.

CLUBB Trac ticket reference: clubb:ticket:800.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8661 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: a67cb39ea413c949b2a3432fd5a4d67517d58c0e
The file was modified pdf_closure_module.F90 (diff)
Commit 7d6bf061c7354f5a1bf4d48df53aef4d63158ef4 by bmg2
Sigh




git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8662 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5e94a485df2a451e08b95d4e83532855d4941de1
The file was modified pdf_closure_module.F90 (diff)
Commit 0a5bae799b090651a0fbaec135c784eb1e43af79 by Gunther Huebler
Added clubb debug level checks to error checking statements clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8664 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: d913e4e936096a1222f3571a31802d39f8029f0b
The file was modified mixing_length.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
Commit 8dd2efb7b881a9decacf6ab60b8cd4595fb795d6 by Gunther Huebler
Changed many stop commands to return commands and added more err_code checks clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8665 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4e6f274e0940c80fd0fdac7c7887f8b6138beeb2
The file was modified output_netcdf.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified csr_matrix_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
Commit 931223883ea8311dd6b46251763db82296b8f617 by Gunther Huebler
Reverted api changes that broke SAM and WRF

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8669 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5cb5ad6b721ddb72d4c4261a5c538f769b31f4c8
The file was modified clubb_api_module.F90 (diff)
Commit 9fb1e0ea6977aab5c009b67ff7f2d6a354297479 by bmg2
I am adding the semi-implicit formulation of wprtpthlp, which is the turbulent
advection term in the rtpthlp predictive equation.  This form is specific to
the new PDF.

CLUBB Trac ticket reference: clubb:ticket:777.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8674 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3ee9e6dc10b2a96e93f73731abc0e689e4f5285d
The file was modified new_pdf_main.F90 (diff)
The file was modified new_pdf.F90 (diff)
Commit 3edb1f2cd144c0c6f10c9db65c8e899beafaff20 by bmg2
I am adding output statistics for the implicit and semi-implicit coefficients
and terms that are used for wp4, wprtp2, wpthlp2, wp2rtp, wp2thlp, and
wprtpthlp in the CLUBB predictive equation set.

When the ADG1 PDF is used or when turbulent advection is handled explicitly, a
value of 0 is simply output for these fields.  However, new fields are now
added to the *_zt and *_zm statistical output files, making this change
BIT_CHANGING.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8678 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: aa2d2842b3845f5fa9ee66237db4e1fc18d65cc1
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit a9341697c80d2668d3079c9ae142e1a2ebd70b43 by bmg2
I corrected the units on a couple of implicit coefficients.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8679 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: cf7e5004ede5dd3c7bdcd925f3cb200af658b317
The file was modified new_pdf.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
Commit ce15cc8f9aae4e22a3bddf4992f02f34d723cbd1 by bmg2
I fixed a bug.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8685 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ec7f561c61f350ab4ec77e9c5953584ae8c3a2ad
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 82b8e1b410e1f524cb976f0261acb1b6e199af76 by Gunther Huebler
Removed failure_test cases from input/case_setups, they neither work properly nor are needed anymore. Added test_fatal_error_handling.bash script which tests for various errors defined by an identifier in the code, more description available in the bash file. Also added more descriptive error output to some parts of code. This change focuses only on output and comments and is BIT IDENTICAL clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8688 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 91ac88eb9164cd49ca80fc713029c1bd4b6ff40e
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5a5297f9ab35944a45cf8b8e9391c0a861b3905f by Gunther Huebler
Removed reference to run_type 'failure_test' as it no longer exists. Added more description to fatal errors produced by calls to xm_wpxp_solve. This change is BIT IDENTICAL clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8690 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 23cc4aa2bc4aa6c27d508bad874a6818b4e9f158
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 9ceaa37d3cc78dbf56569a7d4a08768352d0b01e by bmg2
I am fixing a bug with the CLUBB tuner.  Variables that were allocated at the
start of each CLUBB run were not being deallocated, causing the tuner to crash.
I also made some of the code a little bit more easily readable.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8695 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3bce461a95c155074c37ddaf67a359722684b032
The file was modified stats_clubb_utilities.F90 (diff)
Commit 7a2fad444aefaa42626b4f4f1ba874ad6a9ac934 by Gunther Huebler
Completed the list of variables that get reported from errors within advance_wp2_wp3 and advance_xm_wpxp. Also added a check that outputs an error message when T_in_K is less than 200K in the lowest 10 grid levels, this check is done in subroutine parameterization_check. clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8697 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 53e78bde17cf1e7916cffca0c52828aea6a78804
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified Skx_module.F90 (diff)
Commit e5907f835fe697746c161b04ef63ddf67c834a4f by Gunther Huebler
Made all debug levels produce the same output, see clubb:ticket:823

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8700 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e0155881872223e0415c76a109ea31b51a221779
The file was modified fill_holes.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
Commit ac9622bf0cc09cc316434886e129bb7314d08a11 by bmg2
I am moving type variable implicit_coefs_terms from new_pdf_main.F90 to
pdf_parameter_module.F90.  The goal is to use this type variable for all PDF
types, not just for the new PDF.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8702 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e2a336674b0425021f90e328156effd55497e67b
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 7d18837476666806239c9825cf4b67e6f9a23c18 by Gunther Huebler
Modified many aspects of the tuner, mostly within esa_driver. Also added check to ensure that C7 and C11 have valid values before the run is tried, this should stop the fire tuning nightly test from crashing. See clubb:ticket:802

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8705 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9cedfb7d28f1ed37f746348dbb9082075ebe26ce
The file was modified parameters_tunable.F90 (diff)
Commit eabe48e0df1cdb0f1e235c23a9078a4afac1d17e by Gunther Huebler
Added checks in subroutine setup_parameters() to ensure that C7b and C11b are within [0:1] see clubb:ticket:802

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8706 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 02a68858d0eb8c5ae738be483dd9ff80835de531
The file was modified parameters_tunable.F90 (diff)
Commit f8e787b9279acee257f8f5239f4d59565a1a31b0 by Gunther Huebler
This should fix the thlm out of bounds error on clubb:ticket:828

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8707 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b66209934392d16efc4dc1e3787cb8e0301f1dd1
The file was modified numerical_check.F90 (diff)
Commit 59dd7cde986a3b07374d847937800451514f2378 by bmg2
I changed the name of type variable new_pdf_implct_coefs_terms to
pdf_implicit_coefs_terms in order to help generalize this variable for use with
any type of PDF.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8708 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 06cc2f631557b8f9b584c2260843ca3aef8d1a61
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 3a824d458cbfb497e1b920ed3f9b1128924210f6 by Gunther Huebler
Changed T_in_K check within subroutine parameterization_check to instead check thlm, see clubb:ticket:800 and clubb:ticket:828

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8709 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f413987ba6cb3288915c9ee945dbb23ca7ca13e4
The file was modified numerical_check.F90 (diff)
Commit b1accae6cdf52d3613804d3e868dd2f2259ae9d8 by bmg2
I added a flag option to clip the (large, negative) effects of microphysics on
rtp2 and thlp2.  Right now, this flag is turned off by default, so the results
remain the same.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8712 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 56dcb3ae49ea059027553d6236b35374df61ab73
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 313ad512a4c8fdc9f1e171ebb05a4ecf01b749d4 by bmg2
I added a flag option to calculate the minimum threshold for xp2 (rtp2 and
thlp2) based on maintaining an overall correlation of w and x that falls
between -max_mag_correlation and max_mag_correlation.  Right now, this flag is
turned off by default, so the results remain the same.

CLUBB Trac ticket reference: clubb:ticket:822.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8713 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 827263c713117eec5b4f415f3fab91e7aacd751e
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
Commit f41025c81a0ff30e00667a02e0060a989d745acc by bmg2
I added a special max magnitude correlation for fluxes wprtp and wpthlp.  This
variable is called max_mag_correlation_flux and it is set to 0.99 by default
(the same value as max_mag_correlation) so results remain the same for now.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8714 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 820d0ca1cfb24d472ea0df14d9773a300f7838ca
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified constants_clubb.F90 (diff)
The file was modified clip_explicit.F90 (diff)
Commit 75959a494104447dc36320e08168100f868558dc by Gunther Huebler
Made better esa_driver, made tuner_test to test the driver, added variable range checks. Tried to make the tuner in better in general, but that whole bunch of code needs nothing short of replacement. This commit is bit identical execpt for tuning results, see clubb:ticket:802 for a bunch more information

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8716 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: cb3732ec186d149883164709deaead448d995038
The file was modified parameters_tunable.F90 (diff)
Commit e3d58ba763369692018fa4a1140ad436623b4840 by Vince Larson
This commit sets C8b=0.02, changes the non-linear damping on wp3
from Skw^4 to Skw^2, sets C11b=C11, and relaxes Skw_max_mag to 10.
These changes are designed to reduce the clipping on wp3 (although
the clipping is not eliminated), and to allow greater skewness
in cumulus cases without altering the stratocumulus cases. 
This offers opportunities to increase the contrast
between shallow cumulus and stratocumulus in global simulations. 
This commit is BIT_CHANGING.

For clubb:ticket:817.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8719 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c3b9f880a412da4e3b527cba7a587fdce2c14e3e
The file was modified constants_clubb.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 10a9678f87e1c19f9d20482b6d9e8b9bb86057fa by Gunther Huebler
Added a flag and moved Skw_max_mag from constants to parameters, this allows the changes made in commit clubb:r8719 to be reverted by modifying the configuration flags and the tunable parameters list, see clubb:ticket:829

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8722 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4a4f3e30a724310cb2342bcd8f99792e63e7922c
The file was modified model_flags.F90 (diff)
The file was modified parameters_model.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified constants_clubb.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified clip_explicit.F90 (diff)
Commit cee383b89783f8dba35ea28b766ec787f08691d4 by bmg2
I am adding a general purpose function for the turbulent advection of CLUBB's
predictive variances and covariances.  This is for the momentum-level predictive
fields that handle turbulent advection by integrating over the PDF.

Regardless of PDF type, all of these turbulent advection terms can be written
in the following form:

d<x'y'>/dt = - (1/rho_ds) * d( rho_ds * <w'x'y'> ) / dz; where

<w'x'y'> = coef_wpxpyp_implicit * <x'y'> + term_wpxpyp_explicit.

This allows for one set of turbulent advection functions that can be reused for
multiple variables, for any PDF type, and even for the explicit turbulent
advection option.  This allows for a much simpler flow of coding, and also
has the perk of expanding the "upwind" turbulent advection option to other
PDF types (besides ADG1), without adding a whole bunch of specialty functions.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8724 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: dd55be7bcda2c95e11dc19ca4b00a5ed5b07e013
The file was addedturbulent_adv_pdf.F90
Commit 8229ba9d74d876bcc0698e1ac0e67d554ccee448 by bmg2
I added/changed a couple comments for the rhs portion of the generalized
turbulent advection functions.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8725 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 205652eccb7a8134e56139076588faf4264b0496
The file was modified turbulent_adv_pdf.F90 (diff)
Commit 203d7900ea874e5b24af54b97f8d130f72c9ef25 by bmg2
The turbulent advection file that handles turbulent advection for predictive
variances and covariances (where turbulent advection is handled by integrating
over the PDF) is now set!  Functions that handled the LHS (implicit component)
and RHS (explicit component) of the turbulent advection term are ready to go!



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8726 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3894e413ee48034e5a8a75a0f6e49d66d9f9cccf
The file was modified turbulent_adv_pdf.F90 (diff)
Commit 74d40e391a81f2ec1ca1d71ac5f93ccbff527841 by bmg2
I added a function to turbulent_adv_pdf.F90, called sgn_turbulent_velocity, that
calculates the turbulent velocity for a predictive variance or covariance for
use with the "upwind" turbulent advection option.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8728 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0fa11b05c00ca08cd1373f15bc8d36f908a2556e
The file was modified turbulent_adv_pdf.F90 (diff)
Commit 94d2e20139114e5f5009ea286ceccc775534f51d by bmg2
Whoops, I forgot to make wpxpyp_zm and xpyp intent (in).



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8729 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 00b12f393cc3fd434006faebdbcbf052f1c7d792
The file was modified turbulent_adv_pdf.F90 (diff)
Commit 67dcf4b14d66f7d4c55095c2d6fd2e6357548851 by Gunther Huebler
Added functionality to make the  hydrometeor variances depend on the horizontal grid spacing, see clubb:ticket:830

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8730 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e9089dce7bcad2b4b235a03d128216f633136f0f
The file was modified array_index.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
Commit 6fcdeeeda0f1708e9af2d38d3a47fbc7598b06ad by bmg2
I am updating the code that advances predictive variances and covariances in
advance_xp2_xpyp_module.F90 to use one set of turbulent advection functions
for all turbulent advection options (explicit or implicit/semi-implicit based
on PDF type, as well as centered or "upwind" discretization").

Along the way, I discovered that the current ADG1 implementation, which is
supposed to be using "upwind" discretization, is only using "upwind"
discretization for the implicit component of the turbulent advection term, while
using centered discretization for the explicit (RHS) component of the turbulent
advection term.  An "upwind" discretization for the explicit component was never
added to the code.  I assumed this was an oversight, and an "upwind"
discretization for the explicit component of the turbulent advection term was
added as part of the new code for this project (in a prior commit).  Both
implicit and explicit components now use either centered discretization or
"upwind" discretization consistently.

Owing to the RHS discretization correct, as well owing to a different order of
calculations, this commit is BIT_CHANGING.  However, plots of all cases show
that the previous revision and the current revision overlap for most cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8731 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fdba5b894298fe351486792a92a521586dc1d9b7
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit fb8065e129f7e8ea2ba43d10446efafc26555494 by Gunther Huebler
Renamed init_pdf_hydromet_arrays to init_pdf_hydromet_arrays_api since it is meant to be used by host models, clubb:ticket:830

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8733 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fbc3b6719ef6a8a5d8f4f728c77ca6aeac8886d4
The file was modified clubb_api_module.F90 (diff)
Commit 0249e99c6cd889bb8537572f8e1d83fc21a915e5 by bmg2
I am updating the code that advances predictive scalar fluxes (<w'x'>) in
advance_xm_wpxp_module.F90 to use one set of turbulent advection functions for
all turbulent advection options (explicit or implicit/semi-implicit based on
PDF type, as well as centered or "upwind" discretization).

For the default ADG1 PDF, the calculations are mathematically the same.
However, they occur in a different order in the new code.  This makes this
revision BIT_CHANGING.  However, plots of all cases show that the previous
revision and the current revision overlap for most cases.  Only the most
sensitive cases show differences on the plots.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8735 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ef271ff2d4a0fb4b7ca7fdfbaba3a3d2f6cac016
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 84eb73b8d08f9bc2b3d2d3941bbc7c197b671093 by bmg2
As a first step toward having code that can clip mean values of hydrometeor
concentrations or SILHS sample point values of hydrometeor concentrations, I
have made a new subroutine out of the code that clips hydrometeor
concentrations.  It is not yet interfaced and I haven't deleted the old code
yet.

CLUBB Trac ticket reference: clubb:ticket:833.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8736 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 7f535b468ffcb92bbded378a263a9d3ffa2bd736
The file was modified fill_holes.F90 (diff)
Commit 0a518f3553cb13ad37bf5410f6d638d2ea79f2db by Gunther Huebler
init_pdf_hydromet_arrays_api now sets the value of hydromet_dim as well, this should fix the wrf tests, but doesn't seem to fix cam. clubb:ticket:830 other:ticket:562

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8737 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 28016716b08941d7e9ed1b1055b40300eb842b9f
The file was modified clubb_api_module.F90 (diff)
Commit 89000415c991e9c188c91e11fa80184e507d965f by bmg2
I have now interfaced the subroutine that I made out of the code that clips
hydrometeor concentrations with the rest of CLUBB, in place of the old code.
The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:833.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8738 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 1935918c4825f5c4b7b5bed91355b19954edd555
The file was modified fill_holes.F90 (diff)
Commit e1286c608df85ea656739a4711521e626baa7ab8 by bmg2
I have added a call to the subroutine that clips hydrometeor concentrations from
SILHS.  This call clips the value of hydrometeor concentrations for SILHS
sample points, rather than for grid means.  This code is enclosed in a flag,
l_clip_hydromet_samples, that is turned off by default.  The results in GrADS
output files from this revision are an exact match to the results in GrADS
output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:833.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8739 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 5d153ec8c40983f99d2d2001ca7458f8024fbf2b
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit e31aae7b02811fb9034da4e9e0f97f29603e2a2d by bmg2
I added new code that clips the overall correlation of w and rt or the overall
correlation of w and theta-l by increasing wp2 (after advancing wp2) when one
of the aforementioned correlations is outside of the range that they're
supposed to be in.  This code is controlled by a flag, which is turned off by
default.  The results in GrADS files from this revision are an exact match to
the results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:835.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8740 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6fc699c3a4be0c178ba1e7e05b3571bf218f5367
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit d4e0f942e2c4fea13259aea59151e689111d4eb8 by bmg2
I added stats for term_wprtp2_explicit and term_wpthlp2_explicit, which are
part of the semi-implicit turbulent advection term for rtp2 and thlp2,
respectively.  This is used for ADG1 and for the explicit turbulent advection
option.

Since new stats are being added, this revision is BIT_CHANGING.  However, this
is only for *_zt stats files.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8741 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f8c7a58900f887917c29446fb79f7af1df9ac777
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit 9216aa9dddfd6115909e238aa44fc3b70ced3773 by Gunther Huebler
Made clubb_fatal_error public so host model code can detect fatal errors. clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8742 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 41e97fd33df9189dcbd8401090b1b6fb9cbfd198
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit dd55be4737a50a6033e606883382a7085f9b1c26 by Gunther Huebler
Reverted advance_windm_edsclrm_module.F90, accidentally committed test code, clubb:ticket:800

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8743 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e89c92fd0f27d2c264c4bdd7cfd54d564d639ceb
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit 095ae79bf0437ae71cade1390af663fa0ee5f1b6 by Gunther Huebler
Fixed nightly tests

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8744 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: ce40ceb7330f98de907410203e620c04fac4f7e9
The file was modified clubb_api_module.F90 (diff)
Commit 5a2c7c73d6490d53ab9a3c7930c37c52d52904e8 by bmg2
I have added code to allow C2 to be adjusted by multiplying by the greater of
cloud fraction or a small constant.  This code is turned off by default.  The
results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Trac ticket reference: clubb:ticket:836.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8746 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 0b346735398eebf6d3aa78a2aade0277168bb964
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 6c918c0f09f47468a92d2893276ae667b0fa5c63 by bmg2
I moved the location of the declaration and setting of new model flags to
model_flags.F90 so that they could be read in through the configurable model
flags namelist.

CLUBB Trac ticket references: clubb:ticket:835 and clubb:ticket:836.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8747 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c7148d45f984e40bf473959504068e851c565edc
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 41c69abbeda07301f40a459338d56333b541b8b6 by Gunther Huebler
Improved computational speed of windm_edsclrm_rhs and added subroutine. This commit should be BIT_CHANGING as it does calculations in different orders. Only the most sensitive cases have any noticable plot differences. See clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8751 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 560390daf8556a0a5f94f8887d4e8fa470dcb8a7
The file was modified diffusion.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit 47cc48c6153c8ac4d46152a54b0b7ab46c6fd837 by Gunther Huebler
Fixed nightly uninitialized variables test. Renamed diffusion_zt_lhs_inner to diffusion_zt_lhs_all, it is now also capable of calculating all values including boundaries now, it's beneficial to calculate the upper boundary value in this case and I imagine other may need the lower boundary calculated as well. Cleaned up windm_edsclrm_rhs A LOT, it's more readable and has clearly ordered steps now. clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8757 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 8c69c81acdc9cc0842ffd162a9e934d586b00c5e
The file was modified diffusion.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit 1d391de95c4b312041456ecc13b165a54f2d1402 by Gunther Huebler
Actually fixed nightly tests now (hopefully). A loop variable was being used outside a loop, which is an error that passes all the compiler tests. Also the intel compiler config file does not cause errors running if a index variable has not been initialized either, which resulted in correct seeming plots, timing, and output. I'm going to have to be stricter with the testing during these changes as loop variables and such will be often modified, I'll be sure to do a run after compiling with each compiler on top of confirming the output and running the uninitialized variable test manually. Because the last commit fixed the 2nd value of the rhs array the change will be BIT_CHANGING, but the plot output is identical for all but the most sensitive cases. clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8758 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: be4e4b3491e9d5cb60f878d34533b97259ae75d5
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit 2186e361695511d0e57bd728903ffddb7a7ada18 by Gunther Huebler
Optimized the array setup procedures within advance_xp2_xpyp. Added more functions which handle entire arrays at a time rather than single terms to calculate the turbulence, mean advection, and diffusion terms. Because these changes reordered some calculations the results are BIT_CHANGING, but the plots are the same for all but the most sensitive cases. clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8761 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: e04c8b4d12c19f275a7ffb2c48ca2b0cd1a32539
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified mean_adv.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
Commit 2527ef4247d172eeea40ec4e8502a62a3ea67e05 by Gunther Huebler
Reverted stats_clubb_utilities, accidental commit

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8762 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c1854eb8cedabd6dc0776b86313ed70f8c5c5ee8
The file was modified stats_clubb_utilities.F90 (diff)
Commit 6e57d219689d582e8d25d0213163984dd64d28c9 by Gunther Huebler
This should fix the nightly budget test. We may want to look into reducing the redone calculations for the stats code in the future, this lhs/rhs improving endeavour is definitely helping with that but more could be done. clubb:ticket:834 clubb:ticket:837

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8763 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 989d179f909385c13ff929975318299b4e86f409
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit 29ebdfcb8332dbe0cc4c3bc884b831c5752dc367 by Vince Larson

This commit adds splatting terms to the wp2, up2, and vp2 equations.
A tuning parameter, C_wp2_splat, has been added, as well as budget term stats.
However, C_wp2_splat still needs to be added to the error.in files.
In addition, no splatting effect has been added to the wp3 equation yet.

This commit is BIT_CHANGING, but only because new budget terms have been
added to the zm stats.  The results are identical because the value of the tuning
parameter C_wp2_splat has been set to zero.  I spot checked the
output from arm_zt.nc, and it was identical to the prior revision
except for the inclusion of C_wp2_splat in the new .nc file.
Also, the plots looked identical for the priority cases, even
the sensitive cases like arm_97.

For clubb:ticket:832.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8765 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: f8b5de7f54101ada0a8d95a5d5dc55760030b464
The file was modified parameters_tunable.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 934865a509b3b821c1fd3ba8519456bcc069fbb8 by Gunther Huebler
Impoved the computational efficiency of xm_wpxp_rhs and xm_wpxp_lhs, see clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8767 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 090ab653a2e793683920a8a0efc7b22cb5a7ed82
The file was modified mean_adv.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 39398fe6f19281b12245d9ff9bcd16468f60d44d by Vince Larson
This commit implements the effects of splatting on wp3.
Splatting diminishes wp3 by reducing both vertical motions
and skewness near inversions and the ground surface. 

This commit adds a new term to the wp3 budget, wp3_splat,
and hence is BIT_CHANGING.  However, otherwise, the results
appear to be bit-for-bit identical; at least, they are for the
arm_zt.nc file. 

For clubb:ticket:832.


git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8769 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9e1536d8bc22fe532acc78067afa1e35b1c3324f
The file was modified stats_variables.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 16b36fb205bdfc55659c1204a4be16b4258c8dc8 by bmg2
I am making the first step toward committing code that allows for the option
of advancing um/upwp and vm/vpwp along with xm/wpxp variables.  I have added
the l_predict_upwp_vpwp flag and I have modified subroutine
advance_windm_edsclrm appropriately.  Results in GrADS output files from this
revision are an exact match to results in GrADS output files from the previous
revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8771 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: c1cb950ae77d865b0e96535a06c49a4c67b95aff
The file was modified model_flags.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit c7c4a8728f3beb30a09a265911580c71a5b3303b by bmg2
I added code to allow the option of predicting upwp and vpwp by using the
advance_xm_wpxp code to predict um and upwp, as well as vm and vpwp, alongside
the advancement of other xm and wpxp variables.  The option to do this is
controlled by the l_predict_upwp_vpwp flag.  When the flag is turned off (which
it currently is), the traditional code in advance_windm_edsclrm is used for um,
vm, upwp, and vpwp.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8772 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 6c5845b594ec8f0221ec8b931f624d3a64efe030
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 5f3450b73aa08a477fab3fe1c06e3b2eedcfdf18 by bmg2
I took the liberty of upgrading CLUBB's PDF closure and related code to a vector
array rather than a loop over PDF closure over all vertical levels.  The
majority of the changes were simply promoting single-value variables to vector
array variables and changing vertical-level-dependent "if" statements to "where"
statements.  Otherwise, var_1 = C * var_2 * var_3 works for both single-value
variables and vector array variables.

The results in GrADS output files from the current revision were an exact match
to the results in GRADS output files from the previous revision for all cases
when optimization (for gfortran) was set to -O0 for both the previous revision
and the current revision.  Likewise, the results in GrADS output files from the
current revision were an exact match to the results in GrADS output files from
the previous revision for all cases when optimization (for gfortran) was set to
-O1 for both the previous revision and the current revision.

However, when optimization (for gfortran) was set to the default value of -O2,
the results are not an exact match between the previous and current versions.
Some property of vectorizing the code must cause differences when optimization
is set higher (-O2 or -O3).  This makes this revision BIT_CHANGING.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8773 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 34d66b14aafa808a28970d51c0f54d43e8654f1f
The file was modified new_pdf_main.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified LY93_pdf.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified new_tsdadg_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified calc_roots.F90 (diff)
Commit d06277e3aa5630a079c12066c053c590b07407c4 by bmg2
I updated the monotonic flux limiter to account for vector variables u and v.
The monotonic flux limiter can now be used with um/upwp and vm/vpwp.  Compared
to previous results with l_predict_upwp_vpwp turned on and the call to the
monotonic flux limiter omitted for um/upwp and vm/vpwp, the results are an exact
match for all cases except ATEX, CGILS S6, CGILS S11, CGILS S12, and MC3E.

The l_predict_upwp_vpwp flag is still turned off, so default CLUBB results
remain the same as the previous version.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8774 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 863243836db1aa00e0e247647ab808ea9462c1c2
The file was modified mono_flux_limiter.F90 (diff)
Commit 1712c2ec43aed1ce5db0776585a6fe8ecafaaddd by bmg2
I am adding two new budget stats, um_mfl and vm_mfl, to CLUBB's zt stats output.
I also made small corrections to the upwp and vpwp clipping numbers and I
introduced error checking so that l_predict_upwp_vpwp can only currently be used
with ADG1 and with implicit turbulent advection.

Since new stats have been added to the zt file, this revision is BIT_CHANGING.
However, only the zt stats output files are changed.  The remaining stats output
files from this revision are an exact match to the previous revision for all
cases.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8775 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 4b307e4c38a33dedfd187e2bd134de4c5dac6bb0
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit e332712a0fa6b7e7c8ec53707e7d36abadf62407 by bmg2
In r8775, I forgot to add the new um_mfl and vm_mfl stats to the monotonic flux
limiter.



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8776 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 3bb8862710542400fad91e2e495e4c9358f91496
The file was modified mono_flux_limiter.F90 (diff)
Commit 667c9ea18924393a999502f05d11138850316c1d by bmg2
I am turning on the l_predict_upwp_vpwp code!

This revision is BIT_CHANGING, in the best way possible!



git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8778 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: fbf124c85d68eda019777aac6790e369e30e829c
The file was modified model_flags.F90 (diff)
Commit 7bdde8bb98e39e33f8c1e0b1beb57ddaf50d4dcd by Gunther Huebler
Improved the computational efficiency of the LHS and RHS setup procedures in advance_wp2_wp3_module. This involved changing the order of calculations which casues this commit to be BIT_CHANGING for only the most sensitive cases. See clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8780 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 52dc00a1ac3994ccf521d693f0625dee06aa6242
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit a62d534df9295f8929a7966f6742f1bb5fbc226b by Gunther Huebler
Improved computational efficiency of windm_edsclr_lhs. See clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8781 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: b30e9584d2828083fc42dd3580ca6438667216c2
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit a6b375b1820233dab18dad3bc9e4757a56a45139 by Gunther Huebler
Changed the name of _turb to _ta, and _advm to _ma to keep with the current naming conventions. Also fixed line length warnings. clubb:ticket:834

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8782 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: eb87f1b4a5550ecc44fbe749862b6cff656f166e
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified mean_adv.F90 (diff)
Commit 94a340e184b616d28bd6c155f8ddb84f193d1ab5 by Gunther Huebler
Added grid_class to the dependency lists of the pdf files that were changed in commit 8773

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8783 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: 9bdea81a104b568440d7e96139ea0b8af8155aeb
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 57ccb4777be0ec4b156749677932f99785b9307b by Gunther Huebler
Accidental commit, undoing 8783

git-svn-id: file:///usr/local/src/svnroot/clubb_repos/trunk@8784 f1ce5500-ea2b-45e0-a110-28dffb978352

Former-commit-id: cabf23cfdfd5a6e69982c2c8d22c7f2f5899becb
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit b6174f642f2043d29a8380a5093d18b7a8438051 by Brian Griffin
I am changing the default setting of flags l_min_wp2_from_corr_wx and
l_min_xp2_from_corr_wx to true to match what is found in
configurable_model_flags.in.  This is for #835 in CLUBB GIT Issues.
The file was modified model_flags.F90 (diff)
Commit 26007da2390b402bded083d130374840ca0c354c by Gunther Huebler
Modified compute_Cx_fnc_Richardson. Made it a subroutine, modified the algorithm slightly, removed use of allocates and deallocates from it, removed verical_avg call to avoid redoing calculations and precalculated some divides. This saved clubb_core about 8% runtime overall. see clubb:issues:834
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 25761f981a2c0900733322ee3e3c70342e8cbdb4 by Gunther Huebler
Removed print line. Also this commit is BIT_CHANGING since it reorders some calculations, but the difference only affects the most sensitive cases.
The file was modified advance_helper_module.F90 (diff)
Commit 72b36ee56fd04d6703723b2a64e1997c16609197 by Gunther Huebler
Changed the way that init_pdf_params zeros out values as well as a spot in pdf_closure which does the same type of thing. Also changed the debug level for pdf_closure_check to 2. This all saved about 3% overall. see clubb issue 834
The file was modified pdf_closure_module.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
Commit 8d6e9153ccb95af59afbcd9fad0e0b4258801ccf by Brian Griffin
I am adding source code for the introduction of budgets for predictive upwp
and vpwp.  This is the first commit of a two-stage commit.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 8b6e616a45f804c498d3ce6ac4a802b30fffbab8 by Gunther Huebler
Improved computational speed of compute mixing length by modiying the algorithm slightly, avoiding unnecessary divides, and precalculating values. This saves about 6.5% overall. #834
The file was modified mixing_length.F90 (diff)
Commit 85d980ead9d6e04b380fb326fcd63a72d09ac750 by Gunther Huebler
Improved computational efficiency of band_solve by reworking the way that the lulhs matrix is set up. #834
The file was modified lapack_wrap.F90 (diff)
Commit 2b2c9519389dab1529f1ac5fea57ceb6157f902f by Gunther Huebler
Modified flatau equation which calculates saturation vapor pressure. This was done by modifying the form of the polynomial to allow the cpu to take advantage of out-of-order computations. The new coefficients were obtainted from matlab by finding the roots and multiplying/adding them where I needed to removed the complex numbers. The differences in any values are negligible, and the plots are only affected in the most sensitive cases, but this is BIT_CHANGING. #834
The file was modified saturation.F90 (diff)
Commit 4a6c2943cad5ec872cc9459201436bc7fc562d6d by Gunther Huebler
Copied code from linear_interp_factor to linear_interpolated_azt/_azm. This allows those sections of code to become vectorized. Also reversed the calculation order of linear_interpolated_azt allowing for contiguous memory access. This saves about 3% overall and there are no visible differences in the plots when compared to last commit. #834
The file was modified grid_class.F90 (diff)
Commit a7117763631381c34ab604941651b72b1c7a9b69 by Gunther Huebler
Changed vertical_avg and vertical_intergral to use dz rather than the inverse, they were dividing by an inverse and divisions are expensive. Also modified vertical_avg algorithm to no longer use vertical_integral, this saves some calculations. #834
The file was modified fill_holes.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit e70a1709b6228f589a1582a96e51c3afefaa14f4 by Gunther Huebler
Changed vertical_avg and vertical_intergral to use dz rather than the inverse, they were dividing by an inverse and divisions are expensive. Also modified vertical_avg algorithm to no longer use vertical_integral, this saves some calculations. #834
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 647260c7c91d494a968c69c0ed377a322c257cd8 by Gunther Huebler
Improved efficiency of clip_covar. The only change is saving the result of max_mag_corr * sqrt( xp2(k) * yp2(k) ) rather than calculating it three times. #834
The file was modified clip_explicit.F90 (diff)
Commit 8a9a8dd41a238142d1e2f7543fa5b831f004ec33 by Vince Larson
I made the surface splatting terms conservative.  That is, I subtracted from wp2_sfc
when splatting adds to up2_sfc and vp2_sfc, in such a way that the sum is unchanged.
To avoid temporal noise, I needed to preserve the realizability of wpthlp_sfc and wprtp_sfc,
rather than allowing wp2_sfc to be clipped all the way down to w_tol_sqd.

Because I added clipping on thlp2_sfc and rtp2_sfc, this commit is BIT_CHANGING, but only for the most sensitive cases.

For #832.
The file was modified surface_varnce_module.F90 (diff)
Commit 523ca23a88a67377b230620f84357d520aa6d904 by Vince Larson
I added clipping on up2 and vp2 that prevents these fields from exceeding 1000 m^2/s^2.
The same sort of clipping already exists for wp2.
With the splatting terms active, I found a configuration of twp_ice where the clipping on up2 and vp2 is useful.

However, in the standard configuration, none of the priority cases changes answers because none have up2 and vp2 > 1000.

For #832.
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 64a6fbc07bc7798dd63cd7fcad47f30a660f315b by Vince Larson
This commit turns on splatting of thermals (i.e., C_wp2_splat is nonzero).  Hence it is BIT_CHANGING.

To prevent noise in the vertical profiles, the splatting terms needed to be clipped.
Unfortunately, this will introduce some undesired dependence on time step.
At some point, we may wish to treat the splatting terms in a semi-implicit way.

To make the splatting terms more effective, the return-to-isotropy coefficient (C4)
has been reduced.  This puts it more in accord with standard values, and it
allows CLUBB to be more anisotropic.  Other coefficients were also retuned.

Along the way, I broke up some comment lines to avoid a warning about line length.
Also, I commented out the check on the presence of the Id tag.  That tag is no longer
useful because CLUBB has moved from svn to git.

For #832.
The file was modified lapack_wrap.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
Commit f61d9953e79775fa70f6083e07c962aefc645942 by Gunther Huebler
Added functionality to allow cloud_frac to be better estimated at extreme values which produce either 0 or 1 when computed. The amount of estimation is controlled by the variable max_num_stdevs, indicating the number of standard deviations away from the mean of a pdf a value can be before being considered statistically insignificant. This speeds up the code but reducing the calculations required in calc_cloud_frac_component and calc_xprcp_component, and avoiding underflow errors when computing exponentials with too small of a number. By comparing plots and mathematical evaluation (erf(5)~=0), it seems the best value for max_num_stdevs is 5. This increases computational efficiency by about 10% #834
The file was modified constants_clubb.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit e6ef3b8923f3641f496708629e6fd0239b3ea160 by noreply
Update advance_clubb_core_module.F90

I neatened and/or elaborated comments on the inputs and outputs of advance_clubb_core.
The file was modified advance_clubb_core_module.F90 (diff)
Commit acea662cf9f65cd63a109d7ee1469bcfc2174bc8 by noreply
Update latin_hypercube_driver_module.F90

I neatened and elaborated some code comments for the SILHS driver.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit f28cdc7db7c73dde06d0de691ed5dc78302a2e32 by Vince Larson
I clipped sigma_sqd_w to prevent interpolated values of it
from going negative. This avoids crashes in the
lba, twp_ice, and mc3e cases when l_call_pdf_closure_twice = .true.
Small negative values in sigma_sqd_w were causing small negative values
of varnce_w_1 and varnce_w_2 at the lowest grid level,
which then caused floating point exceptions in the pdf closure.
l_call_pdf_closure_twice = .true. is not the default setting,
but it is the setting in CAM6.   Hopefully this code change
will help allow the new version of CLUBB to be backwards-compatible
with the CAM6 version.

A few numbers in the output did change in the last digit or two
in the arm_97 case.  Maybe it was only sigma_sqd_w itself
that was changing, and that value wasn't used anywhere?
Anyway, technically, this commit is BIT_CHANGING.

For issue larson-group/cam#116.
The file was modified advance_clubb_core_module.F90 (diff)
Commit fe9d81553653c1039c48f6732dfb3ccfae53cb80 by Vince Larson
I added a new option to diagnose the dissipation time scale, tau, first
and then use it to diagnose the mixing length, Lscale, as Lscale = tau * tke.
The purpose is twofold: 1) reduce computational expense of computing Lscale;
and 2) increase tau near the ocean surface, in the hopes of improving
hurricane surface winds.

The option is currently turned off with the flag l_diag_Lscale_from_tau,
and so the results are an exact match to those produced by the prior code.

For #842.
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 6fbc9a4abf9ae6aba74d7c54e40c6a6b03031ea7 by Vince Larson
I found a new way to diagnose upthvp.  Instead of using a bound on correlations, it relies
on the formula upthvp = upthlp + 200 K uprtp + 2000 K uprcp.
upthlp and uprtp are then diagnosed based on a budget equation from Andre et al.
The new formula produces more upthvp aloft, where upwp is small.
The budget of upwp for the BOMEX case looks plausible.

I also discovered that when upthvp is better diagnosed, then the upwp_pr4 term is unnecessary.
So I zeroed it out for now.

For #841.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 970984d58351c5682e819dc42b48d4824bacc67b by mcfadd34
introducing error into clubb core for testing larson-group/sys_admin#533
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit ab452aecedc7073f07314bdc6b068de879727ae6 by mcfadd34
reverting error that was introduced larson-group/sys_admin#533
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit fd04a5135f41fc7ba52f9012aa2864357fb965f0 by bmg2
I am briefly changing some of the flag and parameter settings in CLUBB
to match what is currently used by CAM.  This change will be undone
with the next trunk (master) commit.
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 9a2cfb9ac48201c27fe347841ab5cb5f38551c21 by bmg2
Revert "I am briefly changing some of the flag and parameter settings in CLUBB"

This reverts commit adc5247053fe1bb22a8e73f747a39ed9d467d3fd.
The file was modified parameters_tunable.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit cfe0bae3a10cefb8aff3149aafe47cf8d2fb8859 by bmg2
I am adding code that clips the sample point value of chi under
extreme circumstances.

Clipping was previously introduced
(https://github.com/larson-group/clubb/commit/b0932de921c387c2145f487465e0bafdee320269)
to the code that calculates CLUBB's cloud fraction for each PDF component,
setting it to 0 or 1 under extreme conditions.  Rarely, sample point values
of chi can be drawn that violate the cloudiness condition (a positive sample
point value of chi when cloud fraction is clipped to 0, or a negative sample
point value of chi when cloud fraction is clipped to 1).  This commit
introduces new code that clips the value of the sample point of chi when
it violates the cloudiness condition.

This clipping does not come into play at all during current standalone runs
of CLUBB, so the results in GrADS output files from this revision are an
exact match to the results in GrADS output files from the previous revision
for all cases.  However, this clipping does come into play during
CAM-CLUBB-SILHS global runs.

Larson Group Issue: https://github.com/larson-group/cam/issues/116.
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit e513c22587f4e5b73e0863b80d405b6077bb0ae5 by bmg2
I have updated the SILHS code to omit the assert_consistent_cf_component
check under the special conditions that both | mu_chi_i | <= eps and
sigma_chi_i <= chi_tol.  These are the conditions that PDF closure now
uses when calculating cloud_frac_i to say that there's a constant PDF
of chi at the saturation point.  The code in PDF closure sets
cloud_frac_i to 0 in this situation.  However, the SILHS check may
fail in this special case.

This revision allows CAM-CLUBB-SILHS to run.  It doesn't affect the
current version of standalone CLUBB.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 8b4636b0b9ba044518efadf97f44604fb52658e4 by bmg2
I added a couple of comments reminding users to change the conditions in
the SILHS check if the conditions change in the calculation of cloud
fraction in PDF closure.
The file was modified pdf_closure_module.F90 (diff)
Commit 6b1fd405befd43397db59368b76d282ededfbe4c by bmg2
I added a couple of comments reminding users to change the conditions in
the SILHS check if the conditions change in the calculation of cloud
fraction in PDF closure.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 37c8f1b5b614f57901e66d7ee8e6e07d09c57c54 by bmg2
Revert "Revert "I am briefly changing some of the flag and parameter settings in CLUBB""

This reverts commit 7e8b4f7f20f25bccdbcaca0fccb970d793518133.

I am briefly re-setting the CAM-specific flag and parameter settings for CLUBB
for use in CAM-CLUBB.  I am going to make (another) tag of this revision, and
then again revert this revision.
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 66cc9401b0f477b7d9875c4354ccb97478883487 by bmg2
Revert "Revert "Revert "I am briefly changing some of the flag and parameter settings in CLUBB"""

This reverts commit a56d278f12df2c85116c41459bd54c254ee94b62.

I again reverting back from the flag and parameter settings used in CAM-CLUBB
and returning the CLUBB master to its normal settings.
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 4c7b25bb90d21e435fd03474d328228fc11d097b by Vince Larson
I committed a subroutine, diagnose_upxp, that calculates
upthlp, uprtp, vpthlp, vprtp using a simple diagnostic version
of Eqn. 7 of Andre et al. (1978).  Ultimately, CLUBB will use
this in order to compute the buoyancy terms in the upwp and vpwp budgets.

The results match the prior repo results bit for bit
if, in the prior code, I pull tau_C6_zm inside
the parentheses in the prior calculation of upthlp and uprtp:
upthvp = - 0.3_core_rknd * tau_C6_zm *    (    upwp * ddzt( thlm ) + wpthlp * ddzt( um ) &
         + 200.0_core_rknd * ( upwp * ddzt( rtm )  +  wprtp * ddzt( um ) ) ) &
This is needed to avoid a change in the order of operations, which changes
the results in IEEE arithmetic.  I also need to set C6=1 and C7=0 in
subroutine diagnose_upxp.

However, what I am committing includes C6 and C7 in subroutine diagnose_upxp.
It doesn't change the results much, but nevertheless the results are BIT_CHANGING.
In addition, four new stats are added to all_stats.in and standard_stats.in:
upthlp, uprtp, vpthlp, and vprtp.

For #841.
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 6edf0adb68cffee7a4ee15a75bdbedac20d2d42e by Gunther Huebler
Improved the computational efficiency of pdf_closure. This speed the code up by about 6% overall. Because it changed the order of some calculations it is BIT_CHANGING but does not change plots. clubb issue #834
The file was modified pdf_closure_module.F90 (diff)
Commit ec1fb66c9630d79bc710eeca12df3716ba7b534d by bmg2
I am modifying one part of setup_clubb_pdf_params.F90 to be taken out of a large
outer "do" loop over all vertical level, and instead, promote single-level
variable declarations to arrays and use where...elsewhere statements rather than
else...elseif statments.  The part of setup_clubb_pdf_params.F90 that is being
modified is the part of the code that calculates the PDF component (in-precip)
means and (in-precip) standard deviations of hydrometeor species for the
hydrometeor portion of the PDF.  This is being done in an effort to speed up
CLUBB.  This does not pertain to CLUBB core, but it does pertain to analytic
KK or SILHS cases.

When the gfortan optimization level is decreased to -O0 or -O1, the results in
GrADS output files from this revision are an exact match to the results in GrADS
output files from the previous revision for all cases.  When the gfortran
optimization level is left at the current default of -O2, the results remain an
exact match for many cases, including some that use upscaled KK or SILHS, but
results change for ARM 97, DYCOMS-II RF02 DO, ASTEX A209, TWP-ICE, and MC3E,
which tecnically makes this revision BIT_CHANGING.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit b19476be5eb8e937f24c39f06a37f3981da45097 by bmg2
I am updating the code within setup_clubb_pdf_parameters.F90 in order to take
more code out of the outer loop over all vertical levels and internally promote
scalars to vectors.  This is designed to speed up the code for analytic KK or
SILHS runs.

The results in GrADS output files from this revision is an exact match to the
results in GrADS output files from the previous revision for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified Nc_Ncn_eqns.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
Commit ae02afd6021e9f3e38b95c203221042af7d87752 by Vince Larson
To diagnose uprcp using CLUBB's PDF machinery,
I fed some variables related to horizontal wind
through some argument lists.  The code change is incomplete at this point.
The results do not change because the variables are declared locally in
subroutine pdf_closure, and nothing is done with the output, uprcp.
The wind variables are not even initialized at this point.  Nonetheless,
the results of the arm case are bit-for-bit identical with the prior results.
The units tests still pass.

For #841.
The file was modified pdf_closure_module.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
Commit 6873c26df22486e27273dfbdf4f80a09e605082a by Vince Larson
Continuing with diagnosis of uprcp using CLUBB's PDF,
I fed the arguments through subroutine pdf_closure.
I have yet to feed them through pdf_closure_driver.
For the arm case, the results are bit-for-bit identical.

For #841.
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit d2812cc427f191ac3810fa070100ed0daea03ce9 by Vince Larson
More code to diagnose uprcp using CLUBB's PDF.
I fed the relevant arguments through pdf_closure_driver
and advance_xm_wpxp.  The results are still bit-for-bit identical
because uprcp does not (yet) interact with the rest of the code.
I put some idiot-proofing in setup_clubb_core because
the arguments have not yet been fed through advance_clubb_core
and preserved from time step to time step.
The unit tests passed.

For #841.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 7e26b5bc89f6b289ee3b8037c7aee3fc748ff018 by Vince Larson
Correction for the last uprcp-related commit:
uprcp_zt is now interpolated to the zm levels
in the case in which the pdf closure is called
only once.  The answers are still bit-for-bit identical.

For #841.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 2e9ec3492f275db7e1673a66b31b2dc7e0a1e010 by bmg2
I am correcting the code so that the Nightly Uninitialized Variables Test
(Oracle Fortran) works correctly again.

I've noticed that FORTRAN's where statement doesn't always prevent a certain
part of a where ... elsewhere block from being entered in the same way that it
prevents a certain part of an if ... elseif block from being entered.  Code that
is not supposed to be entered under certain conditions gets entered and then
the mask is applied later, throwing away the results.  However, if the
intrusion causes a floating point exception for whatever reason, the run stops.

I remember overhearing talk between Gunther and Vince about the where statement
"guessing" wrong sometimes.  Is there a way to stop it from "guessing" wrong
or at least reduce the number of wrong "guesses"?
The file was modified pdf_utilities.F90 (diff)
The file was modified Nc_Ncn_eqns.F90 (diff)
Commit 559b1e46e16f3fc7c3c426ee68e34c6cc9ec7799 by bmg2
I am continuing to pull parts of setup_pdf_parameters outside of a large "do"
loop over all vertical levels and promote subroutines that are called from
setup_pdf_parameters to cover the whole array of vertical levels, rather than
just one level at a time.  This code change is simply for a statistical output
subroutine (pdf_param_hm_stats) within setup_pdf_parameters.  This all is in an
effort to speed up the code.

This revision outputs stats at thermodynamic level 1 (which is below the model
surface), whereas the subroutine wasn't previously called at level 1.  This
makes the results BIT_CHANGING, but only for the stats that are output at
level 1 of the zt output files.  The results in other GrADS output files (zm,
sfc, etc.) from this revision are an exact match to the results in the same
GrADS output files from the previous revision for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 495d473a8f734fbab6da71b24c0a6ca171aab6d7 by bmg2
I am pulling statistical output subroutine pdf_param_ln_hm_stats outside
of the large "do" loop in setup_pdf_parameters.  This is part of a larger
code speed-up effort.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit ab433cfbf941bd9b7042f3ca7037e46cfdd3f47d by Gunther Huebler
Changing the range of the correlation values determined in calc_comp_corrs_binormal from [ -1.0, 1.0 ] to [ -0.99, 0.99 ] (based on value of max_mag_correlation = .99). This is the subroutine that calculates corr_rt_thl_x and should fix the issue with the WRF WPS Katrina bitten test as discussed in the commets of commit ad0ee5b9b3c253329df1208560b46d1dc4fca1c2. I suspect that it will fix the WRF-CLUBB-SILHS Restart Test as well, but I am basing that mostly off hope.
The file was modified pdf_utilities.F90 (diff)
Commit 460f0559e1c307e6e01794b66d6afc26284eef71 by mcfadd34
commenting out threadprivate command to test openmp bitten test larson-group/sys_admin#566
The file was modified stats_variables.F90 (diff)
Commit 5659e7c24d5ebc1c52e9d4868aede6f4b8d10623 by mcfadd34
uncommenting threadprivate larson-group/sys_admin#566
The file was modified stats_variables.F90 (diff)
Commit 2820b9199e5e5340b41a0331328f091283cc0931 by bmg2
I have changed the structure of setup_pdf_parameters so that the subroutine that
packs up the hydrometeor PDF parameters, subroutine pack_hydromet_pdf_params,
is called from outside the loop over all vertical levels.  Within
pack_hydromet_pdf_params, variables have been promoted to arrays over all
vertical levels.  This leaves the reamining outer loops over all vertical levels
to include only a few subroutines (diagnosing correlations and the Cholesky
stuff).

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 79a4333484ac252ffe654daacb9a46593099c6a2 by Gunther Huebler
Returned max check to the calculation of rcm. This should fix the PGI Compiler Nightly Test and could be BIT_CHANGING.
The file was modified pdf_closure_module.F90 (diff)
Commit 49feb7636991743ae49e11deacc358da1afff9ee by Vince Larson
I am turning on the new calculation of uprcp that uses CLUBB's PDF.
Also, I am re-introducing the pressure term upwp_pr4,
because it is a useful preconditioner for producing an upgradient flux in upwp.
This commit is BIT_CHANGING both because the answers change and because
new outputs (uprcp, upthvp, ...) are written to disk.
The gabls3_night case is degraded, but the other cases look comparable
or better than before.

For #841.
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 4cea0a0f193d06e73a5877c561e63deb709cb782 by bmg2
I modified the code in setup_clubb_pdf_params.F90 to use only one call to
function pdf2hydromet_idx or function hydromet2pdf_idx within a loop, instead of
multiple calls within array indices for different variables.  This cuts down on
excessive calls and also makes the code a little more nicely readable.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 26acd1f23eba8ae32b195168c32a075c2baa1b46 by bmg2
I am updating CLUBB_core and SILHS in the clubb_E3SM_silhs branch to
match the clubb and silhs directories in the bmg929/atm/clubb_silhs_v2
branch of E3SM.  This commit can be considered a list of modifications
that were done to the CLUBB code in the clubb_silhs branch of E3SM.

It should be noted that the version of CLUBB used in the clubb-silhs
branches of E3SM is r8220.

This commit provides a base to marge up CLUBB and SILHS to more
current versions for use in E3SM CLUBB-SILHS.
The file was modified parameters_tunable.F90 (diff)
Commit cd399238c1e54c874b145501fcb815d6e4a2b56d by bmg2
I am setting model flags and tunable parameters in the clubb_E3SM_silhs branch
in a backwards-compatible fashion to r8220, which was the version of CLUBB and
SILHS that was previously used in E3SM-CLUBB-SILHS.
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit f8c3b05eee249e8acb82087135d10a3349180c72 by bmg2
I temporarily set l_clip_extreme_chi_sample_pts back to false in the
clubb_E3SM_silhs branch.  This is being done to test for backwards compatibility
while upgrading E3SM-CLUBB-SILHS.  The goal is to produce a version of SILHS
that is similar in all ways to the version of SILHS that was found in r8220.

Once the merger is complete, this flag will likely be reset back to true.
The file was modified transform_to_pdf_module.F90 (diff)
Commit d0fdb430ac89f446a02c3fc2a04cfeb83bf86103 by bmg2
Revert "I temporarily set l_clip_extreme_chi_sample_pts back to false in the"

I am setting l_clip_extreme_chi_sample_pts back to true for use in
E3SM-CLUBB-SILHS.

This reverts commit 677c6f9d54ef542325ca3308980c6c22cac6207a.
The file was modified transform_to_pdf_module.F90 (diff)
Commit 2949da772ae9ce183ecb9017dbd7d5bd04454576 by bmg2
The value of nz is passed into SILHS, so we don't need to use gr%nz.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 719a2e336400711fd23caf13f000f9b76bc1cbe6 by bmg2
I improved the error messages when LU decomp. fails within
advance_xm_wpxp_module.F90.
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
Commit 9bdd16bbeac12acbb5cd1abacd3651e9fb9864eb by bmg2
Improved error message prints in advance_xm_wpxp.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 9ebad48929103e747598b00f2a5e1ca1916d7a2e by bmg2
I added improved LHS and RHS print statements when a LU decomp. error occurs
in advance_wp2_wp3.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit e89d13da7946db4a7751cacfb92a92f419f268d4 by bmg2
I added params_list to the list of variables that are accessible through
clubb_api_module.
The file was modified clubb_api_module.F90 (diff)
Commit 2dcd21b8d1335f13ae48c5e9202048cbdabcd7a3 by bmg2
I am making the first step for updating the code that calculates sigma_sqd_w.
I have included upwp^2/(up2*wp2) and vpwp^2/(vp2*wp2) in the calculation of
the maximum squared correlation for the limit of sigma_sqd_w when the
l_predict_upwp_vpwp flag is enabled.

When the l_predict_upwp_vpwp flag is turned off, the results in GrADS output
files from this revision are an exact match to the results in GrADS output files
from the previous revision for all cases.

When the l_predict_upwp_vpwp flag in enabled (which it is by default), this
revision is BIT_CHANGING.  However, only a couple of cases show visible changes
on the plots.

Git Issue Reference: #852.
The file was modified sigma_sqd_w_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 20c0f6ab99737edaa2ba6f320ba059ab7fc3783f by Vince Larson
I added a log-law height dependence to the code that diagnoses
tau directly, rather than diagnosing the mixing length, Lscale
(l_diag_Lscale_from_tau = .true.).
However, that option is set to .false. by default, and hence
the nightly test results should be unchanged.

For #842.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5c39d243769b471253986d92bdfb11d92ae08d5b by bmg2
I added fill_holes_hydromet_api to clubb_api_module.F90.
The file was modified clubb_api_module.F90 (diff)
Commit 1dd81aca877e9ea8bfa88c91c46fcf5e61185285 by Vince Larson
I added a new python script, check_for_missing_threadprivate.py,
which checks whether a module variable
in CLUBB or SILHS has been declared but not designated as a threadprivate.
In such a case, the variables are not thread safe and different threads
may store a variable in the same memory location, causing errors.
In particular, such an omission may cause CAM-CLUBB-SILHS to produce
different results when different numbers of openmp threads are selected.

I then added some threadprivate statements in order to make the test pass.

For larson-group/cam#121.
The file was modified model_flags.F90 (diff)
The file was modified gmres_cache.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified mt95.f90 (diff)
Commit 72bfbae28a4d94532738cb031a1a5620caa78e3e by Gunther Huebler
Modifying clubb's pdf_parameter type. It's now a type containing arrays, whereas before it was a type containing scalars, but used everywhere as an array of these types. This new way allows the elements of pdf_parameter to exist in contiguous memory sections, which improves computational efficiency when accessing a given parameter over all vertical levels. clubb issue #834
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified variables_prognostic_module.F90 (diff)
The file was modified variables_diagnostic_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 43dd087ae5586695e9b7d92a7299cbee7c04042c by Gunther Huebler
Modifying clubb's pdf_parameter type. It's now a type containing arrays, whereas before it was a type containing scalars, but used everywhere as an array of these types. This new way allows the elements of pdf_parameter to exist in contiguous memory sections, which improves computational efficiency when accessing a given parameter over all vertical levels. clubb issue #834
The file was modified silhs_api_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified lh_microphys_var_covar_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 2f805be18b00c5bb0cb7a0fd6133372c91513b96 by Gunther Huebler
Fixed dycoms restart run failure. The pdf_parameter variables are accessed via a use statement in the section of code where the restart run attempts to set their values, but since they are allocatable they do not retain their allocated status once out of scope. Adding the save attribute to pdf_params and pdf_params_zm fixes the problem. These pdf_parameter variables used in clubb standalone are not used by host models, yet they are still allocated during host model runs, something that has been noted before and will be changed. clubb issue #834
The file was modified variables_diagnostic_module.F90 (diff)
The file was modified variables_prognostic_module.F90 (diff)
Commit fae81b119a174f67903ecdf4a576eb7b83f3a911 by noreply
Added temp test file

Adding a test file to verify wrf updates are working
The file was addedFileForTestingUpdateScript.txt
Commit cb11bc29e16abcdf34202a84e8c2ea5d7e3afbb1 by noreply
Remove test file

The wrf update is working now, no need to keep this file around.
The file was removedFileForTestingUpdateScript.txt
Commit 300de16a3e09fca0d7e720a1e3755832aff3098b by Gunther Huebler
Adding conditional statement around compute_Cx_Fnc_Richardson, see clubb issue #855. This change is bit identical.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 25e23c9a39541b8b5b4390afe03350b95bb9e539 by Gunther Huebler
Optimizing procedures within Skx_module. The reduction in runtime is greatly dependent on system and compiler option. See clubb issue #855 and comment by Gunther on 7-1-19 for explanation. This is BIT_CHANGING but the plots only differ in the sensitive cases.
The file was modified Skx_module.F90 (diff)
Commit 7fd2d937257edeb8764cce7e742ab68090044175 by guozhun
ticket #842 we added 4 tunable parameters for tau, they are Coefficient of inverse tau term contributed by background constant value, Coefficient of inverse tau term contributed by surface log law, Coefficient of inverse tau term contributed by vertical wind shear and Coefficient of inverse tau term contributed by Brunt Vaisala frequency
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 1f2facc146cb5190975cca5a6387fb6e79e72d25 by Gunther Huebler
Modifying ADG1_ADG2_responder_params for efficiency reasons. It changes the way varnce_x_(1/2) is set when wp2 > w_tol_sqd and xp2 <= x_tol. Previously in that case it set the variances to 0, but now it sets them to xp2 since xp2 ~= 0 in that case anyway. This allows the where statement to have only two cases, and less cases is more efficient. This is BIT_CHANGING, but only affect the sensitive cases and passes the G unit tests. larson-group/clubb#855
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
Commit 7036e850e9581d27aa4e2915a2e8dc7da7c77d63 by Gunther Huebler
Replacing the local variables used in pdf_closure_module with references to the variables in pdf_params which they are meant to be stored in. This removes the need to copy the local variables into the pdf_params structure at the end, saving about 3% runtime. This is not bit changing, but does make the code a little uglier. larson-group/clubb#855
The file was modified pdf_closure_module.F90 (diff)
Commit a6744484daca24377722de22d516fe1931d6ac67 by Gunther Huebler
Making procedure calls consistent with procedure definitions. Required updating after previous pdf_parameter related commit. larson-group/clubb#855
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified new_tsdadg_pdf.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
The file was modified LY93_pdf.F90 (diff)
Commit e6b21ea2242dbb344bf34cebb0bbd9a3e7ea7731 by bmg2
I have added a new file, calc_pressure.F90, which contains code for initializing
and updating the vertical profile of pressure and exner.
The file was addedcalc_pressure.F90
Commit 402505b5c37287ccd4d00e615b00b20c0c1becae by bmg2
I updated CLUBB so that pressure is updated after mean fields have been
advanced every timestep.  The results are BIT_CHANGING.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified calc_pressure.F90 (diff)
Commit db9f32467f1f0d7cd7a8f25054508fa61e383758 by Gunther Huebler
Removing gmres code. The files gmres_wrap.F90, gmres_cache.F90, and csr_matrix_module.F90 have been removed, and any sections of code which refer to or are needed only for gmres have been removed as well. larson-group/clubb#855
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 427b92e4f01613d6f91ab932b002d7524a4a69fe by Gunther Huebler
Forgot to run previous commit with --all, so the gmres files were not removed. larson-group/clubb#855
The file was removedcsr_matrix_module.F90
The file was removedgmres_wrap.F90
The file was removedgmres_cache.F90
Commit 2d454818095f731d3864a0438459c86fc6bc48e4 by guozhun
issue #842
We added two new tunuable parameters: C_invrs_tau_N2_xp2 and C_invrs_tau_N2_wp2. e.g. invrs_tau_wp2_zm = invrs_tau_zm_simp + C_invrs_tau_N2_wp2 * sqrt( max( zero_threshold,zt2zm( zm2zt( brunt_vaisala_freq_sqd ) ) - 1e-4_core_rknd) ). Correspondingly, invrs_tau_wp2_zm and invrs_tau_xp2_zm are used in advance_wp2_wp3 and advance_xp2_xpyp respectively.
Also, tau_wp2_zm and tau_xp2_zm are added in output list.
The file was modified stats_variables.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit ea09dc1146deb9249293bae86a80288eb8cf98ce by guozhun
We added two new tunuable parameters: C_invrs_tau_N2_xp2 and C_invrs_tau_N2_wp2. e.g. invrs_tau_wp2_zm = invrs_tau_zm_simp + C_invrs_tau_N2_wp2 * sqrt( max( zero_threshold,zt2zm( zm2zt( brunt_vaisala_freq_sqd ) ) - 1e-4_core_rknd) ). Correspondingly, invrs_tau_wp2_zm and invrs_tau_xp2_zm are used in advance_wp2_wp3 and advance_xp2_xpyp respectively.
Also, tau_wp2_zm and tau_xp2_zm are added in output list.
issue #842
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit e3ffdf57d28b9601a073195721f51f94b85ef2cd by guozhun
We added two new tunuable parameters: C_invrs_tau_N2_xp2 and C_invrs_tau_N2_wp2. e.g. invrs_tau_wp2_zm = invrs_tau_zm_simp + C_invrs_tau_N2_wp2 * sqrt( max( zero_threshold,zt2zm( zm2zt( brunt_vaisala_freq_sqd ) ) - 1e-4_core_rknd) ). Correspondingly, invrs_tau_wp2_zm and invrs_tau_xp2_zm are used in advance_wp2_wp3 and advance_xp2_xpyp respectively. 1. Some typos are corrected. 2. New tunuable parameters are added in files named errer_$casename.in (issue #842)
The file was modified stats_variables.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5e7fdb331acf7bb7b479c37b1195df9b3acefc9f by noreply
Update advance_clubb_core_module.F90

Correct my accidental deletion
The file was modified advance_clubb_core_module.F90 (diff)
Commit b3c3dc624ed09e4b8021ff3fd7596a9603e6b291 by guozhun
We put Lscale's calculation into mixing_length.F90 (subroutine calc_Lscale_directly)
The file was modified mixing_length.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 185f2febb78c667d4bd6d22da4400587abf873d9 by Gunther Huebler
Efficiency improvements to calc_turb_adv_range, more specifically the parts which split w into upward and downward components. This adds a case to zero out upward and downward components for values of w that are too small to matter, and now utilizes mkl_vml math functions to improve vectorization. These mkl_vml functions are only used when compiled with MKL, specified by adding -DMKL to compiler configuration files. This is BIT_CHANGING, plots only differ in the usual sensitive cases, and the budgets, G_unit_tests and time step tests all pass. larson-group/clubb#855
The file was modified mono_flux_limiter.F90 (diff)
Commit 4e11b0aaa1aac032723d34da281c8604363d37d4 by Gunther Huebler
This should fix the uninitialized variables test. mean_vert_vel_up_down was using the upper and lower grid levels, but calc_mean_w_up_down_component was not setting them. These levels aren't actually used by the algorithm in calc_turb_adv_range, but I made calc_mean_w_up_down_component set them to zero anyway since it seems like the simplest and safest solution. larson-group/clubb#855
The file was modified mono_flux_limiter.F90 (diff)
Commit 11e94b26a81887e767bbe3088dcf879951147d8d by guozhun
An additional damping is added to the invrs_tau term in the C8 equation. ticket #842
        invrs_tau_wp3_zm = invrs_tau_wp2_zm &
              + C_invrs_tau_N2_clear_wp3 * sqrt( max( zero_threshold, &
                zt2zm( zm2zt( brunt_vaisala_freq_sqd ) ) ) ) &
              * min(one, max(zero_threshold, one &
              - ( (ice_supersat_frac_zm - 0.005_core_rknd )/(0.01- 0.005_core_rknd) ) ) )

C_invrs_tau_N2_clear_wp3 is tunable with its defalut value of 0.
The file was modified parameters_tunable.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 26d56dd9fc34a7a2c2a75531877ce80e5d0dfdd4 by Gunther Huebler
Adding comment because commit 561fa037e7c3c326bc4bd71b6fc486e5d2a46065 was BIT_CHANGING, but missing the commit message specifying that. It was bit changing because the upper and lower levels of mean_w_up and mean_w_down are being output to stats as of commit 0b3ec0d5fc4b89b4a6f34964af3cfda8cb89b9f7, so changing the upper and lower level values changed the stats output, even though those values are not used in any calculations.
The file was modified mono_flux_limiter.F90 (diff)
Commit 2b595277fc89333b4662fbe5f8ad42cf85f609e7 by guozhun
We use zt2zm(ice_supersat_frac) replace ice_supersat_frac_zm in the additional damping of C8.
Tau_wp3_zm is added in output list.
Ticket #842
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 80905eb2df7a944184abc1c502abe3ce7555da7e by Gunther Huebler
Changing ADG1_ADG2_responder_params to use a do loop with ifs instead of a where statement. This is about 1.5% faster and is bit identical. larson-group/clubb#855
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
Commit 7d01c3630acdd2ca14d9201b66aff0d81502d05f by Gunther Huebler
Pulling the calculation of p_in_Pa(_zm) out of the vertical loop in update_pressure, and precalculates one/kappa. This improved vectorization capabilities of the calculation of exponents, which is slow so that's important. Also added the option to use MKL_VML functions if -DMKL is specified, which is slightly more efficient. This saves about 1.5-2.5% and is bit identical if not using MKL. larson-group/clubb#855
The file was modified calc_pressure.F90 (diff)
Commit a60a7deb0a1df72dfa3601a043b4ddb001daab2c by Gunther Huebler
Renaming width_factor to width_factor_1 to indicate that it is intended for use with the first pdf component, (two-width_factor_1) is the value for the second component. larson-group/clubb#855
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
Commit 915547ce2354ea058ecb18b93ef84775bc2e17eb by Gunther Huebler
Efficiency improvements to transform_pdf_chi_eta_component. Moving the where statement to if statement inside loop to avoid sqrt operations. Reducing number of divide operations, and putting some code in a loop which reduces cache misses. This is BIT_CHANGING, but not answer changing, plots only differ slightly in the most sensitive cases. larson-group/clubb#855.
The file was modified pdf_closure_module.F90 (diff)
Commit 1f578b33392b16cfa7367aa6a114c1f7352d984e by Gunther Huebler
Modifying calc_cloud_frac_component to optionally use mkl_vml functions. Added a different version of the procedure to handle the liquid cloud fraction specifically, so the ice_supersat_frac could remain as is. The structure of the procedure when using the MKL functions is based on the changes to calc_turb_adv_range in commit 0b3ec0d5fc4b89b4a6f34964af3cfda8cb89b9f7, since I've already tested that well and it seems to make sense to keep the code similar if it does similar things. This reduces runtime by about 2% when using MKL functions and about 0.5% otherwise. The procedures also use precalculated inverses where possible, so the results are BIT_CHANGING, but not answer changing. larson-group/clubb#855
The file was modified pdf_closure_module.F90 (diff)
Commit 4504e3baf5bf7fec8011d83e2d8656712d994607 by Gunther Huebler
Refactoring the lhs and rhs setup procedures for xm_wpxp. There are a number of lhs terms that are very general, and used by all the lhs matricies. The code now calculates these terms in a new procedure calc_xm_wpxp_lhs_terms and passes those terms into the lhs setup. The same sort of thing is done with the first pressure terms and turbulent advection terms, those terms are shared between pairs of lhs/rhs calls. This is BIT_CHANGING, but is not answer changing. See comment on Jul 3 on ticket larson-group/clubb#855
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit eb88df13288af2a9454f5d34f20fdda75b3ac19e by noreply
Update advance_clubb_core_module.F90
The file was modified advance_clubb_core_module.F90 (diff)
Commit 62f72f15b94edb88e01a1bd031faa32e321edbf1 by noreply
Update advance_clubb_core_module.F90
The file was modified advance_clubb_core_module.F90 (diff)
Commit ae9c7332c1bbdd55ff49f2a4974fcdb7ce709f06 by Vince Larson
I switched on direct diagnosis of tau rather than Lscale.
That is, I set l_diag_Lscale_from_tau = .true.
Thus, this commit is BIT_CHANGING.

Because diagnosing tau changes answers, I retuned CLUBB,
taking the opportunity to add some features seem better justified.
For instance, we now damp wp2 using tke (l_damp_wp2_using_em = .true.)
because doing so is more standard in turbulence modeling and because
it may help reduce damping on Sc clouds.
C7 is allowed to become larger in statically stable layers
(l_use_C7_Richardson = .true.)
because that is what the LES of Heinze show, and because doing so
might help limit gravity waves above cloud.

Many parameters have been retuned.  I set C2rtthl = C2rt = C2thl
because it seems more justifiable and because doing so
produces the correct sign of wprtp_bp in Cu layers.
Also, the "b" parameters have been set equal to the non-"b"
parameters in order to reduce the number of tunable parameters.
The "b" parameters were based on skewness, which is hard to control and tune.
Instead, with this revised version, the tuning parameters are based mostly
on thlm, which is more robust.  I set C15=0 because this term
is complex and hard to justify.  c_K8 was increased because
it smooths the solutions without dominating the wp3 budget.
beta was reduced in order to make wp2xp larger and wpxp2 smaller.

I included a bug fix to Cx_fnc_Richardson, which prevents
C7 and C11 from exceeding the maximum set by Cx_max.

The brunt vaisala frequency is reduced for slightly stable layers
in order to allow Sc layers to remain well mixed.

Further tuning is needed to reduce oscillations and temporal noise.
Also, the momentum fields --- upwp, vpwp, up2, and vp2 ---
need to be retuned.  Otherwise, the results are comparable to the prior
default.

We're expecting a speed-up of 10% to 15% because computing CLUBB's
mixing length directly is so costly.

For #842.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
Commit a3f5913c59b8c599216b06beb6650b779783f0d1 by bmg2
I updated the pressure initialization for cases that use sounding that is given
in terms of pressure coordinates so that the initial profile of pressure is
consistent with the pressure update code.  This code is BIT_CHANGING for cases
that use pressure coordinates in their soundings (MC3E, TWP-ICE, and the CGILS
cases).
The file was modified calc_pressure.F90 (diff)
Commit e573fabcb13ba98b412ce4ce75ade6b6f2ec5063 by bmg2
I changed the function calculate_thvm from a pre-defined vector of size nz to
an elemental function.  The results in GrADS output files from this revision are
an exact match to the result in GrADS output files from the previous revision
for all cases.

A quick test of running BOMEX 5 times both before and after the changes showed
a 1.16% speed increase for the new version with the elemental function.
The file was modified calc_pressure.F90 (diff)
Commit 51a86a3f221fffeef2d437cbe76a1445816cc3b2 by bmg2
I updated the calculation of thvm in advance_clubb_core to use the
calculate_thvm function.  The results in GrADS output files from this revision
are an exact match to the results in GrADS output files from the previous
revision for all cases.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 9a3e6d37f6350cfbe66595183c646941b367559e by Gunther Huebler
Adding SAVE attribute to some stats variables, as it was causing compiler errors when using the newest version of the gfortran compiler. Also commenting out Lapack library dependency from gfortran config file, this required additional Lapack source files be added. Now, no Lapack library files are required to compile CLUBB, whereas before, the source was being compiled, but the missing dependencies we're being added from libraries. This is BIT_CHANGING in all cases when using the gfortran compiler, but only in some cases when using the ifort compiler. Some plots, such as rico, are noticably different when compiled with gfortran, but are bit identical when compiled with ifort. The intel implementation of Lapack used by the ifort compiler must be more similar to the source Lapack than was the Lapack library that was being used for the gfortran compiler.
The file was modified stats_variables.F90 (diff)
Commit 973528097e0ce042fbd3820dc7fef4bab9d930f5 by Gunther Huebler
Adding a subroutine in advance_xp2_xpyp to calculate the turbulent advection terms and modying the rhs and lhs setup procedures to accept these turbulent advection terms as inputs. Before, the turbulent advection terms were calcualted within the rhs and lhs setup procedures, but this resulted in expensive redundant calculations. larson-group/clubb#855
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 8e208d5eb9ed5621198bc25ed7ce599b6fd3b32c by Gunther Huebler
Changing where statement that was causing floating point errors to a do with if's. This should allow code compiled with the newest version of gfortran to run to completion for microphysics enabled cases. This is BIT_CHANING in microphysics cases, but the values of the output arrays of the only changed subroutine only differ starting around roughly the 13th decimal place. larson-group/clubb#859 larson-group/sys_admin#626
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 41a78a1c734861469e5bcd2469a6f150563b56e6 by bmg2
I am committing a test where I changed subroutine ADG1_w_closure
from using nested where statements to using if statements within
the context of an elemental subroutine.  My notes are below:

===============================================================================

Here's an intriguing idea to try in place of nested "where" statements.

The article at:

https://data-science-austria.at/2018/12/24/the-need-for-speed-part-2-c-vs-fortran-vs-c/

says that using FORTRAN ELEMENTAL subroutines and functions is just as fast as
using FORTRAN serial loops with -O3 optimization (which is what we've been doing
for optimization).

The use of elemental subprograms contains many advantages:

1) The subprogram becomes much more versatile, because it can be used for
scalars as well as arrays of varying sizes and dimensions.

2) In our case, the changesets become easier to follow, as they are basically
a change from where statements to if ... then statements.  There are no
additional do loops and loop indices needed.  These additional statements and
indices can be confusing when comparing code differences and they clutter-up
(a.k.a. uglify) subprograms.

3) The article states that this method should be just as fast for vectors of
size 1000 and less.  For CLUBB, this would be the number of height levels,
which don't normally exceed 128.  I tested the old version (where statements)
and the new version for multiple runs of BOMEX and ARM, and the timings were
equivalent.

4) This avoids the problem of code entering the portion of a "where" statement
that it shouldn't be and crashing when floating point trapping is enabled.

The use of elemental subprograms has the following limitations:

1) All input and output variables must be of the same size and dimension.

In other words, whatever code is calling the elemental subroutine must feed
it, as well as take as output, either all scalar values, or all vectors of
size nz, or all 2-D arrays of size nx by ny, etc.

2) Elemental subprograms are also pure subprograms, so they have all the
restrictions of pure subprograms (no print statements, etc.).

================================================================================

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

Obligatory Larson Group GitHub Issue Reference: #859.
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
Commit 02066c0bf79abbe15aac432b24aee2a17798b09d by Gunther Huebler
Changing determination of threshold used to clip large values of rtp2. Before it was possible that this large value clipping introduced a value before tolerance, if rtm was too small. Causing addition problems and potentially crashes. This is BIT_CHANGING. larson-group/clubb#862
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit e7c7ca60b79b960a8d9b457dd866359044bb23ce by Gunther Huebler
Finally fixing line length error in pdf_closure
The file was modified pdf_closure_module.F90 (diff)
Commit 3cdd4d6ac73bb48c637368df6ac83377017914ac by Gunther Huebler
Adding more Lapack source files, and a new file to interface with Lapack routines in general. This allows us to call a general interface procedure that can handle single or double precision routines. This should fix the ifort bug we've been seeing, and should be a more robust way to handle this double/single precision situation in general. Works with all compilers, and in single or double precision, producing bit identical results. See larson-group/clubb#861
The file was modified matrix_operations.F90 (diff)
The file was addedlapack_interfaces.F90
The file was modified lapack_wrap.F90 (diff)
Commit 122f2c7d0fd6f3c3b78cf43e4d6eb5d0fcad0442 by Gunther Huebler
Adding more Lapack source files, and a new file to interface with Lapack routines in general. This allows us to call a general interface procedure that can handle single or double precision routines. This should fix the ifort bug we've been seeing, and should be a more robust way to handle this double/single precision situation in general. Works with all compilers, and in single or double precision, producing bit identical results. See larson-group/clubb#861
The file was modified transform_to_pdf_module.F90 (diff)
Commit feb1fe6742605fd9d6c20e12ee69991b52ed0b54 by Gunther Huebler
Adding blunt clipping to below ground level of xm variables, keeping their value at least tolerance. This prevents the crashing of mc3e caused by rtm being < 0. This is BIT_CHANGING, but only for mc3e, and the plots are very similar. Which must mean that mc3e is our only case where rtm becomes too small. larson-group/clubb#862
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit f165ae4ca0cd02d825c185eaba700b0c6c715fd9 by guozhun
This commit is BIT_CHANGING. It is mainly because 1) We changed the equation of tau_xp2_zm, producing a better agreement with LES. 2) Many parameters have been retuned. We reduce nu2 and c_k2, because they bring us stronger scalar variances,especially for RFO1. We set C1=1, because it helps to reduce wp2 near cloud top. We also set C6=2 to generate stronger fluxes etc.
Some other changes were made in this commit. They are 1) we modified subroutine calc_brunt_vaisala_freq_sqd by adding brunt_vaisala_freq_sqd_mixed, although brunt_vaisala_freq_sqd_dry is still used as default. 2) cloud fracting was considered in brunt_vaisala_freq_sqd as well as compute_Cx_Fnc_Richardson. 3) C_invrs_tau_N2_wpxp was added as a new parameter.
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
Commit ac210548b0f17a1dfab455f9b1d46e6011af8e65 by noreply
Update advance_helper_module.F90
The file was modified advance_helper_module.F90 (diff)
Commit 61228ff386d06aedecc69fb4797122fc3b1dc52a by noreply
Update advance_clubb_core_module.F90
The file was modified advance_clubb_core_module.F90 (diff)
Commit 9c87ac3db2fa3a072b024b295dbb2931961e256e by noreply
Update advance_helper_module.F90

Fixed a typo which cause a fail in Uninitialized Variables Test.
The file was modified advance_helper_module.F90 (diff)
Commit c11c7882e433749159918d89176c892aa53b823e by Gunther Huebler
Adding C_invrs_tau_N2_wpxp to the initmax namelist. This should fix the fire tuning crashes. larson-group/sys_admin#626
The file was modified parameters_tunable.F90 (diff)
Commit 74b922513308db7dc1355a55eb6c90974943d170 by bmg2
I am adding a file for the new hybrid PDF, which combines the w equation set
from the new PDF (setter variable) and an equation set for the responder
variables similar to what is used for ADG1.
The file was addednew_hybrid_pdf.F90
Commit 6ae78a67f971b37c6fdf70999e812c2cbba56437 by bmg2
I updated the function to calculate the implicit coefficient for the wp4 term,
as well as added the function to calculate the implicit coefficient for the
wp2xp terms for the new hybrid PDF.
The file was modified new_hybrid_pdf.F90 (diff)
Commit 1cfb74544fc88bd03f57c8764ce100ee8a0651ea by bmg2
I made some changes to new_hybrid_pdf.F90 so that it would compile in its
current state.
The file was modified new_hybrid_pdf.F90 (diff)
Commit 9636e0e0bb6f1d6447761880fbbb34a0b69365ce by bmg2
I edited that subroutine that calculates the implicit coefficient and explicit
term for the xp2 equation (wpxp2 term) for the new hybrid PDF.
The file was modified new_hybrid_pdf.F90 (diff)
Commit 91d3418f0eb9a96a0dabdac245bf463212f0bec6 by bmg2
I updated the subroutine that calculates the implicit coefficient and explicit
term for the wpxpyp term in the xpyp predictive equation for the new hybrid PDF.
The file was modified new_hybrid_pdf.F90 (diff)
Commit 9b7da5ab8f5fcef54a61b7174324e236c012f997 by nselke
Replaced rrm_cond with rrm_evap and Nrm_cond with Nrm_evap because they described the same quantity. This is BIT_CHANGING just because the output now contains the N/rrm_evap instead of N/rrm_cond variable name. No changes were made to the values themselves.
see #867
The file was modified stats_variables.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit b535997cda4d30fb1751ebc4ba76d41246275503 by bmg2
I am adding a new file, new_hybrid_pdf_main.F90, as a driver file for the new
hybrid PDF.
The file was addednew_hybrid_pdf_main.F90
Commit d03f5db1bbbb97e9db44aecd763d9de81c7cd841 by bmg2
I worked more the functions for the new hybrid PDF.
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 3b3fa0f343d8202f19fe1f3e4f480f9efca0eae1 by Gunther Huebler
Refactoring advance_xp2_xpyp to have the capability to perform only one combined solve when the lhs matricies are equivalent. larson-group/clubb#855
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 7b4d6d73b34681ce3ebb3b2133a1b417178b882c by bmg2
I changed all the PDF utility functions in pdf_utilities.F90 to elemental
functions.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
Commit fc7dd9a9251d4862a924755633e0242aaca24141 by bmg2
I forgot a "then" to go with an "elseif".
The file was modified pdf_utilities.F90 (diff)
Commit b679ed72231c603528baea842d02f33617fe92aa by nselke
Removed all use statements involving silhs flags from the SILHS files below the API level and putting the flags into the argument lists.
This is the first step to realize a derived type silhs_config_flags_type which holds all SILHS flags.
The changes do not break the host models and lead to bit for bit identical results. #856
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 09460e50e11427c81d50af8196badfb77207e287 by Gunther Huebler
Adding intent(in) attribute to rhs_ta terms and making scalar forcings local variables, since that is what they were supposed to be. larson-group/clubb#855
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit a6bf3fc74cfad569977dc2740bedeca0d63737c0 by Gunther Huebler
Adding case to and modifying xp2_xpyp_solve to remove the need for xp2_xpyp_solve_multiple. larson-group/clubb#855
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 4e3165fe96a6b2071a388b787d2159b326a52398 by Gunther Huebler
Refactoring advance_xm_wpxp to clean up code. Now subroutines solve_xm_wpxp_with_multiple_lhs and solve_xm_wpxp_with_single_lhs are called, rather than having huge chunks of similar code. Also changing the way calc_xm_wpxp_ta_terms works, it uses other input variables rather than coef_ and term_ arguements and instead calculates those locally to abstract functionality. This is BIT_CHANGING for some cases, but idenetical for some with some compilers. There are no visible differences in plots when tested with a number of different flags, and gabls2 (which uses scalars) are also the same. larson-group/clubb#855
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 9e77b1ad9feb229702bb7d2618aa870e8ca0476f by bmg2
I am continuing to build the driver subroutine for the new hybrid PDF.
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 2636b911d7c0ada3c7e221d34684aa2a9a6793d5 by bmg2
I am continuing to work on the driver file for the new hybrid PDF.
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 19bfff3f4f90144b30c8143fb4fe50d5d8085c5a by bmg2
I have completed the main parts of the driver subroutine for the new hybrid PDF.
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 363763a4cf6fd7200c76a6da2d71925fec4cbfa0 by bmg2
The code for the new hybrid PDF now compiles.
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
Commit bd601ca08c9f0daeb8fa98f4579d7150bea6d381 by bmg2
I added an entry for the new hybrid PDF.
The file was modified pdf_closure_module.F90 (diff)
Commit 79f0955fbe6e20587d26ad6b920154b075ef784f by bmg2
I have added the new hybrid PDF to the G unit tests.
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit b222dcbc135f4e89df4cfff38be930d9e8772b3b by bmg2
Mathematically, sigma_x_1_sqd and sigma_x_2_sqd cannot be less than 0.
Numerically, this can happen when numerical round-off error causes
epsilon-sized negative values.  When this happens, reset the PDF component
variance to 0.
The file was modified new_hybrid_pdf.F90 (diff)
Commit 8cfdc21a73477317533a6323d7bb6ffdd4a177f7 by bmg2
I added code to interface the call to the new hybrid PDF with pdf_closure
and have fed the necessary variables in from advance_clubb_core.
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified variables_prognostic_module.F90 (diff)
Commit 2b6ff6cccdbc1d75702d531d5bd62cd5aef226c9 by bmg2
I interfaced the implicit coefficients and explicit terms used in the turbulent
advection code for the new hybrid PDF.  The PDF can now be run interactively
for wp3, all wpxp (wprtp, wpthlp, upwp, vpwp, and wpsclrp), rtp2, thlp2, and
rtpthlp.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit e2bbcece49c6eb70c16dfdd66522d1fea66a48b7 by bmg2
I fixed a small error.  The code compiles again now.
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 4f4e04381aef84937c9b869112d99cc77c6dea50 by pbroels
Updated the larson-group.com urls to http://carson.math.uwm.edu/larson-group
The file was modified silhs_api_module.F90 (diff)
Commit e19fe081dc9086a2fb47598e9e7e19187c1b4c8f by pbroels
Updated the larson-group.com urls to http://carson.math.uwm.edu/larson-group
The file was modified advance_clubb_core_module.F90 (diff)
Commit 78a9b3325c2123b1215097cf3b8acd902012f5be by Gunther Huebler
Pushing down loops over transform_uniform_samples_to_pdf and resolving many if statments beforehand by copying values to new arrays with an additional sample index. This is all bit-for-bit. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 1a45f26705c787e80a5128acda685df304137ae6 by Gunther Huebler
Replacing the lapack function with a simple loop to multiply a pdf_dim x pdf_dim array by a pdf_dim vector. The arrays are too small to justify using lapack. This ends up slightly faster and allows a lot more flexibility which is going to be needed shortly. This is BIT_CHANGING, but not answer changing. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
Commit a1c0be95241fc9ce40fe7f9bc8e07607a6a1042d by bmg2
I have added code that allows CLUBB to run interactively using the new hybrid
PDF.
The file was modified advance_clubb_core_module.F90 (diff)
Commit c5a755bba80851cbaca3a58c3768f018a87113d1 by bmg2
I am updating the subroutine that calculates PDF component means and standard
deviations for hydrometeors.  I am restoring it to its former glory (before
where statements or pushed down loops), but I am turning it into an elemental
subroutine.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 6486d4621e9999dc5c5fbb71b6ec4262bfc82a2e by bmg2
I placed proper thresholding on interpolated up2 and interpolated vp2
before the call to PDF closure.

The results in GrADS output files from this revision are an exact match
to the results in GrADS output files from the previous revision for all
cases.
The file was modified advance_clubb_core_module.F90 (diff)
Commit f0b36de24cc140004601646d99a6b33f00495dbf by nselke
I introduced the silhs_config_flags_type in clubb which now handles all SILHS config flags.
Therefore I added the derived type and methods to set default values and initializing the derived type.
I changed clubb_standalone so that it uses the new derived type now.
The results are bit-for-bit identical. #856
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
The file was modified lh_microphys_var_covar_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
Commit f66969bf1e01403e7e4694e1d11209af057162f2 by bmg2
I added a limiter to keep the maximum magnitude of the correlations of
fluxes to have a upper limit of max_mag_correlation_flux (which is the limit
these correlations should have anyway).
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit d647c75c8a71abcbf4c990562dd33bd13000d958 by bmg2
I upgraded Nc_Ncn_eqns.F90 to use elemental functions.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified Nc_Ncn_eqns.F90 (diff)
Commit 0bbfad6256a0124264bbe3ce79762551170e719b by bmg2
The new hybrid PDF also uses this bit of code that sets the correlation
of w and chi, as well as the correlation of w and eta, to 0 for use in the
correlation arrays to obey PDF standards.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 4b682669ee973988cfa6434f90837f1aa428ea11 by bmg2
I made modifications to the new hybrid PDF so that that calculation of F_w
temporarily becomes more ADG1/sigma_sqd_w-like.  I also set sigma_sqd_w
to 1 - F_w when the new hybrid PDF is used so that the calculation of skewness
of responder variables becomes more consistent with F_w and the new hybrid PDF.
The file was modified pdf_closure_module.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 5a2551405692e69f40b334072b652984eef918ab by nselke
Minor clean-up. Writing 'Intent(in)' in call to 'generate_uniform_sample_at_k_lh_start' and adding descriptions for input and output arguments in 'initialize_silhs_config_flags_type(_api)' and 'set_default_silhs_config_flags(_api)'. #856
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit 4c3845a10b03b4edf2ea5347474b092d83921374 by nselke
Fixed small typo I accidentally introduced in my last commit.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit b401721c1caf94bec4ca3a07a63d748967c9ecc6 by bmg2
I added the ability to handle scalars interactively to the new hybrid PDF.
The file was modified pdf_parameter_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified variables_prognostic_module.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit a775bd9a19e95bc9df8854fa1348bff049acd747 by bmg2
I found a couple of spots in the new hybrid PDF where I needed to add
a wp2 > 0 to the conditionals in order to avoid any potential divide-by-zeros.
The file was modified new_hybrid_pdf.F90 (diff)
Commit 916c1f752b8d36ebceae827e7c1ed2dba4acbbef by bmg2
I added init_pdf_implicit_coefs_terms_api to clubb_api_module.F90.
The file was modified clubb_api_module.F90 (diff)
Commit afb54c36c23b91c8b3c7eb1fa24f1ca3f9fb8da6 by bmg2
The variable type implicit_coefs_terms needs to be made public
so that it is available to host models.
The file was modified clubb_api_module.F90 (diff)
Commit e62b062d69789b8034b91fddd0454be4a18f6e62 by bmg2
I changed the value of the coefficient in the F_w equation to 0.45
because it produces a result that is more similar to ADG1 results
for most cases.  This is a better spot to start testing, development,
and tuning from.
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 7a9ffd8b8ca3f2f5de3b51b75cf72ebf67d1246c by bmg2
I am updating the code to pass up3, vp3, and sclrp3 out of advance_clubb_core
and then back in again.  They were temporarily being stored through use
statements within advance_clubb_core.

This does not change results of standalone CLUBB.  However, prior to this
change, these variables weren't being allocated for host model runs.  This
was causing a segmentation fault.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 750120959776e5f83b91836bc8315f9781af0e36 by Gunther Huebler
Replacing algorithm that calculates the inverse CDF. It's only accurate to single precision, so the uniform samples are clipped to be within a valid range for the algorithm to always be accurate. This is BIT_CHANGING for silhs enabled cases, but plots are visibly identical for rico_silhs. larson-group/clubb#869
The file was modified parameters_silhs.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 29336584d17f867331cf3cbad7e7d2d2180a8c81 by nselke
I have added a print subroutine for the SILHS configurable flags. #856
The file was modified silhs_api_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit e9b085012b811e7726988c0b3bbec21bb064ce11 by bmg2
I have started the process of adding the coding infrastructure
for having different up2 and vp2 LHS for the new hybrid PDF.
The default ADG1 code remains unchanged.
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit f48d9abfdfb56389af74f9542a229864cee47ac6 by bmg2
I have completed the addition of the ability to use different up2
and vp2 LHS for the new hybrid PDF.  The default ADG1 PDF remains
unaffected by these changes.
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 6fa1cf9c290c207154a211f5fc860668576181d6 by nselke
I have added 'l_use_precip_frac', 'l_do_expldiff_rtm_thlm', 'l_use_C11_Richardson' and 'l_prescribed_avg_deltaz' to the 'configurable_clubb_flags_nl' namelist. The latter was moved from 'model_setting' namelist. #856
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit a3fa5e1a393d836c3bbc5622c69ecfd9aab2ed76 by bmg2
I made the l_calc_w_corr code (turned off by default) run again by
changing subroutine calc_corr_w_hm_n to an elemental subroutine.
Previously, runtime exceptions were found within the "where" statements.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit f5c0f864a1ef81dc3b1b08dc1f6a49a2caff860d by nselke
I added a few more flags to the 'configurable_clubb_flags_nl' namelist. Also I gave 'l_use_wp3_pr3' the parameter attribute.
This is done in preparation for the introduction of the 'clubb_config_flags_type'. #856
The file was modified model_flags.F90 (diff)
Commit 780fe29dcb36ae1ec349ba5c65f090059f203685 by nselke
I have started altering argument lists to feed clubb configurable flags through them. This commit has 'l_use_precip_frac',
'l_min_wp2_from_corr_wx', and 'l_min_xp2_from_corr_wx' covered. #856
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 37be56d2a4b786d7f12ddd69516cb4352ada6199 by nselke
I continued to alter argument lists. This commit covers 'l_C2_cloud_frac', 'l_diffuse_rtm_and_thlm', 'l_stability_correct_Kh_N2_zm',
'l_upwind_wpxp_ta', 'l_upwind_xpyp_ta', 'l_upwind_xm_ma'. #856
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified mean_adv.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 9b71f7dbb101e9db7cc9806b71a84163a7ea74f8 by nselke
I continued to alter argument lists. This commit covers ' l_vert_avg_closure', 'l_trapezoidal_rule_zt', 'l_trapezoidal_rule_zm',
'l_call_pdf_closure_twice', 'l_use_cloud_cover', 'l_stability_correct_tau_zm', 'l_damp_wp2_using_em', 'l_do_expldiff_rtm_thlm',
'l_Lscale_plume_centered', 'l_diag_Lscale_from_tau', 'l_use_ice_latent', 'l_use_C7_Richardson', 'l_use_C11_Richardson',
'l_rcm_supersat_adj', 'l_damp_wp3_Skw_squared', and 'l_prescribed_avg_deltaz'. #856
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit fdea666372d0b76b04ca134d2b98ae4dbbbc1f71 by Gunther Huebler
Adding more clipping to the uniform sample values, and reducing the treshold. This is BIT_CHANGING. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit 683056ea199b13314d2ff762537d2330beac0ed3 by nselke
I continued to alter argument lists. This commit covers the last flags in the namelist 'configurable_clubb_flags_nl', namely 'l_predict_upwp_vpwp',
'l_tke_aniso', 'l_standard_term_ta', 'l_brunt_vaisala_freq_moist', 'l_use_thvm_in_bv_freq', and 'l_single_C2_Skw'. #856
The file was modified output_2D_samples_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 63bfc28d22b334b76ebb1e8fe547ebe81c3df81a by nselke
I continued to alter argument lists. This commit covers the last flags in the namelist 'configurable_clubb_flags_nl', namely 'l_predict_upwp_vpwp',
'l_tke_aniso', 'l_standard_term_ta', 'l_brunt_vaisala_freq_moist', 'l_use_thvm_in_bv_freq', and 'l_single_C2_Skw'. #856
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified sigma_sqd_w_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit f7360e20573b47bb3629dfaa9940cdce557bf91e by Gunther Huebler
Changing values to use core_rknd precision. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
Commit a23116c65221afef0098e4cd2f1420a2d4c37557 by Gunther Huebler
Cleaning up clip_transform_silhs_output and removing the X_nl_all_levs_raw variable. This is all bit-for-bit. larson-group/clubb#869
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit db15023dbec54fe127928c413ec331202bb1708b by Gunther Huebler
Changing X_nl_all_levs to inout in clip_transform_silhs_output_api, this was missed in the last commit. larson-group/clubb#869
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 68ea8053ba6e4ef8446344550fffe60f75f84eee by nselke
Finished altering argument lists. This commit covers the final seven flags, which are in different namelists.
This includes 'l_calc_thlp2_rad', 'l_uv_nudge', 'l_rtm_nudge', 'l_diagnose_correlations', 'l_calc_w_corr',
'l_const_Nc_in_cloud', and 'l_fix_w_chi_eta_correlations'. #856
The file was modified output_2D_samples_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 3d7dd80beb0c24b1cb5ceac4a565ae6f13fd8004 by nselke
Finished altering argument lists. This commit covers the final seven flags, which are in different namelists.
This includes 'l_calc_thlp2_rad', 'l_uv_nudge', 'l_rtm_nudge', 'l_diagnose_correlations', 'l_calc_w_corr',
'l_const_Nc_in_cloud', and 'l_fix_w_chi_eta_correlations'. #856
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified output_netcdf.F90 (diff)
Commit 45aba5b2eeafc421549c8a6575eb30717c784dd5 by Gunther Huebler
Pushing a loop down and other small performance refactorings. This is bit-for-bit. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit e27846ed5438edd18859a6fa13a44871e0f9dad7 by nselke
I introduced the 'clubb_config_flags_type'. Furthermore, I have created subroutines to set default values, to initialize the derived type and to print the derived type.
However it is not used by now. #856
The file was modified model_flags.F90 (diff)
Commit 78f8417dcd7dd04ed3dda8148d1a7c23a0b3198f by nselke
I enabled the use of the 'clubb_config_flags_type'. I changed 'clubb_standalone', 'clubb_tuner' and the G_unit_tests so that they now use it. The results are bit-for-bit identical. #856
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit 976026d16da3de89e4899700ff544352f642a398 by nselke
I enabled the use of the 'clubb_config_flags_type'. I changed 'clubb_standalone', 'clubb_tuner' and the G_unit_tests so that they now use it. The results are bit-for-bit identical. #856
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit d37c20a5aba745fa74388467d90dbefd93b8fc1f by nselke
I have removed the 'rc_estimate' subroutine in 'src/SILHS/est_kessler_microphys_module.F90' because it was not working properly. I changed the 'autoconv_estimate' subroutine in the same file to be able to calculate both 'lh_AKm' and 'lh_rcm_avg' with it. I renamed that subroutine to 'calc_estimate'. #692
The file was modified est_kessler_microphys_module.F90 (diff)
Commit cd4f009eb87b05355ab501f2a1e7c7666bcfea7a by Vince Larson
I fed pdf_params_frz into subroutine advance_clubb_core
via a use statement.  Doing so avoids a seg fault with
l_use_ice_latent = .true.  Results are BFB for arm_97.

For #871.
The file was modified advance_clubb_core_module.F90 (diff)
Commit b7b343873c52f374140f1b829c58798d23104713 by Gunther Huebler
Adding error code to arguement list of non-api routines where it was included in the api version.
The file was modified parameters_tunable.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 3108bbdf54aa0f815048daf566c0015714ec82c1 by Gunther Huebler
Moving location of error messages that were in advance_clubb_core. Adding error code setting to those spots as well, they should be fatal.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit 0cfd69bf18f68389e4d86b7fac53b3e828e98f8c by Steffen Domke
Added use statement for pdf_params_frz in src/CLUBB_core/clubb_api_module.f90 and made it public.
This was done to be able to use the variable in SAM's SGS_CLUBB package.

https://github.com/larson-group/clubb/issues/871
The file was modified clubb_api_module.F90 (diff)
Commit 8105cfd6a2a86d2adf95bfe73e9ee210219dd580 by nselke
I have fixed the warnings for lines exceeding 100 characters.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5438863c9d6f29eb871accb42e71d9ebfede658e by nselke
I have fixed the warnings for lines exceeding 100 characters.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 234b88f48750523927211d4908d6ed086592941b by Gunther Huebler
Passing individual flags into setup_clubb_core, rather than the type container for them. This is done for code clarity.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit b960a3357fc8a406b267d5888b37d88936cbd6a7 by Gunther Huebler
Adding GPU code to portion of SILHS, and refactoring minor aspects of code structure. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 141063f7ad13936df7d7e0f44b07364a9d125842 by Gunther Huebler
Removing problems. This should fix the compiler error.
The file was modified transform_to_pdf_module.F90 (diff)
Commit 9313e43d5207ab5755b804d65c752e33031e73c0 by Gunther Huebler
Making subroutine to generate random samples and weights on CPU's, this will be accompanied by one for GPU's shortly. This is bit-for-bit. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 999d5ebd447f3ab6dce4b9f64df67fa5f16c4710 by Gunther Huebler
Simplifiying call trees a bit, removing unused procedures, and creating a random pool to be used where random numbers were being used. This pool allows all randoms to be generated at the same time, which is better for CPUs and (as far as I know) the only decent way to do this on GPUs. Becuase of the different random numbers, this is BIT_CHANGING. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 11b379246a683faec006978acd3764328492619f by noreply
Trivial update to test if cams autoupdate works
The file was modified parameters_tunable.F90 (diff)
Commit 4c49ee462468573ba7c6af413279c90755ade6bf by Gunther Huebler
Changing clipping of uniform samples. This is the same fix from commit afe34fb444a47aa4cb8bcc8b9cbcaeceb0539c9f, but was accidentally reverted in commit 766a5934a8352a556ed5ba2cfeac6aa547f76f86. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 96f8a363aa3502818df4ad4f99ac5529107524df by Gunther Huebler
Commiting a space, because the last commit, be3699d840ed6bc3ff52dc5d397a74767ecdc414, is BIT_CHANGING.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit c92ee6dd5c955e568051a77c9fd3c458310820ea by Gunther Huebler
Simplifying call tree some more, moving around where calculations are done so that GPU code doesn't have to be interrupted with data copies or CPU code. This is bit-for-bit. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit bad04be5432713d928eec4ee525b0e56657ef7c6 by Gunther Huebler
Lots of GPUizing and reorganizing calls. This is bit-for-bit. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 6b20ec2a88f083ee48eac3e39d0e7f94852afcc7 by bmg2
Revert "I am setting model flags and tunable parameters in the clubb_E3SM_silhs branch"

I am reverting commit da00f00.  In that commit, I set some tunable parameters
and flags to be consistent with an old version of E3SM-CLUBB-SILHS.  However,
results from those old cases are hopelessly lost anyway, and we should keep
flags and parameters consistent with today's CLUBB.  Secondly, the code change
in da00f00 is blocking a merge of the modern CLUBB master into this branch.

This reverts commit da00f00f1bd353a7e413a738e1424ddddd751a2b.
The file was modified parameters_tunable.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 1b7c49923e21cc97143c420b994400c22efd1af2 by Gunther Huebler
Moving sample point clipping to after the sampling drivers, rather than immediately after generate_uniform_lh_sample. This was causing sample points to end up out of range when compiling in single precision, which is why the nightly tests were failing for PGI. This should be BIT_CHANGING. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 1b3ce367c1fd861f61265a4b797c300cbf0a016a by bmg2
I placed E3SM preprocessor commands around E3SM-specific code in
parameters_tunable.F90.
The file was modified parameters_tunable.F90 (diff)
Commit 167b63c98f5944d7d45de97507e8d910b376992c by Gunther Huebler
Restoring assertion check for the vertical correlation calculation. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit c927e76c34601e24c555ad799e32bb83e560a0a2 by Gunther Huebler
Changing the error treshold in assert_correct_cloud_normal to use the previously defined single precision threshold. This should fix occasional errors. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit e6f8822a24416b4d853465f7bd797ea5a8fb92dd by bmg2
I added E3SM's clubb_ parameters that can be read in from the
E3SM clubb_param_nl namelist that are now found on E3SM's
master branch (and weren't previously).  This is within
the #ifdef E3SM preprocessor directive and won't affect
CLUBB except in the context of E3SM.
The file was modified parameters_tunable.F90 (diff)
Commit 01cd689e03930500afd5a99d8b980dbf78b4bc2b by bmg2
I added the remainder the clubb_ terms that were added previously to
the zhun/atm/clubb_silhs_v2 branch of the UWM E3SM repository.  This
only affects code in the #ifdef E3SM preprocessor flag.
The file was modified parameters_tunable.F90 (diff)
Commit 27ac5d4ef6f344b80445522f9e313392896a2495 by Gunther Huebler
Changing error threshold in assert_correct_cloud_normal and fixing bug where we weren't passing the correct array section. This should fix the WRF parallel test and the PGI test. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit b6025d4bae73e4715cd9ba9d404464f8daae4c4e by Gunther Huebler
Small updates to acc kernel statments for general performance improvement. This is bit-for-bit. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 5f9e2a7a767c2b2ee554bfccc0c9908d50f4043d by Gunther Huebler
Redoing some data directives to only copy data that we need off the device. Data that is needed by assertion checks and stats will be updated conditionally. This will make the code faster when no stats/assertion checks are being done, but slower when it is. This is all bit-for-bit. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 1f9d2abc6ca0b7b180c4d0f6f18197c40ef594e1 by Gunther Huebler
Adding space because commit a8e61923fa19887baef220aa1a7c8be0f773770f was BIT_CHANGING. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
Commit c58014f82bae800df319de3edfed14f6d221964f by Gunther Huebler
Simple performance improvement refactoring. Merging loops and creating tmp variable to use to help reduce memory usage. This changes the order of operations so this is BIT_CHANGING. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
Commit 8e5716b6671ee0b87017b2816ab718e90d1bb028 by Gunther Huebler
Small performance improvement. Almost reverting the loops to their previous form using the unbounded_point variable. This is all bit-for-bit. larson-group/clubb#869
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit faf11c1f824a5fc95ecb21de0a2225ba20036ea6 by Gunther Huebler
Removing lh_clipped_vars and replacing functionality with arrays. larson-group/clubb#869
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 5b5269b0631c07c51addb22c912d77223d3cd009 by noreply
Update latin_hypercube_driver_module.F90
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit dfe257f9bd88ba731787533dc5bc35ffb1b87c35 by noreply
Update parameters_tunable.F90
The file was modified parameters_tunable.F90 (diff)
Commit b6b18c6a112162a8ef8fbf13aa3478a4b7062d7d by Gunther Huebler
GPUizing clip_transform_silhs_output and pushing data directives up call tree. This is all bit-for-bit. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit b7c52042cb960e2a85c4402ec4e1da7791ab56a3 by Gunther Huebler
Making some data copying regions asyncronous with compute regions, improving performance. This is bit-for-bit. larson-group/clubb#869
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit bde68d858a6c622fc6acdd4c2255c6125c632a38 by nselke
I changed the dummy argument 'value' in the 'stat_update_var' subroutine from explicit to assumed size. #874
The file was modified stats_type_utilities.F90 (diff)
Commit f4cbd72beba82c17113c6a38d43a72e88bfe2fc5 by bmg2
I added the new l_update_pressure configurable flag to clubb_config_flags.
When this flag is enabled (which it is by default), CLUBB updates
pressure and exner every timestep.  This new flags allows this feature
to easily be turned off within the context of host models, such as
CAM and E3SM.

The results in GrADS output files from this revision are an exact match
to the results in GrADS output files from the previous revision for
all cases.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit a32a63a586047be39f39af42106bfb5f31efb672 by bmg2
I added some code I used in the special input fields branch to make
the PDF of w symmetric, so that the PDF at a value of positive skewness
of w (for example, +2) looks like a mirror image of the PDF at the opposite
value of negative skewness (for example, -2).
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 9225a01acef12413480c3deb0cc2dfd804127c27 by guozhun
An improved NaN-Inf checker. It is based on IEEE_ARITHMETIC. (issue#875)[https://github.com/larson-group/clubb/issues/875]
The file was modified numerical_check.F90 (diff)
Commit 0dca127542d480d4f81bb75019c575e2b3addf85 by nselke
I revert the changes from commit 'fbcbd86' from February 14th 2020 to resolve an issue with SAM CLUBB. For details see #874.
The file was modified stats_type_utilities.F90 (diff)
Commit 64b5afb6666c2d345052d96f8f1d8ae54761daf8 by bmg2
I got rid of the "allocatable", "allocate", and "deallocate" statements
in regards to pdf_params and pdf_params_frz because NCAR could not get
CAM to run using the NAG compiler.  As it turns out, the code can run
on group computers without these statements.
The file was modified variables_prognostic_module.F90 (diff)
Commit 279fab75ad386341b7d26f56991681e86ee9eef3 by bmg2
I placed an ifndef CLUBB_CAM preprocessor flag around the code in
error_code.F90 that uses the FORTRAN intrinsic call to getpid().
This causes problems for NCAR when they try to compile CAM using
the NAG compiler.
The file was modified error_code.F90 (diff)
Commit 25b836771d9185938dffb4327d6444a6e3bcb005 by noreply
I reduced the minimum possible value of lmin from 4.0 to 1.0.

This is because Mark Taylor found that for the E3SM model, reducing lmin from 4 to 1 prevents excessive cooling at the surface near Greenland.  For more information about this "Tlay" error, see [here](https://acme-climate.atlassian.net/wiki/spaces/NGDNA/pages/1296793934/CLUBB+lmin+coeff+sensitivity?focusedCommentId=1296892065#comment-1296892065) and [here](https://acme-climate.atlassian.net/wiki/spaces/NGDNA/pages/1235255422/Tlay+Error+in+ne256pg2+Runs+cold+temperature+plots).

larson-group/climate_process_team#196
The file was modified parameters_tunable.F90 (diff)
Commit 5a748b32a36b1c101fd9ba323db0a204a96f16ac by noreply
I made a print/write statement debug level 3

because it was filling up the logs of global CAM and E3SM simulations.

For #755 and #800
The file was modified advance_clubb_core_module.F90 (diff)
Commit a050d6abf83b7403c321a47e310b9df7c350e867 by noreply
I made a second print/write statement debug level 3

because it was also filling up the logs of global CAM and E3SM simulations.

For #755 and #800.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit f1873bdcf6480583a05d39372926472755e0c055 by guozhun
I fix a print/write statement debug level3. For #755 and #800
The file was modified advance_clubb_core_module.F90 (diff)
Commit f58158365d6813e0b2ee60497eb0774176abf064 by bmg2
I am replacing the "use" statements that referenced
variables_diagnostic_module from advance_clubb_core and replacing
them with local declarations.  This requires that some
additional variables are passed into and out of advance_clubb_core.

Additionally, Lscale is now recalculated outside of advance_clubb_core
using TKE and Kh for use in SILHS code.  This makes this commit
BIT_CHANGING.

CLUBB GitHub Issue Reference: #876.
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 0f67628552092a7d229225bac08badff3b074d62 by bmg2
I "brought back the stats" by passing the stats from advance_clubb_core
to stats_accumulate, getting rid of the "use" statements.

This commit is BIT_CHANGING, since it changes stats output.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit dd9ad18fdb32917c840b9406d2ae629f51ff91b9 by bmg2
Removing the reference to variables_diagnostic_module (sigma_sqd_w_zt and rtm_ref)
from subroutine pdf_closure_driver in advance_clubb_core.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7a05c93c702035d8a08b1121d7e927af63e186f3 by bmg2
Results were changed yesterday for some cases because thlprcp was
no longer being output from advance_clubb_core for use in the
calculate_thlp2_rad.  This was previously accomplished through a
"use" statement.  The variable thlprcp is now output through the
argument list of advance_clubb_core.

This commit is BIT_CHANGING.
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 6f41957ecc761aa393647629c997eb41fdb01b58 by bmg2
I have resolved all the issues surrounding recent CLUBB commits that
remove "use" statements from the code.  The commit 068a7b2 (April 8, 2020) was
the commit before these refactorings started.  When Lscale, Skw_zm, and thvm
are passed out of CLUBB core, the code returns to a bit-for-bit match to commit
068a7b2.  However, rather than pass these variables out of advance_clubb_core,
it is more convenient to recalculate them locally in clubb_driver.  This
changes results for (a) SILHS cases, owing to the change to Lscale, and (b) all
cases that advance microphysics, owing to the change to Skw_zm.  The net result
is that this commit is BIT_CHANGING.  For cases that advance microphysics and/or
use SILHS, the net result is BIT_CHANGING when compared to 068a7b2.  For all
other cases (BOMEX, etc.), the results are an exact match.

It is important to note that host models that use CLUBB (without SILHS) will not
be affected by these changes.  Host models that use SILHS will only be affected
by the change to Lscale.  However, this code has already been applied to CAM and
E3SM, so the only changes will to SILHS code in SAM and WRF.

Larson Group Issue Reference: #876.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 3603a68adcce4975fbb94a240e11deacf53efe08 by noreply
I removed code that stops a run if the output time step is less than a minute.

This restriction is unnecessary if netcdf is used as the output file format.
The file was modified output_netcdf.F90 (diff)
Commit 5249de8f91cd1474ce792ec4c8cd7536491a3c27 by bmg2
I removed references to variables_prognostic_module and
variables_diagnostic_module from numerical_check.F90.

CLUBB GitHub Issue Reference: #876.
The file was modified numerical_check.F90 (diff)
Commit 3b091ac242ff2f9062505f5bff01ead16d7612e0 by bmg2
Fixed a boo-boo.

CLUBB GitHub Issue Reference: #876.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 36fe4d36102c43fa039370832fe42a56ded17dbc by noreply
I set `l_diag_Lscale_from_tau = .true.` in source code

in order to match the value in configurable_model_flags.in. 
I did so to avoid confusion, but also to check whether doing so
will allow the WRF-CLUBB lines nightly plots to better match the CLUBB standalone lines.

For larson-group/wrf#105.
The file was modified model_flags.F90 (diff)
Commit 29ad608ebd198f28b74757885b31ac09cf6d4989 by bmg2
I removed references to variable_diagnostic_module for various Kessler
Autoconversion variables that are being output to statistics.

CLUBB Git Issue Reference: #876.
The file was modified stats_clubb_utilities.F90 (diff)
Commit 06e6739507c93d6cc3c2aadb4d262a024b0f3eab by bmg2
I removed the reference to use variables_diagnostic_module for Kh_zm
found in setup_clubb_pdf_params.F90.  The variable Kh_zm can easily be
passed in instead.

CLUBB Git Issue Reference: #876.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 6f2f593c5bd5306818c121ecfb043d9fc6687c9a by bmg2
Removed a reference to variables_diagnostic_module for Kh_zm in
approx_w_corr.  I passed the variable in instead.

CLUBB Github Issue Reference: #876.
The file was modified diagnose_correlations_module.F90 (diff)
Commit efec25c6dc6ff1e4d8a4162088208012a97e0039 by bmg2
I am able to remove references to variables_prognostic_module and
variables_diagnostic_module from clubb_api_module.

CLUBB GitHub Issue References: #876.
The file was modified clubb_api_module.F90 (diff)
Commit 752666bf1bdfa947fe94b37b82aa090098df8cc3 by bmg2
I removed the l_use_ice_latent flag from the code, and along with it
all the _frz variables.

The results in GrADS output files from this revision are an exact match
to the results in GraDS output files from the previous revision for all
cases.

CLUBB GitHub Issue Reference: #876.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified variables_prognostic_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified variables_diagnostic_module.F90 (diff)
Commit e81b40abf9a543b2a1bc51d8e266903d13a9fc2f by bmg2
I have completed the project of removing variables_prognostic_module
and variables_diagnostic_module from the CLUBB code.

The results in GrADS output files from this revision are an exact match
to the results found in GrADS output files from the previous revision
for all cases.

CLUBB Git Issue Reference: #876.
The file was modified clubb_api_module.F90 (diff)
The file was removedvariables_prognostic_module.F90
The file was removedvariables_diagnostic_module.F90
The file was modified advance_clubb_core_module.F90 (diff)
Commit 1bdd34c6481b3c01f82b877f62a93ba370e5b9ed by noreply
I added some missing threadprivate statements

in order to eliminate a warning from the check_for_missing_threadprivate.py script.
The file was modified parameters_tunable.F90 (diff)
Commit e2826f017c87d3cd240aa7fc22795fe1a4ac161c by bmg2
I have taken the code from wp2_term_ta_all and placed it in the subroutine
wp2_term_ta.  This combines the former, verbose description with the
new optimized code.  This also eliminates an unused function and gets rid
of a compiler warning.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit e0d302767e3733455f3dde87b01472c1eb9ee1a6 by bmg2
I am updating wp3_term_ta_new_pdf_lhs to use the optimized code from
wp3_term_ta_new_pdf_lhs_all, and then I am removing
wp3_term_ta_new_pdf_lhs_all from the code.  This eliminates a compiler
error.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit df5510e777de2b9360c836491d81db6920bf07be by benjamin.andrew.stephens
This commit is BIT_CHANGING.  It makes the parameter values in parameters_tunable.F90 agree with those in tunable_parameters.in
The file was modified parameters_tunable.F90 (diff)
Commit 249ed5dd4ff58c54c3bcd841658e556f7ee999b3 by bmg2
I am making the change of using tau_wp2_zm to damp up2 and vp2,
rather than tau_xp2_zm, when l_diag_Lscale_from_tau is enabled.
The previous code was causing up2 and vp2 to become large and
unstable.

Additionally, I placed a limiter on tau based on Lscale_max in
the CLUBB code for the situation where l_diag_Lscale_from_tau
is enabled.  This will help constrict tau, and thereby the
magnitudes of turbulent fields, in a host model as grid spacing
starts to become arbitrarily small and resolved features take
over.

This revision is BIT_CHANGING.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit a59618b0d5bb86a20829495f774d7b95b59fa7c0 by bmg2
I have added the integer flags iiPDF_type and ipdf_call_placement
to the clubb_config_flags type.  They have also been added to
configurable_model_flags.in.

The results in GrADS output files from this revision are an exact
match to the result in GrADS output files from the previous revision
for all cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 935b507b50e147ce7e4cb1aefde6b167312b5aa0 by bmg2
I am going to make primary PDF type options and primary PDF call
position options available to host models.
The file was modified clubb_api_module.F90 (diff)
Commit 03a057fc0fa742bf5903cebd6c39a6cabe084a54 by bmg2
I added E3SM customizations to CLUBB's master branch.  This is meant
for updating CLUBB in the E3SM master branch.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit 1d961006eb841164ff42b461bf2cc5465c0fe4de by bmg2
I am updating the clubb_ list of namelist parameters used in E3SM
to include every parameter that E3SM has customized in CLUBB.
The goal is to make it so E3SM does not need to customize the
CLUBB side of E3SM-CLUBB at all, making future upgrades easier.
The file was modified parameters_tunable.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 29c5dd3a6fd55e6a294aed63e5e6029810e970fa by bmg2
I am changing the new hybrid PDF's calculation of F_w to use
tunable parameter gamma (technically, the gamma_Skw_fnc).

In the ADG1 PDF, when gamma_Skw_fnc goes to 0, the standard
deviations of w in each PDF component both go to 0, and the
spread between the PDF component means of w is at its maximum.
When gamma_Skw_fnc goes to 1, the standard deviations of w in
each PDF component become large, and the spread between the PDF
component means of w becomes small.

The new hybrid PDF is based on the same concept, except that I
had been using a hard-wired 0.75 in the place of gamma or the
gamma_Skw_fnc.  Re-using the tunable parameters for gamma here
makes sense, since it's the same concept and this makes tuning
easier.
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit bfde3dd3cab8d57d726caebb7544a3f171dd24bc by bmg2
I updated the xp3 calculation for PDF types other than ADG1.

ADG1 is stuck into using the LG 2005 ansatz, exactly as written.

Other PDF types are not stuck using this.  Rather than re-invent the wheel,
these other PDF types can still use the LG 2005 ansatz equation, but
sigma_sqd_w_zt (specific to ADG1) has been replaced with a tunable function
relavant to other PDF types.  This tunable function is called xp3_coef_fnc.

The results in GrADS output files from the previous revision are an exact match
to the results in GrADS output files from the current revision for all cases
for the default ADG1 PDF.
The file was modified advance_clubb_core_module.F90 (diff)
Commit b9a3fc1cb5be1eedbf0543b5a29bf413d833246b by bmg2
This xp3_coef_ parameters produce new hybrid PDF results similar to the old
ones for a starting point.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 17b61c278e074b0f13c0b7a3c7249b68c911d096 by bmg2
I added the 2 new parameters in the simple xp3 equation (for PDF
types other than ADG1) to the list of CLUBB tunable parameters.

The results in GrADS output files from this revision are an exact match
to the results in GrADS output files from the previous revision for all
cases.
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit ec26fc272f08735e68e710da38363b7efd0dd57c by bmg2
I have combined the wp3_term_ta_ADG1_lhs and wp3_term_ta_ADG1_lhs_all
routines into one subroutine.  This is done to remove a compiler warning,
simplify the code, and prep the code for the wp3 partial upwinding.

The results in GrADS output files from this revision are an exact match
to the results in GrADS output files from the previous revision for
all cases.

Larson Group GitHub Issue Reference: #877.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 306b627bcb23d1b499a98adeaed955ca6abb177f by bmg2
I added the partially upwinded implementation of the wp3 turbulent advection
term for ADG1 to the code.  It is turned off by default.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

Larson Group GitHub Issue Reference: #877.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 8d6af15804e294c451e5055c922a26971c8d9530 by isenfireldc
Removed unused module imports
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified calc_roots.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified surface_varnce_module.F90 (diff)
Commit 95246a59cf7daf42bea1f966cd0bfe71eaae04f0 by isenfireldc
Removed unused module imports
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 5aff71092d08c4cbcbbdc88c9c4823996750edfc by isenfireldc
Removed a comma that I missed while removing unused imports (#878)
The file was modified output_netcdf.F90 (diff)
Commit 57147620713193e3f760ea88538641e52349ab84 by bmg2
I am adding l_partial_upwind_wp3 to the list of clubb_config_flags.

Larson Group GitHub Issue Reference: #877.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 6e6f394fa3e64d52dd788789db41f5cd35349ade by Gunther Huebler
Deprecating use of l_Lscale_vert_avg in SILHS. This is causing problems with the GPUization efforts, described in larson-group/cam#129
The file was modified parameters_silhs.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 0564f82db8dd12fafc465a90d1a283989482f392 by bmg2
I started the process of paring 2 subprograms back down to 1 in
advance_wp2_wp3_module.

Everything remains an exact match.

CLUBB Issue ref: #878.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 8b33c3ed3462f2c340836eb9276e7123eeef2594 by bmg2
I pared two more sets of equivalent subprograms down to 1 (each).

Bittos are ditto

Git Issue #878
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 034ddd2f57c2ba3d33368744e6268aec8fc4510a by bmg2
Paring down 2 equivalent subprograms to 1 again.

Just call me "The Reducer"

Bittos are ditto

Issue #878
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 9a48a69a9139f2d8b3ed6c0b9d729fe2439d7fa4 by bmg2
I condensed two more sets of doubled subprograms down to 1 (each)
in advance_wp2_wp3_module.F90.

Bittos are ditto.

Big Issue #878.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit f6211090a551eae9f5de3c2b60944efcc10e1458 by bmg2
Reduced two more sets of "doubled" subprograms down.

Bit-for-bit
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit c1b8935e7a81f9c4c6706b949e764cb1b46ea726 by Gunther Huebler
Updating silhs to prepare the column loop commit. This is being committed seperately because it is BIT_CHANGING, due to the way we are initializing the random number generator on CPUs. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 456aaaad293ba2c1218c740543884c90dc915451 by Gunther Huebler
Adding column loop index to silhs, and pushing loops down to allow parallelization over the column index. This requries changing the api, but it is bit-for-bit running on both gpus and cpus. larson-group/cam#129
The file was modified silhs_api_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 097dc4653aefee568ab81cf9f5ce6d112cd172bc by noreply
I updated CLUBB's copyright date range.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 9301e56822e1b0f7d4d5ec1a7cfa21fb27ee48aa by Gunther Huebler
Adding interface in silhs_api to distinguish single vs multiple comulmn calls. This seems to be a better solution than the previous attempt that broke the nightly tests. When calling silhs a single column at a time, the api will copy the single column data into arrays with a grid column index, allowing us to leave the host models the same. larson-group/cam#129
The file was modified silhs_api_module.F90 (diff)
Commit bca9c6c8c0fb9a04fe5bd806cea2cd892bd9a95b by isenfireldc
Removed unused parameters [-Wunused-parameter]
Output files are the same

Issue #878
The file was modified pdf_closure_module.F90 (diff)
Commit 449ee02d46ebe4950dc9b8a3b4a0ee87b8b86272 by isenfireldc
Removed unused parameters [-Wunused-parameter]
Output files are the same

Issue #878
The file was modified est_kessler_microphys_module.F90 (diff)
Commit 632fe0cffdcec677fb17c73e49fb19b8b3652c50 by bmg2
Taking more duplicated subprograms and paring them down to 1.

bit-4-bit; #878
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 9d86e038a81f32899f20fe4c88883959891b8df0 by isenfireldc
Replaced real checks with an epsilon approach [-Wcompare-reals]
This commit should be BIT_CHANGING

I accidentally put in a couple extra imports, will clean those out later

Issue #878
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
Commit fc375203e4d5f3ad2dd3ba40a8aedbdc2dd80352 by isenfireldc
Replaced real checks with an epsilon approach [-Wcompare-reals]
This commit should be BIT_CHANGING

I accidentally put in a couple extra imports, will clean those out later

Issue #878
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 4b370fe2ff24fd2d86598424c74361424ad9a94d by isenfireldc
Removed unused imports [-Wunused-parameter]
Output is the same

Issue #878
The file was modified corr_varnce_module.F90 (diff)
Commit 6847aef50658a5a288954b592c9b6adf2cc491cd by isenfireldc
Removed unused imports [-Wunused-parameter]
Output is the same

Issue #878
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
Commit 05f74998aa1912a02200c80b70fb9cac56d08e8a by isenfireldc
Removed styleguide violations from my code
No change

Issue #878
The file was modified precipitation_fraction.F90 (diff)
Commit 6cf01d6f24826da6eaaaec443d1c95ab8666bf8f by isenfireldc
Fixed a backwards epsilon comparison from 8e8e71e
Results look identical

Issue #878
The file was modified parameters_tunable.F90 (diff)
Commit d9c9f9014093b3cfe7216f227621ff7bff260a2b by bmg2
Removed the "doubling" of the remainder of the subprograms from
advance_wp2_wp3_module.F90.

Bit-for-bit; #878.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 22eea6c0663459539b20863acdf61094a4ee9411 by Gunther Huebler
Changing epsilon used in equality comparison. The previous epsilon seems to be too large, and was causing failures in runs. larson-group/clubb#878
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 9cf48dc3ffd702155f175a832543b1ccea5c2cc1 by Gunther Huebler
Small changes to generate_all_uniform_samples. I was encountering a gpu problem with this code when run in cam. I'm not certain why this is an issue, but this changes fixes it and is bit-for-bit on both cpus and gpus. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 483e2dd3ae6245537b6c0b32ae8edb726e0ec49d by isenfireldc
Changed the length of solve_type_str to 20 [-Wcharacter-trucation]
Unchanged

Issue #878
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit f10b9dd183a5aabfab4130401217a1f3a2190145 by isenfireldc
Removed unused arguments [-Wunused-dummy-argument]
Unchanged

The removed lines were commented out, opposed to deleted
An if statement with continue was added to remove the warning without
changing the method signature (clubb_driver.F90)

Issue #878
The file was modified numerical_check.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 7f8e2668c4728e4a1839307214d9ab340c7f8022 by isenfireldc
Removed unused arguments [-Wunused-dummy-argument]
Unchanged

The removed lines were commented out, opposed to deleted
An if statement with continue was added to remove the warning without
changing the method signature (clubb_driver.F90)

Issue #878
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit 08c14a70ec4411e52e17b7c44d135a634640d802 by isenfireldc
Removed unused variables [-Wunused-variable]
Unchanged

Issue #878
The file was modified advance_clubb_core_module.F90 (diff)
Commit 0368ceb837a6b9adee914c68662dadfd7f25ee9f by isenfireldc
Removed unused variables [-Wunused-variable]
Unchanged

Issue #878
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit fe8a2ccd15709427486d06dafd69dc519867e4a5 by bmg2
I have tidied up advance_wp2_wp3_module.F90, and I have removed all doubled
subprograms from advance_xm_wpxp_module.F90.

The results in GrADS output files from this revision is an exact match to the
results in GrADS output files from the previous revision for all cases.

Git Issue: #878.
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit d8bc4555b03e0c49bb2b8808efe15ae35e017c75 by isenfireldc
Removed continue and undid edits to _api fuction signatures
Unchanged

I left the edits to underlying fuctions, as they never used the argument in the code

Issue #878
The file was modified advance_clubb_core_module.F90 (diff)
Commit d7e922c9ca41866d18f23e65a3478ec02c98874d by isenfireldc
Removed continue and undid edits to _api fuction signatures
Unchanged

I left the edits to underlying fuctions, as they never used the argument in the code

Issue #878
The file was modified silhs_api_module.F90 (diff)
Commit 914eb7dae9384c3270c7b2c99eee761501283f0a by bmg2
I handled the "doubled" subprograms in turbulent_adv_pdf.F90.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

CLUBB Git Issue Reference: #878.
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 6bdf29385494f979f22af881d5da3986ecc32194 by Gunther Huebler
Making change explained in larson-group/clubb#878
The file was modified silhs_importance_sample_module.F90 (diff)
Commit a5ab148417dedb799c61717b7a44a34430fed445 by isenfireldc
Removed some unused variables (ifort)
Unchanged

Issue #878
The file was modified silhs_api_module.F90 (diff)
Commit 3f2c34376025ac4068b02cef98494749c4e80525 by isenfireldc
Removed some unused variables (ifort)
Unchanged

Issue #878
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit e842d008e8fe68edd0da7490e49615d91082013d by Gunther Huebler
Adding functionality to pass in a seed for the random number generator. This allows CPU restart runs to function correctly. Because this also changes the seed, this is BIT_CHANGING. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit 8a2c24804fd34888208aa27b643ab52e33e06703 by isenfireldc
Removed unused import [-Wunused-variable]
Unchanged

Issue #878
The file was modified silhs_importance_sample_module.F90 (diff)
Commit 5bb72140ec0db6dab4e53e75ecbb8510c01aecfa by isenfireldc
Removes unused function calc_cloud_frac [-Wunused-function]
Unchanged

Issue #878
The file was modified pdf_closure_module.F90 (diff)
Commit c97ab5e47db3ed88257fcc45e1de5caef4afa3b7 by isenfireldc
Fixes style issue

Moves comment from line over 100 characters long to the line above

Issue #878
The file was modified lapack_wrap.F90 (diff)
Commit 7baba2d841e751bb06d54b66ddaddda8083e3d79 by isenfireldc
Removed import without only as it was unused

Issue #878
The file was modified parameters_tunable.F90 (diff)
Commit 8391e3009cda96dfa0b4e0e3fe3784fe7ba2019e by isenfireldc
Adds mpishorthand back with only, it appears to be used somewhere
Unchanged

I didn't receive any warnings, because the code was incased in #ifdef SPMD

Issue #878
The file was modified parameters_tunable.F90 (diff)
Commit 206d072088418f9ca4f5ffb8ddd71121628adcea by bmg2
I have pared two subprograms down to one again, this time for the
subprograms found in module diffusion.

As part of this, the calls to diffusion (for turbulent advection)
in advance_microphys_module.F90 needed to be upgraded to use the
fully optimized version of the code. As a result, this revision
is BIT_CHANGING, but only for cases that use microphysics. A print
out of the LHS array from the call to diffusion shows that numbers
are in agreement until you reach the point of numerical roundoff.

CLUBB Git Issue Reference: #878.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified diffusion.F90 (diff)
Commit 4df2dce7f6eeccf089d00ca91c7a158eef35dd44 by bmg2
I pared down subprogram pairs again, this time for mean advection.

The results from this revision are an exact match to the result from
the previous revision for all cases.

Larson Group Issue Reference: #878.
The file was modified mean_adv.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 0a804e329df446504755639568533d43c71aa38c by bmg2
I added altitude_threshold to the list of CLUBB's tunable parameters.

The results in GrADS output files from this revision are an exact match to the
results in GrADS output files from the previous revision for all cases.

However, NetCDF output files are not an exact match, owing to the presence
of the new tunable parameter listed in the output files.  That technically
makes this revision BIT_CHANGING.
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified parameter_indices.F90 (diff)
Commit afdb66e5b0ec6643891aa6759fe061492bbcd942 by strike
Updating clubb variables to output their var_description in the form '[variable name using sci notation], [Textual descirption]' in an effort to provide more standardized titles for pyplotgenplots.
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
Commit 7466fd80923756687e034cef32675207de0dedfb by strike
Updating previous commit to not have lines over 100 characters. This commit shouldn't be BIT_CHANGING, but the previous commit was (and was supposed to be).
The file was modified stats_sfc_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit 4e98f884fb43d06669dce6e29513e936baed3ecf by isenfireldc
Adds more debug lines

Issue #881
The file was modified output_grads.F90 (diff)
The file was modified output_netcdf.F90 (diff)
Commit e3e4966b3e37f727fbee943081a479a078b4047d by isenfireldc
Removes debug lines

Issue #881
The file was modified output_grads.F90 (diff)
The file was modified output_netcdf.F90 (diff)
Commit 27cebcd0b77b6b1a826b3d9ec6edc182131e52ca by isenfireldc
Adds debug lines and changes format

Issue #881
The file was modified output_netcdf.F90 (diff)
Commit e69122b8c716881ac5818694b75940a10ae4c378 by isenfireldc
Modifies debug line

Issue #881
The file was modified output_netcdf.F90 (diff)
Commit 52244022211caf4b18ed05a98bc946b8c8e2f1bf by isenfireldc
Modifies debug line

Issue #881
The file was modified output_netcdf.F90 (diff)
Commit 5c207cd1008c3a8d8b6961acfca06ffd42ebef38 by isenfireldc
Initialize ncf%ntimes to 0 when opening netcdf for writing

Issue #881
The file was modified output_netcdf.F90 (diff)
Commit 2855a9acb24ba4238edd801a4cd8633567615332 by isenfireldc
Removes debug lines

Issue #881
The file was modified output_netcdf.F90 (diff)
Commit 1d2c3305ba6770d82b958af367a53bc676361dd8 by isenfireldc
Changes length of units variable in stat_file_module from 20 to 25
BIT_CHANGING

The previous length of 20 was cutting off the last character for the unit
`kg^{3} kg^{-3} s^{-1}`, which was causing checkBudget.py to fail.  I upped it
to 25 because that is a nice number.

Issue #881
The file was modified stat_file_module.F90 (diff)
Commit e39f3a9976193002fed4fa62d4390801cb80a24c by benjamin.andrew.stephens
This commit resolves issue #885 and gets the 2D output working, if the relevant flags are set to true.  A duplicated allocate statement is eliminated, and to ensure that the 2D output occurs at the right intervals (every stats_tout seconds) I have also added approrpiate if statements at the beginning of the 2D output subroutines.
The file was modified output_2D_samples_module.F90 (diff)
Commit f29953024a9efa8f3b396d8020a8588c691ef9a2 by benjamin.andrew.stephens
Adding API subroutines for latin_hypercube_2D_output and latin_hypercube_2D_close.  This will aid in implementing the SILHS 2D output subroutines in host models.  The new API subroutines necessitated some minor changes in clubb_driver.F90 as well.  Mainly relevant to https://github.com/larson-group/wrf/issues/110 (WRF repo), but see also #885 (CLUBB repo).
The file was modified silhs_api_module.F90 (diff)
Commit faaa09a9dd4400fece94bd30bdef37d554948360 by bmg2
I updated the stats code in setup_clubb_pdf_params.F90 and in
latin_hypercube_driver_module.F90 to loop over stat_update_var_pt
up to level nz, rather than call stat_update_var.  This is done
to allow E3SM-CLUBB-SILHS to run without issue. In that code base,
SILHS and CLUBB have differing numbers of vertical levels.

The results in output files from this revision are an exact match
to the results in output files from the previous revision for all
cases.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit b61ffdbef6993ce180a00aff3936f77531639631 by bmg2
I updated the stats code in setup_clubb_pdf_params.F90 and in
latin_hypercube_driver_module.F90 to loop over stat_update_var_pt
up to level nz, rather than call stat_update_var.  This is done
to allow E3SM-CLUBB-SILHS to run without issue. In that code base,
SILHS and CLUBB have differing numbers of vertical levels.

The results in output files from this revision are an exact match
to the results in output files from the previous revision for all
cases.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit e0f1e9b683592ca8513e732120a20df0d2438f1e by benjamin.andrew.stephens
This commit primarily overhauls the way the 2D SILHS samples are output to netCDF.  Now, instead of being output along the latitude dimension in a 4d netCDF file, the SILHS samples are output along the "lh_sample_number" dimension of a 5d netCDF file.  Furthermore the lat/lon dimensions of the 2D SILHS sample files are now output with the correct lat/lon information.

Also, "rlat" and "rlon" are changed to "lat_vals" and "lon_vals" throughout the CLUBB repo for clarity.  Most of the files changes are because of this.  (Some host models, e.g. WRF, may still use "rlat" and "rlon" in the code where they interface with CLUBB.)

See issue #887.
The file was modified output_2D_samples_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 6482c644791940f0cad2e1cd53c61844f6f56500 by benjamin.andrew.stephens
This commit primarily overhauls the way the 2D SILHS samples are output to netCDF.  Now, instead of being output along the latitude dimension in a 4d netCDF file, the SILHS samples are output along the "lh_sample_number" dimension of a 5d netCDF file.  Furthermore the lat/lon dimensions of the 2D SILHS sample files are now output with the correct lat/lon information.

Also, "rlat" and "rlon" are changed to "lat_vals" and "lon_vals" throughout the CLUBB repo for clarity.  Most of the files changes are because of this.  (Some host models, e.g. WRF, may still use "rlat" and "rlon" in the code where they interface with CLUBB.)

See issue #887.
The file was modified output_grads.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified stat_file_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified output_netcdf.F90 (diff)
Commit 4fabcab89058c3d216ee6c6ef3ec977e14476e10 by Gunther Huebler
Undoing accidental find and replace. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 835b96e74437f9a1ecd703a6682c75a19568c7c3 by nchief
Updated titles listed for change here: https://github.com/larson-group/sys_admin/issues/542#issuecomment-685963832
Moved wp2thvp just after the Cloud water contribution to wp2thvp panel
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
Commit 16a52f15f8eec9cd96250e2824c9902bfe9256d5 by strike
Fix super serious 1 character bug that broke all of the things
The file was modified stats_zt_module.F90 (diff)
Commit 09188158a0ffe085e949f4497fd417be6fca2c50 by bmg2
I am committing Zhun's changes to the CLUBB portion of his
E3SM-CLUBB-SILHS branch to the clubb_E3SM_SILHS_branch_merge
branch of CLUBB.  The goal is for this code to eventually be
merged into the CLUBB master.
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
Commit 121e67c4b158a54e87e7817956bb4a12f706e9c3 by noreply
Update stats_zm_module.F90

Added apostrophe to thl'thv' for consistency.
The file was modified stats_zm_module.F90 (diff)
Commit b65048d5fb0571e486c365ef27f0863fda44a2d0 by bmg2
I added Cx_min, Cx_max, Richardson_num_min, and Richardson_num_max
to the list of CLUBB's tunable parameters.
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 8d20eb1aa94009fcd9c89f703d10e9ba438e4845 by bmg2
I connected the new tunable parameters to advance_helper_module.F90.
The file was modified advance_helper_module.F90 (diff)
Commit 25ed680064c8ab4ee4f74c34b440257faf9fd70e by bmg2
I added l_use_shear_Richardson to CLUBB's configurable model flags.
The file was modified advance_helper_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 3dc70ce717348532fbc888574f7f0825ea8a401e by benjamin.andrew.stephens
Adding linear multistep method (LMM) stepping flag (l_lmm_stepping) to provide capability of overstepping-and-then-averaging results from advance_wp2_wp3, advance_xm_xpwp, and advance_xp2_xpyp.  This is intended to help smooth high-frequency oscillations.  Flag is set to false by default so has no impact on standard runs.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 954c6c2dbef62f96755207776d56cbd9b4e9cb5d by Vince Larson
In order to prevent dycoms2_rf02_so from crashing,
I replaced C7_Skw_fnc by 0.7 in upwp_pr4 and vpwp_pr4.
This prevents an excessive wind gradient (dum/dz) from
forming near the lower surface.

This commit is BIT_CHANGING.  For larson-group/e3sm#30.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit e65f26062f1a7b61581f530a81532795bff72cbd by Vince Larson
I updated the recording of the budget terms for upwp_pr4 and vpwp_pr4.
The simulation should be BFB, but because the budget term
is updated consistently now, this commit is BIT_CHANGING.
For larson-group/e3sm#30.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit cacdab660c210f30178d483c8545d39a7b2568ab by benjamin.andrew.stephens
Adding the smooth_min and smooth_max functions to the repo.  These are not yet implemented in CLUBB but are now available for use and testing. See issue #894.
The file was modified advance_helper_module.F90 (diff)
Commit c2066af74a5d49e40558fc1d59352f118028c96c by benjamin.andrew.stephens
Adding some comments describing zm and zt for the new interface functions, and fixing a problem in the "array_sclr" versions of the functions.  See issue #894.
The file was modified advance_helper_module.F90 (diff)
Commit 13f11f11a25ca3c19dd944fc13003b1542e86d20 by Gunther Huebler
Modifying some array dimensions to speed up multiply_Cholesky. This cuts the cost of multiply_Cholesky by about 60% in cam but only about 15% in clubb_standalone. larson-group/cam#129
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 51f8757f2ece02721c4c95797df4b6738111fead by benjamin.andrew.stephens
This commit replaces division by tau with multiplication by inverse tau in most cases.  It is BIT_CHANGING, not only because the results change (only very slightly in some cases, but more significantly in sensitive cases like ARM_97, RICO, etc.) but also because some of the old tau_*_zm or tau_*_zt output variables are replaced with invrs_tau_* variables, hence the netcdf files will differ and there are minor changes to stats input files.  Spurious source test also needed to be slightly modified to accommodate a new variable fed into the advance_xm_wpxp subroutine.

There is also some minor cleanup.

See issue #899.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
Commit d08fdc395bde39bc7b72378b25216f1957c06ec9 by bmg2
I am committing a bug fix to the invrs_tau_zm equation that was
introduced with the code merge from E3SM.  I am also adding some
changes to the clubb_api_module that should have been brought over
at that time.  This commit is BIT_CHANGING with the bug fix.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit fc1a13766333b94e05f14ffbbd1ebbc88393c58d by benjamin.andrew.stephens
CLUBB and pyplotgen changes:

1. Putting smoothing on thlm before the Brunt-Vaisala frequency calculation.  We find this helps smooth oscillations in that variable, see issue #894.  Also fixing spelling mistake in stats_zm_module.F90, and adding bv_freq_sqd to nightly_stats.in.  For all these reasons this commit is BIT_CHANGING, but only the thlm smoothing will change the physical results.

2. Pyplotgen:  I moved Brunt-Vaisala to VariableGroupBase.py so it should show up in the nightly plots, I got rid of VariableGroupTaus from the default Case definitions, and made a couple other minor changes including making the solid line thicker for standard CLUBB plots.
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit dc88808be3203de9536f2dbe34a77dc209d90338 by bmg2
I fixed the LMM stepping bug that was affecting E3SM (because
l_predict_upwp_vpwp is false over there) in advance_xm_wpxp_module.F90.
I also added it to all predictive fields.

The results in NetCDF output files from this revision is an exact match to the
results in NetCDF output files from the previous revision for all cases because
LMM stepping is turned off by default.
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit df97ac5bcdd52b069a9cc74f9321c3ffb5cc6981 by benjamin.andrew.stephens
This commit introduces a new flag, l_e3sm_config, which enables the user to switch on or off some of the changes introduced in connection with the E3SM merge (see commit https://github.com/larson-group/clubb/commit/cf5b2e4b80d8bd3ca411b9b5e6d5a2afece04795). It also introduces two new tunable parameters, C_invrs_tau_wpxp_Ri and C_invrs_tau_wpxp_N2_thresh, to replace two "magic numbers" in the code.  The primary code changes are in advance_clubb_core_module.F90.

This is a BIT_CHANGING commit due to the new parameters affecting the netcdf output but the physical results should remain the same for now.

See relevant issues #894 and #897.
The file was modified parameters_tunable.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 034049b46393a096da28099eef60ca5801a7f329 by noreply
Update parameter_indices.F90

Switching the order of two variables.  Was causing the values of these parameters to be reversed in some output files (but no effect on physical results).
The file was modified parameter_indices.F90 (diff)
Commit 3992f76b8f461365f321eddd00d1951c7540475a by noreply
Update model_flags.F90

Setting l_use_shear_Richardson to false in model_flags.in to be consistent with the default configurable_model_flags.in file.  This will ensure consistency with other nightly tests (eg WRF and SAM) that do not read configureable_model_flags.in.
The file was modified model_flags.F90 (diff)
Commit 13cf0163bb65ea786b232a7a4ebea978fe958d44 by benjamin.andrew.stephens
Adding new flag that allows the user to implement the TKE formulation of the wp3 C15 term (known currently as bp2, but ultimately will be called pr3).  See issue #884.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 217a6182be062dc94ac62d8880a181ec82011b97 by benjamin.andrew.stephens
Separating out the parameter C5 into C_uu_shr and C_uu_buoy, consistent with the formalism of Mironov and Machulskaya 2017. C5 has been effectively renamed C_uu_shr, and a new parameter C_uu_buoy has been introduced.  See https://github.com/larson-group/clubb/issues/901.

This commit is BIT_CHANGING, both because it will change the names of parameters output to netcdf, and because it changes the results of the more sensitive CLUBB test cases (like ARM_97), since there is an order-of-operations change involved in the subroutine "wp2_term_pr3_rhs" in advance_wp2_wp3_module.F90.
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 7e1baf2139189deaa6c2da15181bb8cdcf55c4b5 by bmg2
I am now passing vert_decorr_coef into SILHS instead of involving
a USE statement.
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 74bc7b14e4dea9c34e9d28071afac13e80a79e82 by benjamin.andrew.stephens
This commits further updates related to splitting the parameter C5 into C_uu_shr and C_uu_buoy (see this commit: https://github.com/larson-group/clubb/commit/3f75a27dd94673a2b8603c24b989da106e759b39).  Changes include correcting one instance where C_uu_shr was passed to a function when C_uu_buoy should've been passed, and also now applying the changes to up2 and vp2, which was overlooked before.  I've also updated the comments to remove, where appropriate, references to "C_5" that were missed before (in a few places I have left the C_5 in place but included a note indicating that it has now been broken up).

This commit is BIT_CHANGING, similar to the previous commit, because of the order-of-operations change in the pr2 term for up2 and vp2.  This leaves more stable cases like BOMEX bit-for-bit identical, but changes outcomes for more senstive cases like ARM_97.

See issue #901.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 4af03a62d94eec9f15856429b959b164e0c73d54 by benjamin.andrew.stephens
Adding a test to make sure new C_uu_buoy parameter is within the valid range. See #901.
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 405016e402e3fa788758ba73639fdd4c892e95ad by benjamin.andrew.stephens
This commit renames the wp3 budget term from "bp2" to "pr_turb", and renames the related parameter "C15" to "C_wp3_turb".  The majority of files changed are supplemental files such as postprocessing files for plotgen and pyplotgen and tuner files and input files.

This commit is BIT_CHANGING, but only because it renames a variable and a parameter.  Results should be bit-for-bit with previous results.

See issue #901.
The file was modified parameters_tunable.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7a13d2a715a4954d2fb1e1b2485f5f56026e7734 by bmg2
This will allow for a better interface of SILHS parameter
vert_decorr_coef with host model codes.
The file was modified parameters_silhs.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit 7bd738c4f823c16c0e3b7fe2e5eb25382dabd217 by bmg2
Fixed a preprocessor command.
The file was modified parameters_silhs.F90 (diff)
Commit 50254f89a49d5b72abedf72ac7356f92ced3aca5 by bmg2
I'm adding the api entry for read_silhs_parameters, called
read_silhs_parameters_api.
The file was modified silhs_api_module.F90 (diff)
Commit ad27d2d29f4e532b67fb52c8f075e3251403e9c6 by bmg2
Revert "I'm adding the api entry for read_silhs_parameters, called"

This reverts commit f2dc5c25386fd37bc1bf8ccff7844c66ee79ac36.
The file was modified silhs_api_module.F90 (diff)
Commit 9672d1836e6cf847d0ab804cd0782b3bc22c22ef by bmg2
Revert "Fixed a preprocessor command."

This reverts commit b349140012f53280aaf8294c1c3d6bc95f8d85b2.
The file was modified parameters_silhs.F90 (diff)
Commit 56af2a083547f0f5d0fc34ff2cd726898f19d8d4 by bmg2
Revert "This will allow for a better interface of SILHS parameter"

This reverts commit 47032b78a9fd8ddf19c30483abff933e099c9e43.
The file was modified silhs_api_module.F90 (diff)
The file was modified parameters_silhs.F90 (diff)
Commit bf77152b7ac0acae64e849466f25f2bf3ccf986f by bmg2
I updated silhs_api_module so that vert_decorr_coef is publically available
for some host models (e.g. SAM and WRF).
The file was modified silhs_api_module.F90 (diff)
Commit 4165ae0836d60e74a5eee2e1bf5f1be885a1ff6a by benjamin.andrew.stephens
Incorporating Shixuan Zhang's and Chris Vogl's "l_godunov_upwind_wpxp_ta" flag and related code.  The flag is set to false by default so results are unaffected.  See #902.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit bdc11caa173990eaf25cc2e91a95c472ab5a6abd by benjamin.andrew.stephens
Updating advance_xm_wpxp_module so that the upwp_pr4 term uses the parameter C_uu_shr instead of the hard-coded value 0.7. Also updating the value of C_uu_shr from 0.3 to 0.4 after testing priority-cases with the new upwp_pr4 term.

This commit is BIT_CHANGING.

See #901.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 63c8e9a172cdc920b1f49fd39aafc1f0503cc1a4 by Gunther Huebler
Moving the acc update host directive to after the wait directives in silhs. Since silhs runs with asyncronous kernel calls the update was occasionally happening before some clipping was finished, causing problems in assert_correct_cloud_normal. This is only a problem when compiling with OpenACC enabled, so it should be bit identical for all our tests. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 76c180d60652ae4e949b261d8ed4a196f14f312d by noreply
Update parameters_tunable.F90

Updating to match default tunable_parameters.in.
The file was modified parameters_tunable.F90 (diff)
Commit 0ad9f3a979d7ee40ab1ed902502468de4a46c2f6 by Gunther Huebler
Reording vertical and subcolumn dimensions in SILHS. This is BIT_CHANING in some cases, seemly due to an outputting error for the precip_rate field, but plotted results are identical. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified lh_microphys_var_covar_module.F90 (diff)
The file was modified math_utilities.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified output_2D_samples_module.F90 (diff)
Commit 0f7d70b05fdf184b57e9ceaa62e16b95da294835 by Gunther Huebler
Changing dimension order of rand_pool to make consistent with previous reorderings. This is BIT_CHANGING for silhs cases since it changes the order in which random numbers are used. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 76854dadc00cb0ece5d773ef7cc623bf83980d95 by Vince Larson
Changes non-success `stop` statements to `error stop`

Changes files in the src/CLUBB_core directory

larson-group/sys_admin#725
The file was modified parameters_tunable.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified saturation.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified input_reader.F90 (diff)
The file was modified calendar.F90 (diff)
The file was modified matrix_operations.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
Commit a4ddd4f89fffdfbf923b7b3d28c3e292777c24b4 by Vince Larson
Changes non-success `stop` statements to `error stop`

Changes files in `src/SILHS` directory

larson-group/sys_admin#725
The file was modified output_2D_samples_module.F90 (diff)
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit d985b8a9601d3a02a009424bcc801294b1eb0463 by 59519056+bstephens82
Adding Shixuan's godunov_xpyp_ta updates here in case we want to merge them into our master branch.  See #902.
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 8aebfdf2b109ec3d6fdc434375805fc1a4d6760a by benjamin.andrew.stephens
Turning on wp3 pr_turb term.

This commit sets C_wp3_turb=1 and l_use_tke_in_wp3_pr_turb_term=.true. and is BIT_CHANGING.

Also in the pr_turb term I have converted the wp2_zt outside the derivative to a wp2 (momentum levels) inside the derivative.

See #884.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit f9dd235e6cea6c1c32168b7122b2054d07838048 by rhodesk
Changed the variable up2_vp2_factor to up2_sfc_coef in all files
The file was modified surface_varnce_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 13d8c614dd9a7ab539ab349ebeab61758bb666ae by Vince Larson
I added an option to improve dry, convecting boundary layers.
The new option is triggered by setting l_vary_convect_depth=.true.
The option reduces the spurious surface spike in thlp2 in Wangara.

The option calculates the Deardorff convective velocity using
a variable estimate of layer depth based on the depth
over which wpthlp is positive near the ground.
thlp2_sfc is then diagnosed by assuming maximal correlation
between thl and vertical velocity, w.

Currently, l_vary_convect_depth is set to false,
and hence the answers remain BFB.

For #905.
The file was modified surface_varnce_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit e5caa86acac2277408322ef32ba0587ed9194fe3 by Vince Larson
This commit switches the names, but not the values, of the dp1 and pr1 variables for up2 and vp2.  In other words, up2_dp1 <---> up2_pr1 and vp2_dp1 <---> vp2_pr1.  This makes the terms in these equations more consistent with the terms in the wp2 equation.  I believe this commit is BIT_CHANGING since it will affect the values of these variables even though the nightly plot profiles should not change (but the budget plots would have these lines swapped).
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit df7d5489d978444c7ca8a4ae9cd9f6411d9f024f by rhodesk
Changed surface to sfc in all instances where requested
The file was modified grid_class.F90 (diff)
The file was removedsurface_varnce_module.F90
The file was modified stats_sfc_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was addedsfc_varnce_module.F90
Commit b963c2ef6d96de64d0efc4523c28aae810cd0b94 by noreply
Undid sfc change in stats_sfc_module.F90
The file was modified stats_sfc_module.F90 (diff)
Commit b47281e4a8aa2231716f381b9c11a2b2a6ad9ce2 by noreply
Undid sfc change to grid_class.F90
The file was modified grid_class.F90 (diff)
Commit ee6b3685c962fdd07d6c405a74bc22b2fed6cb12 by noreply
Undid sfc change in numerical_check.F90
The file was modified numerical_check.F90 (diff)
Commit 5a8b661e439baa46b7deabf6e7625a2a46dad188 by Gunther Huebler
Pushing grid column loop into setup_pdf_params. Adding iterface too, allowing us to call it with single or multiple columns so that the host models don't need updating to work with this change. This is bit-for-bit, tested with clubb_standalone and cam coarse res run. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 626a34a5add8859578c79290929d28b9a582a9c8 by Gunther Huebler
Broke up column loop inside setup_pdf_params. This is all bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit e1ca5e193a0a11a8ca9ddbdad6a1dcb99826dff7 by Gunther Huebler
Fixed typo bug. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 83811d1b6b9ea21bf7de99ca5a089c8f577ea1f0 by Gunther Huebler
Pushed down some more loops in setup_pdf_params. All bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 7d3c765381a54780d7afe18727357a13cf8f8902 by Gunther Huebler
More pushing loops down. All bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 8a392e2906267efd3cf17d2218d908bc642e2b65 by Gunther Huebler
More loop pushing. All bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 5eea93b439a4b65bd66ee2c99ea450c12700d465 by Gunther Huebler
More loop pushing. All bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit ddd03bfb9937fcf53449bd60f6daeab26a1c1a4e by Gunther Huebler
Adding comments explaining why component_corr_x_hm_n_ip uses corr_array_n_cloud twice. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 3dfd524a9fb317bb2ba2bc1144725e4e6b1303f9 by Gunther Huebler
More loop pushing, all bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
Commit 20d8d29a86a4bd146281a4e07fde77759bccaae5 by Gunther Huebler
Adding one_half to use statement. This was a bug preventing compilation when using the ifort compiler with the MKL functions.
The file was modified mono_flux_limiter.F90 (diff)
Commit 459d33c483a695d8c5280a668c77b1ca11e1b670 by Gunther Huebler
Moving use statement for one_half inside ifdef, since it is only needed if compilation with MKL functions is enabled.
The file was modified mono_flux_limiter.F90 (diff)
Commit 836ef0b2febf72beed7ee82884964687e6a40984 by Gunther Huebler
Reducing the number of calls to Cholesky_factor. This is bit-for-bit for all standalone cases and our coarse res version of cam. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 81f99a736be5ecab38c06863bced4837d694c08e by Gunther Huebler
Reordering dimensions of mu, sigma, corr_arrays, and cholesky matrices. This makes the dimension ordering more consistent with similar arrays and should help to reduce computational cost by reducing array slicing. This is all bit-for-bit. larson-group/cam#129
The file was modified clubb_api_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 6392e9cc0de299d0de9ce962ba5da5104b1a8756 by Gunther Huebler
Reordering dimensions of mu, sigma, corr_arrays, and cholesky matrices. This makes the dimension ordering more consistent with similar arrays and should help to reduce computational cost by reducing array slicing. This is all bit-for-bit. larson-group/cam#129
The file was modified transform_to_pdf_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit ca2f0784973138d286bb3bef8f26ac27e039fbef by Gunther Huebler
Performance improvements from chaning loop orderings and redundant operation reduction. All bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 06ffbc2944cd085910cc68344ca3646934145a93 by Gunther Huebler
Reordering dimensions on some arrays. This is bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 746f45a04d2e889f4feb1dfb69b0a7f5b19e04c2 by Gunther Huebler
Reducing operations. All bit-for-bit. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 0b60550541c0d76dcc5a42894822d0d3c4899b7c by Gunther Huebler
Adding 2D subroutine versions of some functions to improve performance. This is all bit-for-bit. larson-group/cam#129
The file was modified pdf_utilities.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 75c4cd9461c1cca785c96bb85d5bad923b308415 by Gunther Huebler
Some small cleanup, all just formatting. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 3dafc67dc7207d5794d9a4c66c095e7366e4afbf by rhodesk
Changed ustar from an array to a scalar issue #909
The file was modified advance_clubb_core_module.F90 (diff)
Commit 3c65841d1646f218145bbfc448e694e0b819c096 by rhodesk
Renamed Ri_zm to sqrt_Ri_zm and iRi_zm to isqrt_Ri_zm #909
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 083074dbb32c7c4fbee30f0ec93ee1108ad00f82 by rhodesk
Created new subroutine and ensured it's BFB. All cases run sucessfully #909
The file was modified mixing_length.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit cc9e3f188d62b243bb65dfea2082e7b22ad21f7c by rhodesk
added in missing flag which was causing memory errors #909
The file was modified mixing_length.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5630905cce78e4f538126d288ffeae5ebffb3bd7 by rhodesk
confirmed BFB with e3sam flag set to false and true, no other issues detected in mixing_length #909
The file was modified mixing_length.F90 (diff)
Commit 2838d3adef376202e2fcf4112c1ee43c94231c72 by noreply
Update stats_zm_module.F90

Removed units from description to eliminate redundancy.
The file was modified stats_zm_module.F90 (diff)
Commit bb689e837ad32290f9e7cac225a1266db2bed0f1 by Gunther Huebler
Adding dummy dimensions to calls to procedures that operate over 2 dimensions now, and remove 1D versions of those procedures. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit a8e1b1620d5ae765286eb6469fd893dc19b5e154 by Gunther Huebler
Separating precip fractions from hyrdromet_pdf_params and creating a type of it's own for it. This is bit-for-bit. larson-group/cam#129
The file was modified hydromet_pdf_parameter_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 8a23c35833576ef995f50fdaaff19c901989d351 by Gunther Huebler
Separating precip fractions from hyrdromet_pdf_params and creating a type of it's own for it. This is bit-for-bit. larson-group/cam#129
The file was modified silhs_importance_sample_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 9291cc6f06418e89d903e401f04caefe62ee7296 by Gunther Huebler
Formatting and condensing if statements. All bit-for-bit. larson-group/cam#129
The file was modified clubb_api_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 411f4fc5a1518d746b88dc254811231681d0a658 by Gunther Huebler
Making hydromet_pdf_params optional in setup_pdf_parameters. larson-group/cam#129
The file was modified clubb_api_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 5733151420dd3f25f57b270e0a6eb4c38e889ea8 by rhodesk
Reformatted mixing length to be more compliant with the coding standard #909
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit 9dbd2b39f631f080bb509e1dff6ee5eadb0aebea by rhodesk
added a reference to new subroutine #909
The file was modified mixing_length.F90 (diff)
Commit e32474f6f7a50bbc43c9352a829d8f51919fb254 by Gunther Huebler
Adding second dimension to allocatable arrays in pdf_parameter type. This also requires lots of dummy dimensions in clubb where pdf_params is used, since clubb only works over a single column, but silhs does not need such a dummy dimension. larson-group/cam#129
The file was modified lh_microphys_var_covar_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified est_kessler_microphys_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit 435b6db3c46b177b9001d80a01dc514a6d7d2108 by Gunther Huebler
Adding second dimension to allocatable arrays in pdf_parameter type. This also requires lots of dummy dimensions in clubb where pdf_params is used, since clubb only works over a single column, but silhs does not need such a dummy dimension. larson-group/cam#129
The file was modified numerical_check.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 33438476ecd7e056fa1c9acad479f9e5d0727538 by Gunther Huebler
Fixing lines that exceed 100 characters.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 2914cd2f18a991c5aac68c9e4decb9a671bdc24c by Gunther Huebler
Fixing lines that exceed 100 characters.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified input_reader.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit 6cccc97628f336e094482e6d6b8dd656918e5d1e by Gunther Huebler
Pushing loops related to pdf_params down. larson-group/cam#129
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit f1f64bdc39de16e140bec54e02a24bfd454349aa by rhodesk
clubb warnings introduced from merge have been removed #909
The file was modified advance_clubb_core_module.F90 (diff)
Commit c4b005c8774c7fcda4a675f93c5048e8763ddcb5 by rhodesk
Changed safeguard threshold in sigma_sqd_w.
This is BIT_CHANGING.
For ticket #917.
The file was modified stats_zm_module.F90 (diff)
The file was modified sigma_sqd_w_module.F90 (diff)
Commit 0ff19bb07774aa8f1428a14343d3011006c29fe2 by 59519056+bstephens82
Adding some new code that puts the diffusion term d(wp2*em)/dz into a new function, creates a new wp3 budget term (wp3_pr_dfsn), and adds that new budget term to pyplotgen.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit f45b1489eb4795f960dae317fe379c48a4fa12ab by 59519056+bstephens82
Adding new coefficient to control the wp3 pressure diffusion term.
The file was modified clubb_api_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
Commit 2bb6466cf7c606f404b75d87bdaa24c8a91f83bf by 59519056+bstephens82
Some minor updates to advance_wp2_wp3 relevant to the pr_turb and pr_dfsn terms.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit f31e107d90fe179831f51a9c36a6f2120ff92f5b by 59519056+bstephens82
Converting em*d(em)/dz to d(em^2)/dz in the wp3_pr_turb term and fixing a typo.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit 940e82e287987a4884a22037d10ec38837f137d4 by 59519056+bstephens82
Renaming C_wp3_turb --> C_wp3_pr_turb (BIT_CHANGING due to name change in netcdf output).

See #884.
The file was modified clubb_api_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
Commit de3c925f59bcfd893d04eb2855548136a17e351e by 59519056+bstephens82
These changes add the new fourth-order moment variables wp2up2 and wp2vp2 to the CLUBB code. This requires a new function in pdf_closure_module since they must be calculated separately with a new formula, and they are fed through into advance_wp2_wp3 for use with the pr_dfsn subroutine. They are also added to the standard stats file and will be output to netcdf, hence this commit is BIT_CHANGING.

The new variables are also added to pyplotgen as part of VariableGroupWs.py where wp4 is found.

See #920.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 3e4c7b2d0ba9402c006006c3743bcb9ed918ad4a by 59519056+bstephens82
Putting the wp3_pr_turb formulation back to its d(rho*wp2*em)/dz form.  This would be a BIT_CHANGING commit since it would change the answers for the pr_turb term. However once this branch is merged into the master branch, results should be bit-for-bit since this term was only modified in the alternate branch.

See #920.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 3c6fc8de1942c935d48433c37c2250ba655681e5 by rhodesk
Added intent comments for the following files:
advance_clubb_core_module, advance_helper_module, and advance_windm_edsclrm_module.
These changes are BFB.
For ticket #924.
The file was modified interpolation.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified calc_pressure.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
Commit 0799b154b8dd0feb9ebe8189be0f004b142d08a3 by benjamin.andrew.stephens
Removing "if" statement around calculation of wp4 in pdf_closure_module.F90 and the same "if" statement around some further manipulation of wp4 in advance_clubb_core.  Results are bit-for-bit with this change, since normally all cases calculate wp4 anyway since the "if" condition was always satisfied in normal runs (but not, for example, in some tuning runs).  This was done because the new wp3_pr_dfsn term needs wp4 in its current formulation so it needs to always be calculated.

See #920.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 4637d2f68f4d5b3fa73a677f17e83669b2d36334 by benjamin.andrew.stephens
Removing some "use" statement variables from advance_clubb_core, since they are no longer used here but are now used in mixing_length.F90.

See #909.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 4856129fd79896091b3eecfdcdaab73c812e607e by benjamin.andrew.stephens
Fixed comment regarding wp3 splatting term.
The file was modified advance_helper_module.F90 (diff)
Commit 9833dff319c94c1908ae15e112a800a3587f5df3 by rhodesk
Added intent comments.
For file advance_wp2_wp3_module.F90.
Results are confirmed to be BFB.
For ticket #924.
The file was modified clip_explicit.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 6559732d33be2ec8f4ebc58a5ec029d4549ccc35 by rhodesk
Added intent comments.
For the file advance_xm_wpxp_module.F90.
I also changed the order of arguments in certain arugment lists to conform to the coding standard.
Changes confirmed to be BFB.
For ticket #924.
The file was modified mono_flux_limiter.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
Commit d774cff18029de5cc9943c8ea83f4aded41df5b7 by rhodesk
Added intent comments for advance_xp2_xpyp_module.F90.
Additionally, I made changes to certain argument lists to better reflect the coding standard.
Changed confirmed to be BFB.
For ticket #924.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
Commit 7e0741b435d5318010ea92055b2329e08dba3418 by 59519056+bstephens82
Makes surface clipping of wp3 consistent with clipping aloft, per #921. This is BIT_CHANGING since it affects how clipping is applied near the surface.
The file was modified clip_explicit.F90 (diff)
Commit dbe9250e6217d60ef45b38553618402e151d939d by 59519056+bstephens82
Deleting comments around the old "magic number" for the near-surface clipping.

See #921.
The file was modified clip_explicit.F90 (diff)
Commit 332f11bd30bb9aaf57f218d7fe3769e2cc201670 by Gunther Huebler
Fixing fortran standards violation causing compiler errors with nvfortran. See larson-group/clubb#900 and larson-group/clubb#928.
The file was modified parameters_tunable.F90 (diff)
Commit 242a46454b543774c56a2c6b15b74b86eaf5b5bc by rhodesk
Changed some elements of clubb to allow for better script execution
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 153d245615688f92096d7ef460fb65d04f97571e by rhodesk
Fixed clubb not compiling
The file was modified advance_helper_module.F90 (diff)
Commit fdcdbc1e4834f13714c9d2a4464cd02dc410b032 by rhodesk
Feeding gr through the arg list where need only in the CLUBB_core dir.
Note, that since some of the functions/subroutines in CLUBB_core are
used elsewhere throughout clubb, other parts of clubb such as a file
in SILHS, and a few in the outer layer of the source folder needed to be
updated in order to reflect the changes.
However, everything outside of the CLUBB_core directory still uses use
statements in order to use gr from grid class.
For ticket #886.
All changes are confirmed BFB identical.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified calc_pressure.F90 (diff)
The file was modified new_tsdadg_pdf.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified LY93_pdf.F90 (diff)
The file was modified mean_adv.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
Commit b8be2708ee69c2ba48379def5c0cb16c852f3611 by rhodesk
Feeding gr through the arg list where need only in the CLUBB_core dir.
Note, that since some of the functions/subroutines in CLUBB_core are
used elsewhere throughout clubb, other parts of clubb such as a file
in SILHS, and a few in the outer layer of the source folder needed to be
updated in order to reflect the changes.
However, everything outside of the CLUBB_core directory still uses use
statements in order to use gr from grid class.
For ticket #886.
All changes are confirmed BFB identical.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 0b4086681549ba1ade7cd159f63992e231de132b by rhodesk
Reverted changes to clubb_api. For #886
The file was modified clubb_api_module.F90 (diff)
Commit ac4315a4656171d60e7612e105a31aa2bf108687 by rhodesk
Replacing use gr statements with feeding gr throught the arg list.
This commit is for slight improvement to the script in order to
better adhere to the coding standard.
For ticket #886.
Results confirmed to be BFB identical.
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified LY93_pdf.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit b2e07aedb378d4a517568df6fd3bad22c525cb10 by rhodesk
Adding proper indentation to needed files.
The purpose of this commit is to make the indentation uniform
across clubb in order to make script execution easier
for replacing gr occurances across clubb.
Related to ticket #886.
Results are BFB identical.
The file was modified mixing_length.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified new_tsdadg_pdf.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified input_reader.F90 (diff)
The file was modified matrix_operations.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified index_mapping.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified parameters_model.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified calendar.F90 (diff)
The file was modified endian.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified clip_semi_implicit.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified sigma_sqd_w_module.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified stats_lh_sfc_module.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified calc_pressure.F90 (diff)
The file was modified T_in_K_module.F90 (diff)
The file was modified LY93_pdf.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified sfc_varnce_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified saturation.F90 (diff)
The file was modified calc_roots.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
The file was modified mean_adv.F90 (diff)
The file was modified stats_rad_zt_module.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified stats_rad_zm_module.F90 (diff)
The file was modified Nc_Ncn_eqns.F90 (diff)
The file was modified hydromet_pdf_parameter_module.F90 (diff)
Commit 682a70d581028bc852664c1bae4c9691d120f87d by rhodesk
Fixing spacing issue on blank lines. #886
The file was modified advance_xp3_module.F90 (diff)
The file was modified endian.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified pdf_utilities.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified hydromet_pdf_parameter_module.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified stats_rad_zm_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified new_tsdadg_pdf.F90 (diff)
The file was modified parameters_model.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified calc_pressure.F90 (diff)
The file was modified index_mapping.F90 (diff)
The file was modified calendar.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified LY93_pdf.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified calc_roots.F90 (diff)
The file was modified T_in_K_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified sigma_sqd_w_module.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
The file was modified input_reader.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified saturation.F90 (diff)
The file was modified Nc_Ncn_eqns.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified stats_rad_zt_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_lh_sfc_module.F90 (diff)
The file was modified clip_semi_implicit.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified matrix_operations.F90 (diff)
The file was modified mean_adv.F90 (diff)
The file was modified sfc_varnce_module.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 68a2ab4afb0a6d86b78f100acfac6052fc613096 by rhodesk
Fixed comment changes. #886
The file was modified lapack_wrap.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified matrix_operations.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 24d2d6e02bddf69942f70e2e54d1955d9e52a184 by rhodesk
Fixed incorrect spacing on use
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5427e211e24f065ce2c7f82da5b8f69e33e35b8d by rhodesk
Revert "Fixed incorrect spacing on use"

This reverts commit 76d990d7b5c9eff30a359fbc4709d9278dc2eb2b.
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 2e02d7f843134d047e78118076171e3e13babb3d by rhodesk
Fixed spacing going too far
The file was modified mixing_length.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified file_functions.F90 (diff)
Commit d3b117d1c334e9f97273a15eac2f3f5527d6b000 by rhodesk
Fixed comments being pushed over
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified T_in_K_module.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit fe3ae735b4f499d039623a5ee0d772e084f6b8ac by rhodesk
Fixed not all variables being indented properly
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified file_functions.F90 (diff)
Commit a593cc9f999ce4cac08cfbe08b594786ce8dc423 by rhodesk
Fixed indentation going beyond variables
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified diffusion.F90 (diff)
Commit 9b945635dc114c5d74ed06a38fe5106b3e1be366 by rhodesk
Fixed file_functions indentation being off
The file was modified file_functions.F90 (diff)
Commit 1e40b9d5b6246903ec09aefb1bba47f234f1e42e by rhodesk
Fixed indentation on operations being wrong
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified diffusion.F90 (diff)
Commit e9a76e155c9e8c66eb17e0f27ffc04771b0d82d1 by rhodesk
Reverted incorrect changes to new_pdf and new_hybrid_pdf
The file was modified new_hybrid_pdf.F90 (diff)
The file was modified new_pdf.F90 (diff)
Commit 1651f274501bfb73675497070e4d5641d04411fa by rhodesk
Fixed spacing issue when adding in gr. BFB identical. For #886.
The file was modified saturation.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified new_pdf.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified new_tsdadg_pdf.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified Skx_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified turbulent_adv_pdf.F90 (diff)
The file was modified lapack_wrap.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified input_reader.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified clip_semi_implicit.F90 (diff)
The file was modified T_in_K_module.F90 (diff)
The file was modified calendar.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified matrix_operations.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified mean_adv.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_lh_sfc_module.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified parameters_model.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_rad_zm_module.F90 (diff)
The file was modified calc_pressure.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified endian.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified LY93_pdf.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified fill_holes.F90 (diff)
Commit e79fc26972ad2e909bf545778f1b42bbc2780b32 by rhodesk
Fixed spacing issue when adding in gr. BFB identical. For #886.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 7bda97ac8ad514e02e6e6ad3e2562d52d5c07142 by rhodesk
Removing gr as a module variable from grid_class.
gr is now a module variable in clubb_api_module.
This was done in order to not break host models.
Additonally, gr is now being fed through the
arg list of all functions and subroutines that use
gr within grid_class.
Results are BFB identical.
For ticket #886.
The file was modified calc_pressure.F90 (diff)
The file was modified pos_definite_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
Commit fc2e13eb263eb0cf9ac8e12f0a6965e6a01478ec by rhodesk
Removing gr as a module variable from grid_class.
gr is now a module variable in clubb_api_module.
This was done in order to not break host models.
Additonally, gr is now being fed through the
arg list of all functions and subroutines that use
gr within grid_class.
Results are BFB identical.
For ticket #886.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 8601df2406dafdfdf0d57a77067b9553dc19d6e9 by benjamin.andrew.stephens
Fixing typo in stats_zm_module.F90.  Background:  Since this commit https://github.com/larson-group/clubb/commit/466c5383fa5c0cc85316c6d117826974a5e2e0a3# in August 2020 the upwp budget lines in Pyplotgen have not appeared to be balanced for any cases.  It turns out the reason is that a comma and space were added to the upwp_tp variable name in stats_zm_module.F90 in the August 2020 commit.  This unusual naming causes pyplotgen not to recognize this variable, so it doesn't get plotted and the lines appear unbalanced.  However, since the budget balance test still found the variable, it kept passing successfully.  This commit will fix the issue with the pyplotgen plotting by reverting the name to the standard format.

This is BIT_CHANGING since it will affect the name of the upwp_tp variable in the X_zm.nc netcdf file, but it will not change results.
The file was modified stats_zm_module.F90 (diff)
Commit 1978bbce511f3b7a9631d61a8c1028bf2072bfbf by noreply
Fixing a typo from an earlier commit.

See comments in this other commit where a similar typo was fixed: https://github.com/larson-group/clubb/commit/a4f5f736cb16168f40fdc01e454930ffa05fbb4d.
The file was modified stats_sfc_module.F90 (diff)
Commit 09858d30f6551ef8ad290e02deecf27b321befd8 by rhodesk
Feeding gr through arg list for functions outside of CLUBB_core.
Gr has been removed as a moduler variable from clubb_api_module
and has been moved to clubb_driver as the top level moduler variable.
There is only one instance where a use clubb_driver gr statement is used
and that is within clubb_tuner.
Results are BFB identical.
For ticket #886.
The file was modified clubb_api_module.F90 (diff)
Commit 24bc6821388ce95985f023733ada790ec1843778 by rhodesk
Feeding gr through arg list for functions outside of CLUBB_core.
Gr has been removed as a moduler variable from clubb_api_module
and has been moved to clubb_driver as the top level moduler variable.
There is only one instance where a use clubb_driver gr statement is used
and that is within clubb_tuner.
Results are BFB identical.
For ticket #886.
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 7c6ca69bbc46a81d7689d02bc7e50835713e1d31 by rhodesk
Moving 'gr' from front of arg list when being used as intent(inout) to conform to standard. #886. BFB.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 5127df88dd9725018f5dbf4097192088202d7da9 by rhodesk
The purpose of this commit is to see whether or not causing changes in sam's version of clubb will cause errors when the master branch of clubb gets merged intosam. Please ignore this commit unless everything breaks, in which case this is the reason why everything is broken.
The file was modified clubb_api_module.F90 (diff)
Commit a147663e583384f9f1a925770aecadc6225554d5 by noreply
Add error header for CLUBB in CAM
The file was modified error_code.F90 (diff)
Commit cd3da20176118cbba413ee8f49edca31bce4bbc4 by rhodesk
Fixing the ordering of gr in the clubb_api arg list for affected subroutines.
Additionally, this commit removes the clubb code standard violation of exceeding more the 100 characters per line.
Lastly, the grid typing is being added to clubb_api_module as a public variable so that the host models have access to the type without having to bypass the api
For ticket #886.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit fd4054ccb17b0f17e0f1b05021ef24866c9f9952 by rhodesk
Fixing coding standard violations
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit 479e56bfbcbe71564edb1b1c2b123c95e740a717 by Gunther Huebler
Improving error messages in setup_clubb_core. larson-group/e3sm#38
The file was modified advance_clubb_core_module.F90 (diff)
Commit 0295787fe7c55013beb522ef0d58f0d429b03a90 by 72510114+RhodesKeegan
Feeding stats variables through the argument lists of needed subroutines.
The purpose of this commit is to prep clubb for having all stats variables be
fed through the argument list in the entirety of clubb and host models where needed.
This is for ticket #733.
Results have been confirmed to be BFB identical.
The file was modified mono_flux_limiter.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified stats_rad_zt_module.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified stats_rad_zm_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
Commit 6eef92139f3e787d4c6b2fe9759ab350e749be9f by 72510114+RhodesKeegan
Fixing spacing issues along with placing the stats varibales on their own lines.
Additionally, this commit relabels arg list intent along with the intent of stats vars.
Stats variables are still not in the correct spot in the arg list as per the standard,
however, they are on their own line where they are correctly labeled.
For ticket #733.
Results are confirmed BFB identical.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_rad_zt_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified stats_rad_zm_module.F90 (diff)
Commit d5fbfd0ad95031e40271cc6c706122f1565d2924 by 72510114+RhodesKeegan
Changing more subroutines to include stats vars in their arg lists.
There were a few subroutines that were not detected on the first script
for subroutines that would need to be changed. This commit picks up on
those subroutines and correctly makes the change.
Additionally, this commit also makes the stats vars show up in the same
spot consistantly throughout all affected subroutines.
For ticket #733.
Results are confirmed BFB identical.
The file was modified mono_flux_limiter.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_lh_sfc_module.F90 (diff)
Commit 77d0af2a8bf800247ce6384510b37642d5eb147c by 72510114+RhodesKeegan
Fixing incorrect subroutine arg list
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit d13ff64ce37dfe05703c7f5feca642a0d7929461 by 72510114+RhodesKeegan
Fixing host models not compiling.
Host models now compile.
For ticket #733
Results remain BFB identical.
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit ccebf94a0df8e2ea3c8aed4a2f5310abcf23976b by 72510114+RhodesKeegan
Fixing argument list so that way the coding standard is upheld.
For ticket #733.
Results remain BFB identical.
The file was modified stats_lh_sfc_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified stats_sfc_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified stats_rad_zm_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_zm_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_rad_zt_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
Commit 3521e3a711eb77add3f4e847ccb466c1a202b91e by bmg2
I changed the name to calc_responder_driver because I thought that
calc_responder_var_lev (which it had recently been changed to) wasn't
very fitting.
The file was modified new_hybrid_pdf_main.F90 (diff)
Commit 9804df96e177cde81e75b0c5a8e58b7d7425564a by 59519056+bstephens82
Code changes to introduce wp2_pr_dfsn, the wp2 pressure diffusion term, consistent with Lumley 1978.  Related to #920.

This is BIT_CHANGING, but only because it will introduce some new output variables in the netcdf files.  It will not affect results currently since the pressure diffusion coefficient is set to zero.
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit c65a56c6e983570429eb26e39c141632068f8c6c by 59519056+bstephens82
Fixing comment for the wp2_term_pr_dfsn subroutine.  Related to #920.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 467f228ea4cef740a258bb2161503c2cfcfffb21 by 59519056+bstephens82
Updating wp3 pressure diffusion term to be consistent with the Lumley 1978 formula for the perturbation pressure. For #920.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 98f49a6825f2babc94b700d70e39e0539a7cc254 by 59519056+bstephens82
Making requested changes to the wp2 pressure diffuion additions, including correcting some grid-level related issues.  Related to #920.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 523614e1b29f4f63efa12eec0e45bb586811122a by benjamin.andrew.stephens
Correcting a typo bug and adding some descriptive comments to two new variables.  This is a BIT_CHANGING commit becuase it will affect the newly calculated variables and descriptions in the output files, but it won't affect any plotted results. Related to #920.
The file was modified stats_zt_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 0a931b874d79ba2f749da6be1c80f9be039388eb by 72510114+RhodesKeegan
Moving the stats variables to module variables of clubb_driver.
This change means I had to modify clubb_api_module's arg list
along with other arg lists throughout clubb.
Everything compiles and results remain BFB identical.
For ticket #733.
The file was modified clubb_api_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit bad9a3eb391637b1ff6c9df434e237e1088b10df by 72510114+RhodesKeegan
Moving the stats variables to module variables of clubb_driver.
This change means I had to modify clubb_api_module's arg list
along with other arg lists throughout clubb.
Everything compiles and results remain BFB identical.
For ticket #733.
The file was modified silhs_api_module.F90 (diff)
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 82f133b444e8397d161e498331b5cbaefbb1a992 by rhodesk
Fixing coding standard viloation of lines exceeding 100 characters.
Violations were introduced as a result of changes made by ticket #733,
this commit resolves the coding standard violations.
Results BFB identical.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit be45e7398fb94d31cb5e3b967809bc3652bd2a45 by rhodesk
Fixing coding standard viloation of lines exceeding 100 characters.
Violations were introduced as a result of changes made by ticket #733,
this commit resolves the coding standard violations.
Results BFB identical.
The file was modified silhs_api_module.F90 (diff)
Commit bd7552a5cd558f1086549641269ef5391cf585b9 by 59519056+bstephens82
Adding wp3_pr_tp (aka "negative nose" term) to wp3 equation.  Related to #920.

This is not set up to change results currently, since the coefficient of the new term is zero, but it is BIT_CHANGING since it will include new output in the netcdf files.

Also includes updates to pyplotgen to accommodate the new term.
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified parameter_indices.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit b8bad9e4a98d18e532dddc063856d55cd1456ab4 by 59519056+bstephens82
Changing the way the new wp3_pr_tp term works, by generalizing the wp3_terp_pr_lhs subroutine.  Also cleaning up comments and changing the description of the wp3_pr_tp variable in the netcdf output files, hence this commit is BIT_CHANGING, although it will not affect numerical results since the wp3_pr_tp coefficient (C_wp3_pr_tp) is set to zero.

Related to #920.
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit 34cf74a954230451ecf06007e9b5dd8ead72c8a3 by rhodesk
Removing l_interp_prescribed_params from setup_clubb_pdf_params.
The flag has been removed and so has any code underneat a logic statement
involving this statement unless it has multiple flags. The else statement
in the if block involving this flag has been set to execute without an
if block.
For ticket #916
Results are BFB identical. Additionally, complex logic statements
with the use of more flags had those flags adjusted and BFB results
were also confirmed with these changes.
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit e4741e2adf4b6cc29301ba7945131193798c89fa by rhodesk
Adding comments labeling subroutine calls with intent.
Goes all the way up until stats_clubb_utils.
BFB identical.
For ticket #942.
The file was modified stats_zm_module.F90 (diff)
The file was modified stats_rad_zm_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified code_timer_module.F90 (diff)
The file was modified mt95.f90 (diff)
The file was modified sfc_varnce_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified fill_holes.F90 (diff)
The file was modified clip_semi_implicit.F90 (diff)
The file was modified matrix_operations.F90 (diff)
The file was modified pdf_parameter_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified mono_flux_limiter.F90 (diff)
The file was modified input_reader.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified file_functions.F90 (diff)
The file was modified stats_rad_zt_module.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified interpolation.F90 (diff)
The file was modified corr_varnce_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified sponge_layer_damping.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified advance_xp3_module.F90 (diff)
The file was modified calendar.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit fb672a147e82517a40817f2c816018783e114653 by rhodesk
Adding intent labels for subroutines throughout clubb.
All calls to subroutines now have intent comments next to them
all the way up through stats_sfc_module.
Results are BFB identical.
For ticket #942.
The file was modified stats_rad_zm_module.F90 (diff)
The file was modified output_grads.F90 (diff)
The file was modified stats_lh_sfc_module.F90 (diff)
The file was modified stats_rad_zt_module.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified stats_lh_zt_module.F90 (diff)
The file was modified output_netcdf.F90 (diff)
Commit dea9cab76b9e14a4f3139dbeaf18de3ca9652609 by noreply
Removing unnecessary constant from use statement
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit dc17ecf04d73f6aa9fbb48fb7a83cc77b1ad386d by rhodesk
Eliminating l_nu_grid_dependent as requested.
For ticket #926.
Results are BFB identical.
The file was modified parameters_tunable.F90 (diff)
Commit c22a22b3ba84044037834f62a458b81b02f63794 by rhodesk
Eliminating l_use_buoy_mod_Km_zm.
For ticket #926
if we use a buoyancy-modified expression for Km_zm.
Results are BFB identical.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 0e8980b576ec718cf4b7247695ec1f1dc9b70c60 by rhodesk
Eliminating l_iter_xp2_xpyp flag.
For ticket #926.
Results are BFB identical.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit bafa3df6283a00134563e5b093f72e304e3352ba by rhodesk
Eliminating l_apply_rule_to_pdf_params flag.
For ticket #926.
Results are BFB identical.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 80351a9f31586a6da5e46acb59fd423b2d1c0944 by rhodesk
Eliminating l_ub_const_deriv flag.
For ticket #926.
Results are BFB identical.
The file was modified mean_adv.F90 (diff)
Commit 5861ea0ed9217c2525090a2f50d4158a97da5a93 by rhodesk
Eliminating l_equation_21 flag.
For ticket #926.
Results are BFB identical
The file was modified interpolation.F90 (diff)
Commit 1725bbe1b3bd91c664ab406db4e94866accbc0cc by rhodesk
Eliminating l_wp3_2nd_buoyancy flag.
Code surrounding the flag is still present.
For ticket #926.
Results are BFB identical.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 895a8f6e2d8b44c47b7f4b8a0b439beafa482b8f by rhodesk
Eliminating l_refine_grid_in_cloud and l_interactive_refined.
For ticket #926.
Results are BFB identical.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7cbdaaf3133b7eedf3a9cdd66e1be178a62c3af2 by rhodesk
Eliminating l_use_experimental_term_pr2 and l_use_vert_avg_winds
For ticket #926
Results are BFB identical.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit a17efb420b3b5c93d2ca5d39e14d36732c3b1a2a by rhodesk
Eliminating l_use_wp3_pr3 flag.
For ticket #926.
Results are BFB identical.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 924185803f23f0b081f3719fd41a3396b4753a2a by rhodesk
Eliminating l_clip_semi_implicit flag.
For ticket #926.
This commit is BIT_CHANGING due to how the flag needed to be removed.
More details on why this commit is bit changing can be seen on the ticket page.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified output_netcdf.F90 (diff)
Commit 52350475884c0c6da4817a725a99ad5746b017f1 by rhodesk
Adding intent labels for subroutines throughout clubb.
Remaining files now have intent comments for subroutines.
Additionally, all lines are now less than 100 characters.
For ticket #942.
Results are BFB identical.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified numerical_check.F90 (diff)
The file was modified stats_type_utilities.F90 (diff)
Commit 51022e222d451e836733546815b8f88995c534fe by 72510114+RhodesKeegan
Eliminating l_single_C2_Skw flag.
Additionally, this commit also eliminates C2, C2b, and C2c.
Since the flag along with the other variables are output to the .nc files,
this commit will be BIT_CHANGING since these variables no longer exist.
This is for ticket #926.
The file was modified parameter_indices.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 35ae5cdc76bf5d0be3bc8e6e8b0fe2b3d9f7d1e6 by 72510114+RhodesKeegan
Eliminating l_single_C2_Skw flag.
Additionally, this commit also eliminates C2, C2b, and C2c.
Since the flag along with the other variables are output to the .nc files,
this commit will be BIT_CHANGING since these variables no longer exist.
This is for ticket #926.
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
The file was modified output_2D_samples_module.F90 (diff)
Commit 0154499867b83b4b920a9a873e563f80b10b0606 by rhodesk
Eliminating l_include_ice and sat_ice_ratio.
For ticket #926
Results are BFB identical.
The file was modified mixing_length.F90 (diff)
Commit 87fade11eec9686b269aed00bb9e08fd131fafe4 by rhodesk
Eliminating l_update_pressure flag.
For ticket #926.
Results are confirmed to be BFB identical.
The file was modified model_flags.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 83e7c97e95b713f89982fc94a9a5247d112a1cc9 by rhodesk
Eliminating l_upwind_wpxp_ta flag.
For issue #926.
Results are confirmed BFB identical.
The file was modified model_flags.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 8a6392b854e8b0d8c8b72f94aa18dce014c77b6b by noreply
Updating the surface clipping coefficient...

...to avoid MC3E failure with PGI compiler.  I find all cases run successfully with this coefficient, with ifort, gfortran, and PGI.
The file was modified clip_explicit.F90 (diff)
Commit cebe3ad6391c3d2ba0720cbe910b43c78b9ef0f6 by 72510114+RhodesKeegan
Adding in l_vary_convect_depth as requested.
For ticket #905.
Results are confirmed to be BFB identical.
The file was modified model_flags.F90 (diff)
The file was modified sfc_varnce_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit b24820513db462e4a5b1cae18b4a901d7e9bd8a2 by noreply
Removing a couple of unused parameters from use statement.

These are not caught by the gfortran compiler for whatever reason but the ifort compiler warned about them.
The file was modified advance_clubb_core_module.F90 (diff)
Commit ed78e345853d9af1f71e7300220392469b690b67 by rhodesk
Pushing k loop down through clip_variance_level.
This change is for the files advance_wp2_wp3_module and advance_xp2_xpyp_module.
In order to make this change, I added a new variable in the upper-level subroutine
that is an array version of the variable 'threshold' and passed it along to the lower subroutine.
The loop is still present in order to calculate the values of threshold, however, the calls
to the subroutine is outside of the loop. The only calculations inside the loop is for
and intrensic function, max.
All results are BFB identical for default case along with l_stats_samp being set to true.
For ticket #951.
The file was modified clip_explicit.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 747e30bcbd918a4dde0b1491b3ebfeaebdac9b59 by 59519056+bstephens82
Udpates to make it possible for us to keep certain parameters equal to each other during tuning.

Includes:

* a new subroutine in parameters_tunable.F90 that will read a new namelist in the error_*.in files
* updates to src/error.F90 to make sure the intended parameters are held equal throughout the tuning run
* updates to src.error.F90 to print the variables that were held equal at the end of the tuning run, together with their beginning and ending values, and updates to ensure that the new tuned values are copied into the new paramters_tunable_*.in file so they can be used for plotting or restarting the tuner.
* includes several simple error checks

See #939.
The file was modified parameters_tunable.F90 (diff)
Commit c787271c923e08a7bfa8db303bfee6588f840abf by 59519056+bstephens82
Further tuner updates.  These updates introduce the option to give a minimum value for tuned parameters.  Error checks are included.

See #939.
The file was modified parameters_tunable.F90 (diff)
Commit 68848116981910e70725c5fcc14d78e78f3f87ed by 59519056+bstephens82
Updating some comments related to the tuner updates.

See #939.
The file was modified parameters_tunable.F90 (diff)
Commit ecf50b7dd71b99418e7b378199bec3f540f9ab8f by bmg2
I have passed clubb_params down into advance_xm_wpxp_module.F90.

The results from this revision are an exact match to the results from
the previous revision for all cases.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit ed5bed1dc8054413f5792e6d3abe64789523d730 by Gunther Huebler
Adding space to trigger autoupdate. larson-group/sys_admin#755
The file was modified advance_clubb_core_module.F90 (diff)
Commit a7a1f100a8a3938b9a1717165b7daa1a6858c514 by noreply
Remove space to trigger autoupdate. larson-group/sys_admin#755
The file was modified advance_clubb_core_module.F90 (diff)
Commit 579ae7bf3eba658a981d771ded27f16906ed7896 by noreply
Add space to trigger nightly tests.  For larson-group/sys_admin#755.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 3f4274296a097f61485983e5106c648014382114 by bmg2
I am fixing a bug that was introduced in 6b0348e, where the logical
flow was distorted within the trapezoidal rule code.

This change does not affect standard CLUBB, where the trapezoidal
rule is not used by default. However, it is important for CAM-CLUBB.
The file was modified advance_clubb_core_module.F90 (diff)
Commit b33af07b27883cd48fed63d9fa1557d3b2d4464d by bmg2
I have passed down CLUBB's tunable parameters into advance_wp2_wp3_module.F90.

The results in NetCDF output files from this revision are an exact match to the
results in NetCDF output files from the previous revision for all cases.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit f743922fbd8e78ed86270101cb28dbcbb5f5c0f7 by jan.gruenenwald
added some documentation in pdf_close_module.f90 and started writing of w_up_in_cloud to disk
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit 0f9530e65dbeccc6103c09e4497072ffef4fbf36 by 59519056+bstephens82
Updates to separate out C4 and C14 in advance_xp2 module.  This will make it easier to control which invrs_tau_* variable multiplies each term for example.

This commit is BIT_CHANGING owing to order of operations differences, but the pyplotgen output for most cases looks identical to the naked eye.
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 4a3fe3288e95f3ff0042b328a2221113baa445a8 by 59519056+bstephens82
Changing the name of dummy_1d variables for clarity.
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 724a970d8e0b0977d63512e25c4462d260039290 by bmg2
I passed down CLUBB's tunable parameters into advance_xp2_xpyp_module.F90
for most parameters, excluding C4 and C14. Results are unchanged.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 860a184b28c1e3889801dfc39a1c96768fd87046 by noreply
Add a blank line to trigger nightly tests.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 9ac836f8b76e39e820b5fecaae969f70a7b39c21 by bmg2
Passing down more of CLUBB's tunable parameters.
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7b950575ac2c00c63de42c11f33c459e649af028 by bmg2
I accidentally removed an important comment in the previous commit.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 835d3d3155f98b2a9b6ba60cb9fa02a94fb7800b by bmg2
Passing down more CLUBB tunable parameters.

Everything is bit-for-bit.
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
Commit b65e4cfa8ab2923db015ef2723e3e69071d2c83c by bmg2
More passing down CLUBB parameters ... whoop-de-doo
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 351cc9aa27aa212ef6cefb48b6c85ec601a993b0 by bmg2
Passing down more tunable parameters and removing references to
parameters_tunable. Results are bit-for-bit.
The file was modified Skx_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified diagnose_correlations_module.F90 (diff)
The file was modified sfc_varnce_module.F90 (diff)
Commit 3c883d2e41e77b89ea758961d5e11ac577a1fa82 by noreply
Removing line to trigger the nightly tests for all repos.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 24ab4b2089583ab183efc1963c23fb3153fd2048 by jan.gruenenwald
See respective messages on the issue 958 on date 10/12/2021
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 40e87490f501202d6d95e7fd2c9c2ccab164ab73 by bmg2
Handling the abomination that is lmin.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit db7584133b87452bedc0538fed00f339dca49ae3 by benjamin.andrew.stephens
Commented out the k=1 boundary conditions in diffusion_zm_lhs and diffusion_zt_lhs, since these are not currently fed into the final LHS matrix.  I included comments to describe why this was done.  Results are b4b.

See https://github.com/larson-group/clubb/issues/920#issuecomment-942735433.
The file was modified diffusion.F90 (diff)
Commit c8cadb5e9708e898ac688db79e1da0ec0ff2ad29 by bmg2
Passing tunable parameters into the new tau code.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit e6aa931ab2aa8134704c137db183ec06ee9dfcee by bmg2
Passed down more parameters. Results are bit-for-bit.
The file was modified mixing_length.F90 (diff)
The file was modified clip_explicit.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit d07f2f6c2df3af24ddc90862bc2a656bdd9015d5 by bmg2
Passing through more clubb parameters. Bit-for-bit
The file was modified parameters_model.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 704eedf20b71e552fe32df3633005d50af58c27f by bmg2
Passing down CLUBB's tunable parameters into the setup_pdf_parameters and
precipitation fraction portions of the code. Everything is bit-for-bit.
The file was modified clubb_api_module.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 2ee6d2a1e31e43bca3e03a406917c4454cb71e67 by benjamin.andrew.stephens
These updates incorporate some of Shixuan Zhang's changes, including:

(1) upwind scheme for the eddy diffusion code, which Shixuan says does not make a huge difference; and
(2) l_smooth_heaviside_tau_wpxp flag in the mixing_length.F90 code, which is intended to give
smoother results.

Both of the flags for these changes are turned off, but these updates are BIT_CHANGING because
of some minor changes to the way that factors of rho_ds_* and invrs_rho_ds_* are handled going
into the diffusion.F90 subroutines.  Most cases look identical in pyplotgen, but sensitive cases
like arm_97 and rico look slightly different.

These changes were originally in pull request #962, but because of conflicts with the master
branch code base that developed, they could not be rebased and merged, so I incorporated them
into this new commit.
The file was modified mixing_length.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 62d364561a81e2b878f95a327df36a4ca4bc3149 by bmg2
Passing down CLUBB's tunable parameters into the remainder of the
PDF subroutines. Everything is bit-for-bit.
The file was modified new_hybrid_pdf_main.F90 (diff)
The file was modified new_pdf_main.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 40315247ab8dc38382642bf30f1d96b329c1304d by bmg2
I passed down the forgotten thlp2_rad_coef tunable parameter.
All bit-for-bit.
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 59c90454cd1a93522940f998c123795db4f23b17 by benjamin.andrew.stephens
Uncommenting diffusion.F90 k=1 lines again to fix Oracle uninit var test.  I've updated the accompanying note to state clearly that the lines have no effect on model output, but I guess we need to keep the lines to avoid uninitialized variables.
The file was modified diffusion.F90 (diff)
Commit 24592ec9879d2c704c4d7301c8d18c794f2ff744 by bmg2
I am passing down the forgotten parameter, altitude threshold, in
advance_xm_wpxp_module.F90.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit bda6b42375dfc09907e7f9b37719b0d149f45671 by 59519056+bstephens82
Adding code wrapped in a flag (l_use_tke_in_K_dfsn) to use u_i'u_i' in the wp2 and wp3 eddy diffusion terms, instead of just wp2 or wp3.  Relevant to CLUBB issue #920.

Results are b4b when the flag is turned off, which it currently is.
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit fecf90bda798d6330f0c3982e5f24ef5dce274a3 by 59519056+bstephens82
Updates as requested to the l_use_tke_in_K_dfsn code:

- The name of the flag is changed to l_use_tke_in_wp2_wp3_K_dfsn
- Comments are added to the main pieces of code in advance_wp2_wp3
- The flag is added to the "compatible_r8029" configurable flags file.

See this comment https://github.com/larson-group/clubb/issues/920#issuecomment-931446401 and following for more information.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 48d34a44dac4e6c069b8edf7484da102a7b3e03c by bmg2
I am committing the final stage of the "pass-down params" project.
The results are bit-for-bit identical.
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified output_netcdf.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit a59d8a9d971fa58d96ca0c7c0e3a899990339401 by bmg2
I am committing the final stage of the "pass-down params" project.
The results are bit-for-bit identical.
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified output_2D_samples_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit e21f33631a9962fc7af096d0f7c4a7a3f6ff021b by 59519056+bstephens82
Adding an option to use invrs_tau_N2_iso for C4 terms.  The same invrs_tau had been used for C4 and C14 terms, so some adjustments had to be made to separate them out (this was started with an earlier commit: https://github.com/larson-group/clubb/commit/ef3be1b1378bcd1a447f3866c9f88f8cc4764233).  The flag is currently set to false so results will be b4b.

See also the discussion here: https://github.com/larson-group/clubb/issues/920#issuecomment-920338746 and following comments.
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
Commit 575d6fe14ed80295cce4f30a51ff3d6aac83b5ee by 59519056+bstephens82
Renaming invrs_tau_zt and invrs_tauw3t to "invrs_tau_wp3_zt" in advance_wp2_wp3 to avoid confusion.  This variable is only used for the wp3 C8 term, so one consistent name is simpler, and the name "invrs_tau_zt" is already used by another variable in advance_clubb_core.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit b1a5dc605454ba0bd6ce90b50c1b1c4e5238daa2 by 59519056+bstephens82
Adding comments for clarity.
The file was modified mixing_length.F90 (diff)
Commit 3cc2a48057cff47763a8de0fc7a9c2d6bd171782 by bmg2
I forgot to add this necessary subroutine call to the clubb API.
The file was modified clubb_api_module.F90 (diff)
Commit 43b0e9b176c2c5f8d2537b61e1f1781a14787896 by benjamin.andrew.stephens
Fixing a minor accounting bug related to the changes in https://github.com/larson-group/clubb/commit/987d63de489d2baa09ad6e1538b2c6dbb7551690.  There was some overcounting of the relevant terms.

Results are b4b since the l_use_tke_in_wp2_wp3_K_dfsn flag is false.
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit 0c99971894e34f471bb13a0608799da3e26fd75b by bmg2
I have turned the nu_vert_res_dep family of variables into a derived
type and that variable is now being passed throughout the CLUBB code,
rather than accessing variables through a USE statement.

Everything is 100% bit-for-bit!
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified diffusion.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_xp2_xpyp_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
The file was modified parameters_tunable.F90 (diff)
Commit 5aad62fb6b44998c8eeea4e274d53e9f5b6fda2a by jan.gruenenwald
Added sam file name to DYCOMS_RF02_DO case, fixed the clipping in calc_w_up_in_cloud in pdf_closure_module.f90, and changed long name of w_up_in_cloud in stats_zt_module.f90
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
Commit 0918704e4ca667f2dd901df9481fcab6d04ad559 by jan.gruenenwald
Resolved any issues in the pull request. See https://github.com/larson-group/clubb/pull/970 for details
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 81d326f9c04198f2635a6b56b25bc395da741435 by jan.gruenenwald
Included a check in pdf_closure_module.f90 to check if flag for iw_up_in_cloud is set. Removed iw_up_in_cloud from standard_stats.in to prevent binary diffs in CLUBB output files after merge
The file was modified pdf_closure_module.F90 (diff)
Commit dc3c4b8f58acb3383731109218706676f789be07 by jan.gruenenwald
fixed a typo in pdf_closure_module.f90, line 1284
The file was modified pdf_closure_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit a75256d61b53e5e09ec2e386790c89d4e51f0472 by 68997723+JanGrn
added some documentation in pdf_close_module.f90 and started writing of w_up_in_cloud to disk
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_clubb_utilities.F90 (diff)
Commit a83e91f008656f68d7535574cd90be52d82dd50f by 68997723+JanGrn
See respective messages on the issue 958 on date 10/12/2021
The file was modified stats_clubb_utilities.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified stats_zt_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified stats_variables.F90 (diff)
Commit 0ba99cd44f06718d995fadd8eacb1b6b191c8cf5 by 68997723+JanGrn
Added sam file name to DYCOMS_RF02_DO case, fixed the clipping in calc_w_up_in_cloud in pdf_closure_module.f90, and changed long name of w_up_in_cloud in stats_zt_module.f90
The file was modified stats_zt_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit f4f26820fd4d03cd818e862b342716e11ea0c673 by 68997723+JanGrn
Resolved any issues in the pull request. See https://github.com/larson-group/clubb/pull/970 for details
The file was modified pdf_closure_module.F90 (diff)
The file was modified model_flags.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 2b90c415701478f497ef1b01769bff21fd75e46a by 68997723+JanGrn
Included a check in pdf_closure_module.f90 to check if flag for iw_up_in_cloud is set. Removed iw_up_in_cloud from standard_stats.in to prevent binary diffs in CLUBB output files after merge
The file was modified pdf_closure_module.F90 (diff)
Commit e235fe78eae6527a511973ecdc46aaa4cb2b2379 by 68997723+JanGrn
fixed a typo in pdf_closure_module.f90, line 1284
The file was modified pdf_closure_module.F90 (diff)
Commit a3f3633376a9a95a1ddbab690425c6b71a4efbff by bmg2
Passing w_up_in_cloud out of advance_clubb_core
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit e1572555370199b4fe0abf791462f1a0830a22f7 by jan.gruenenwald
fixed compiler warning regarding w_up_in_cloud
The file was modified stats_variables.F90 (diff)
Commit fcf74be3a201e5043cabaad104cc37cdbb8c0e9d by noreply
Remove clipping from a3_coef.

In principle, removing the clipping should reduce noise.
In practice, it makes rico noiser but mpace_b less noisy.
It also allows twp_ice to run to completion with the gfortran compiler.

This commit is BIT_CHANGING.

For #965.
The file was modified advance_clubb_core_module.F90 (diff)
Commit fe10a3988ec9c5ae38f9a6521364e5114303dc97 by Brian Griffin
These changes allow you to call the 4 clubb "advance" subroutines in any
order that you want to try. In the default order (where the order is the
same as found in the current version of the CLUBB master), results are
bit-for-bit when compared to CLUBB master.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_windm_edsclrm_module.F90 (diff)
Commit da7e393336c65553c3897fdb66f276cc70ba5a58 by Brian Griffin
Placing the order variables in a nice, convenient place for testing use.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 8aae767c4fcc474647d6b76867a06416de8057bd by Brian Griffin
I reordered advance_clubb_core so that the "Advance xp3" (which is a
basic calculation of xp3 by the ansatz by default) section is moved out
of the way of the "advance loop" to a point that is after
advance_windm_edsclrm (or whatever will be called last in the advance
loop.

This change does not alter the default results. Everything is still
bit-for-bit.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 89ceef8b3be53379b14beba84d90cef1f9ec9a39 by Brian Griffin
I am committing the idiot-proofing code that forces l_min_xp2_from_corr_wx
and l_enable_relaxed_clipping to have opposite values (one must be true
and the other must be false). In this commit, both are set to true, so
the code will produce an exception.
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 51776de85578ab39a37d41b3a28771e66d58657f by Brian Griffin
I am indenting the portion of the code where the advance subroutines
are located within the new ordering loop.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 9ffac7f447029ffd2f8bac3d59fb93019127171e by Brian Griffin
Temporarily commenting out the idiot proofing in order to run some tests ...
The results from this branch are still bit-for-bit with the master branch.
The file was modified advance_clubb_core_module.F90 (diff)
Commit c587754da66182880513b7c16ccc23c289952ab5 by bmg2
Now official reinstating the idiot-proofing and turning off the
l_enable_relaxed_clipping flag. This commit is BIT_CHANGING
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit b778226f990c7e852735312d0123c76452338a21 by bmg2
I am committing some idiot proofing in regards to the advance
subroutines ordering. No index can have a value of less than 1,
greater than 4, and no index can have the same value as any other
index. Each adv routine order index must have a unique value.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 1e234f56b4722f109ec9d657776244a94dadfc18 by bmg2
Updating CLUBB to pass uprcp and vprcp into and out of advance_clubb_core.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit aa0da18281105ee85a148af1640952342bc058ec by bmg2
Now that uprcp and vprcp have been passed through advance_clubb_core,
I can get rid of this idiot-proofing code that stops the run when
l_predict_upwp_vpwp is enabled and the PDF is in the "post" position.
The file was modified advance_clubb_core_module.F90 (diff)
Commit af8d23225e3393b52c07fbe123f01444d14124f0 by bmg2
I am adding more arguments to the argument list for advance_clubb_core
so that the model now runs with the PDF in the post position.

Result from this change are still bit-for-bit.
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_wp2_wp3_module.F90 (diff)
Commit af2e320388670ca0a57e2f176c1bc5d627b9098d by noreply
Insert print about overwriting default flags with namelist values
The file was modified model_flags.F90 (diff)
Commit 8f225830ad630ade0b0f818521e3420cf71da15d by noreply
Insert print about overwriting default parameters with namelist values
The file was modified parameters_tunable.F90 (diff)
Commit f3942b808f629c080b43dfaca5c50c6ce080ef9a by Gunther Huebler
Making api version of setup_grid. larson-group/clubb#972
The file was modified clubb_api_module.F90 (diff)
Commit 3db947c8588aef8f34322cfdf19bc0b3e0e7be79 by Gunther Huebler
Making some paramters_silhs variables available from the silhs api
The file was modified silhs_api_module.F90 (diff)
Commit 65acb9b0c8906c6bd4001aa5eb2cb31b11760835 by noreply
Comment out setting of fatal error

when l_min_xp2_from_corr_wx = F and l_enable_relaxed_clipping = F. 
The goal is to allow the clubb_backwards_compatibility_gfortran_test
Jenkins test to pass again.

For #846.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7ec140fc6d8e5e40e4dd195f225d62cdaa8fbabe by Gunther Huebler
This should be BIT_CHANGING, but only because the value of Cx_min should change in the netcdf file. This will not be answer changing.
The file was modified parameters_tunable.F90 (diff)
Commit 5bf9927ebb2fdd8006f9aee4380dd467515d2c06 by bmg2
Changing the value of C_invrs_tau_shear from 0.02 to 0.15.
This commit is BIT_CHANGING
The file was modified parameters_tunable.F90 (diff)
Commit 04279f676a57a9710d4b60f0dafcd0c331a4f18e by Gunther Huebler
Avoiding stats call for variables that are not set when l_diag_Lscale_from_tau is not true.
The file was modified advance_clubb_core_module.F90 (diff)
Commit 03f14dd627f8df25c1e8c40b407a2c60b943f972 by bmg2
Adjusting the value of C_invrs_tau_shear from 0.15 to 0.16 so that
CLUBB (particularly the MC3E case) completes successfully for all
compiler tests.

You might say that this is BIT_CHANGING.
The file was modified parameters_tunable.F90 (diff)
Commit d8836de198f0c3f3457f195fb08642497dead21b by noreply
Add l_smooth_Heaviside_tau_wpxp to smooth discontinuity in invrs_tau_wpxp_zm

This option calls subroutine smooth_heaviside_peskin, which implements the smooth Peskin Heaviside function.
The option is turned off for now, and so the results should remain bit for bit.

For #965.
The file was modified mixing_length.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified constants_clubb.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified model_flags.F90 (diff)
Commit 4d506fc219eb83b1977f318f6b46c3a1f75f09c5 by Gunther Huebler
Pushing column loop into advance_clubb_core, and adding interface for it so that we will not need to update any host models. Everything is bit-for-bit, testing all standalone cases and our cam_coarse res run. larson-group/clubb#972
The file was modified pdf_parameter_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 946ca541e9acab72c5dbd52b2df8651bfc0bfb76 by Gunther Huebler
Adding l_stats check around stats stuff. This fixes the crashing when stats is disabled. larson-group/clubb#972
The file was modified clubb_api_module.F90 (diff)
Commit 7e6744fa4864a0219f8e4a32d0d72fb2664598d9 by Gunther Huebler
Making single and multi column versions of advance clubb core available through clubb_api. larson-group/clubb#972
The file was modified clubb_api_module.F90 (diff)
Commit 0bae8e4aaa7651515c8d5df797909bd9de345c2f by Gunther Huebler
Breaking up column loop in advance_clubb_core. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
Commit d55d2cbc2faec828838317f478b04fa8ea410f7a by Gunther Huebler
Pushing loop into pdf_closure and breaking it up. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
Commit fabb386b09890bd8a64d59b5ae24bae937af9f93 by bmg2
I changed C_invrs_tau_N2_wp2 from 0.1 to 0.2 to help stop turbulence
from going to the model top, which ultimately caused MC3E to crash
by becoming too cold.  Additionally, I set C_invrs_tau_shear back
to 0.15 from 0.16. This commit is BIT_CHANGING.
The file was modified parameters_tunable.F90 (diff)
Commit 2c6b628542302815ac566410bfa583f64b252464 by Gunther Huebler
Pushing loop into pdf_closure_module and breaking it up. larson-group/clubb#972
The file was modified pdf_closure_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit af9c183212dde92967cca80d87ef80f1aabd76b1 by Gunther Huebler
Making the good version of pdf_params used most places. The bad version is the single column version. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit c0b2297dad094c1121026e8520de001748c1d0a7 by bmg2
Making a commit that officially places the call to the PDF in the "post"
position (meaning after CLUBB's predictive fields have been advanced).
This commit is BIT_CHANGING
The file was modified model_flags.F90 (diff)
Commit f1c545226c133b42ec11c523daee00e938910cf3 by Gunther Huebler
Pushing loops into all relevent lowest level routines in pdf_closure. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 376d0e4907dc788fce6a52b6d0dc5ad4d7481f34 by Gunther Huebler
We need to initialize our local pdf_implicit_coefs_terms_zm in certain pdf types. We also don't need to zero out pdf_implicit_coefs_terms arrays, since that's done in the initialization. This should fix segfaults when l_call_pdf_closure_twice=.True. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified pdf_closure_module.F90 (diff)
Commit 0201571e2624e4580ec5e4f44582e187d7908ebb by bmg2
I am updating ice_supersat_frac to be an intent(inout) variable for
advance_clubb_core. When the PDF is in the "post" position, there is
a chance that it can be used before it is set unless it is preserved
from timestep to timestep.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit aa44cb502926842665f158cbfab7c8cf1df5c3c5 by Gunther Huebler
Intializing sigma_sqd_w_zt when not using ADG1. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
Commit 5088c109e589f0398450ea86996147836b8b75d8 by Gunther Huebler
Fixing bug, we were not initializng pdf_params for all columns. larson-group/clubb#972
The file was modified pdf_parameter_module.F90 (diff)
Commit f1154aed2f15410ec35a99adb03d2d517f9fad2d by Gunther Huebler
Pushing column index into zm2zt and zt2zm. larson-group/clubb#972
The file was modified grid_class.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 932c80e272c18da1ccf51719eed39b370ca45912 by Gunther Huebler
Pushing column index into Skx_func and making it a subroutine. larson-group/clubb#972
The file was modified Skx_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit a3665dbc5e18abd7e8281d753abed2bbb03d8f1c by Gunther Huebler
A variety of small loop pushing. larson-group/clubb#972
The file was modified sigma_sqd_w_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified grid_class.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit 7f7db11cab062c725e5fe2787d45f0225e4ba60f by Gunther Huebler
Fixed small bug that slipped through because the G_unit tests use nz=1.
The file was modified sigma_sqd_w_module.F90 (diff)
Commit 3c97bd65f2133f211f2d8502473f2cf32a025be1 by Gunther Huebler
Pushing column index into mixing length routines, not all the way down for the non-tau based calculation. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_helper_module.F90 (diff)
The file was modified mixing_length.F90 (diff)
Commit df7da80153115bfa7df377decb342e4aee4481cf by bmg2
I added a subroutine that prints that values of all PDF parameters in
type pdf_parameter, which is a useful debugging tool.
The file was modified pdf_parameter_module.F90 (diff)
Commit 445f590cf1d278eee326fe3a3355fdc0deab0d21 by Gunther Huebler
Small changes and a loop push. larson-group/clubb#972
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified Skx_module.F90 (diff)
Commit c9f575df03cc82bf9e0783bd2608ef27d0b4b637 by Gunther Huebler
Pushing loop into advance_xm_wpxp. larson-group/clubb#972
The file was modified advance_xm_wpxp_module.F90 (diff)
The file was modified advance_clubb_core_module.F90 (diff)
Commit eb106afc75f2daab341edd31b7508557525f6fb2 by Gunther Huebler
Making the G_unit test use a dummy column index. This makes it so we don't need an interface for compute_sigma_sqd_w since now we only use it with 2 dimensions. This is just nicer. larson-group/clubb#972
The file was modified sigma_sqd_w_module.F90 (diff)
Commit bcda3f8c752053316304a5ce21d56977f49c53b4 by Gunther Huebler
Breaking up column loop in advance_xm_wpxp_module. larson-group/clubb#972
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 0a7b2cda84e35cf4f34a3a582daf8b67a6a62194 by Gunther Huebler
Pushing column loop into local functions. larson-group/clubb#972
The file was modified mono_flux_limiter.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 775ab377c5ff0ed340e9dbfa0bcb7af76d1687d0 by Gunther Huebler
Moving stats call for uprcp and vprcp to after they are calculated. This fixes the silhs restart test. But does not seem to fix the E3SM or CAM tests that are still failing.
The file was modified advance_clubb_core_module.F90 (diff)
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 402036c07820f647c23fbe11eae422423adacad7 by Gunther Huebler
Adding 2D version of zt2zm and zm2zt to clubb_api
The file was modified clubb_api_module.F90 (diff)
Commit 76ade90ca6c58592fb9ad1ed4232a03249257f02 by noreply
Pushing loop into solve_xm_wpxp_with_single_lhs (#986)

Co-authored-by: Peter Roels <56004443+pbroels@users.noreply.github.com>
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 5c71aa30cb7d3a8d1d12c9fcfee59669157b0896 by noreply
Refactoring to remove need for global stats scratch variables. (#988)

* Refactoring to remove need for global stats scratch variables. larson-group/clubb#972

* Changing name of new stats_scratch variables to be more descriptive.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit ed18e641c3b7fa3567c638f8fd52f6f4fe01f43d by noreply
Gunthers branch (#989)

* Refactoring to remove need for global stats scratch variables. larson-group/clubb#972

* Changing name of new stats_scratch variables to be more descriptive.

* Breaking up column loop in solve_xm_wpxp_with_single_lhs. larson-group/clubb#972

* Pushing loop into solve_xm_wpxp_with_multiple_lhs and breaking it up. larson-group/clubb#972

* Pusing loop into xm_wpxp_rhs and xm_wpxp_lhs. larson-group/clubb#972

* Pushing loop into xm_wpxp_solve and xm_wpxp_clipping_and_stats. larson-group/clubb#972
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit 0984f81b081d6be7b58a3282fdc3759f6e2f78d4 by Gunther Huebler
Fixing small bug that breaks runs with scalars.
The file was modified advance_xm_wpxp_module.F90 (diff)
Commit fd4c092e458fd1143008dd04add873fdeedc836a by 68997723+JanGrn
Implementations of smooth min, max and heaviside function. Added G-Unit tests
The file was modified advance_helper_module.F90 (diff)
Commit bc3082fb4215cf63236c125d1ead5be3a0898c05 by Gunther Huebler
Making setup_pdf_parameters accept ngrdcols size arrays of stats and grid types.
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified clubb_api_module.F90 (diff)
Commit 8decd62fd4618a4cfc05359ec59aef618950cee5 by Gunther Huebler
Forgot two small changes. larson-group/cam#129
The file was modified clubb_api_module.F90 (diff)
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit 6a574df7e37c1b18df4b266fd75de92528120b03 by Gunther Huebler
Removing need for data copies. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
The file was modified precipitation_fraction.F90 (diff)
Commit a21672f556ca63ae1e7cc4b7851d24cec405ae87 by Gunther Huebler
Changing column loop index from j to i. larson-group/cam#129
The file was modified setup_clubb_pdf_params.F90 (diff)
Commit f078452993a62351642178c7d76a340f6406c693 by 37674341+huebleruwm
Removing data copies that we don't need anymore. This still runs correctly on GPUs.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 8abf9d87614f2fdc27dfaf72324f917be702d582 by 37674341+huebleruwm
Making clip_transform_silhs_output use an array of gr. This is how it should have been once the column loop was pushed down into it, but at the time clubb was using gr through a use statement making that not possible.
The file was modified latin_hypercube_driver_module.F90 (diff)
The file was modified silhs_api_module.F90 (diff)
Commit 7d2d3a8a4ef4a33a36ce8cc202e27c17e9c9378b by 37674341+huebleruwm
No more need for these data copies anymore now that pdf_params is allocated with ngrdcol rather than pcols.
The file was modified latin_hypercube_driver_module.F90 (diff)
Commit 960a16c889d0898e95595a6bb59a2f296c3bffa7 by noreply
Adds a blank line to trigger git merge with E3SM
The file was modified advance_clubb_core_module.F90 (diff)