Skip to content
Success

Changes

Summary

  1. Threadpublic (#1133) (details)
Commit ddbb50b7dd661e83d6b06136f6596ca5b139e64b by noreply
Threadpublic (#1133)

* Initial threadprivate removals and simple changes.

* model flags update, incomplete

* Some updates, almost working

* Added saturation_formula and l_host_applies_sfc_fluxes to clubb_config_flags

* Accompanying changes to flags lists

* Changes to corrrelation array setup

* Adding more flag checking

* Forgot to set l_host_applies_sfc_fluxes in initialize_clubb_config_flags_type and commit adding l_implemented to the argument loit

* Adding saturation parameters to api

* Most of the way through passing sclr_dim, hydromet_dim, edsclr_dim, and sclr_tol through arguemnt lists. Moved first_write breaking silhs stats aparently, and bit changing due to the way we were writing sclr_tol for cases that have sclr_dim=0 (arm different, gabls2 BFB).

* Removing accidentally commited files.

* Fixed silhs output, all cases BFB but sclr_tol is saved differently to stats files in cases where sclr_dim = 0, so this is bc also bc:fb20458d5212b007c79c17613201af637bbc3d7e since that introduced the difference.

* Changing stats logicals back to false, only set to true for testing. So technically BIT_CHANGING

* Starting array_vars changes.

* No more global scalar indices

* Starting to remove hydromet indices

* Finished the annoying part with the microphysics interfaces.

* No more global variables in array_index. All cases BFB relative to last commit.

* No more global pdf_dim, Ncnp2_on_Ncnm2 now set via argument list, and added temporary hydromet_dim_glob because I thought it would fix a bug but it didn't, it might in the future though, so I left it in for now, it will be removed soon.

* Added nan checking before overriding default value for Ncnp2_on_Ncnm2

* Finished hydromet_dim argument listing and removed global versions of it as well as sclr_dim, edsclr_dim, and sclr_tol.

* open_netcdf_for_writing does nothing if nvars=0 for a stats file, which is understandable, but now that we call first_write immediately after we need that also to check for nvar=0

* Adding better error messages to stats_init

* The nvidia compiler does not like zero size arrays.

* Adding defaults for scalar arrays values in clubb driver, and adding an error check after calling stats_init.

* Reverting accidental changes to clubb_thread_test

* Changing name of scarr/scalar_array to sclr_idx and hydromet_array to hm_metadata

* Adding new types to _api

* Fixing erroneous name changes.

* Fixing bug introduced in 65987c8a77496f7bb10bfd28717345b1f63de1b7

* Removing print

* QuadTune: updates setup in order to read in 30x30
regional files automatically.

For #910.

* Updating the code to set the bottom of the thermodynamic level grid for
diffusion at thermodynamic level 2 -- the first level above the surface.

This is being done in preparation for ghostless gridding.

* Commit to enforce a fixed-point boundary condition of wp3=0 at
thermodynamic level k = 2, the first above-ground thermodynamic level.

This is being done in preparation for ghostless gridding.

This commit is bc.

Results are much more similar to the previous results than using
using zero-flux as the lower boundary condition for wp3.

* With wp3 now being set to a fixed-point boundary condition value
of 0 at the current thermodynamic level 2 (first t-lev above the
surface), it is not necessary to loop over level 2 within the code
for each wp3 term.

This commit is BIT_CHANGING, but only for the wp3 budget terms
(e.g. wp3_ta) in the zt output file at level k = 2. It doesn't change
the actual answer. All other variables are bit-for-bit identical.

* Removing omp parallel test line

* Removing parameter declarion around l_quintic_poly_interp. Having this be a parameter causes bit changes when using -O2

---------

Co-authored-by: vlarson <vlarson@uwm.edu>
Co-authored-by: bmg929 <bmg2@uwm.edu>
The file was modified src/Benchmark_cases/cloud_feedback.F90 (diff)
The file was modified src/CLUBB_core/index_mapping.F90 (diff)
The file was modified src/Parabolic.f90 (diff)
The file was modified input/case_setups/astex_a209_model.in (diff)
The file was modified input/case_setups/cgils_s12_p2k_model.in (diff)
The file was modified src/Benchmark_cases/astex_a209.F90 (diff)
The file was modified src/CLUBB_core/stat_file_module.F90 (diff)
The file was modified src/Benchmark_cases/wangara.F90 (diff)
The file was modified input/case_setups/cobra_model.in (diff)
The file was modified input/case_setups/dycoms2_rf02_nd_model.in (diff)
The file was modified src/Benchmark_cases/rico.F90 (diff)
The file was modified input/tunable_parameters_e3sm/configurable_model_flags.in (diff)
The file was modified src/Benchmark_cases/atex.F90 (diff)
The file was modified src/clubb_tuner.F90 (diff)
The file was modified src/Benchmark_cases/gabls2.F90 (diff)
The file was modified input/case_setups/arm_97_model.in (diff)
The file was modified src/CLUBB_core/advance_clubb_core_module.F90 (diff)
The file was modified input/case_setups/fire_model.in (diff)
The file was modified src/CLUBB_core/new_hybrid_pdf_main.F90 (diff)
The file was modified src/CLUBB_core/output_netcdf.F90 (diff)
The file was modified src/G_unit_test_types/pdf_parameter_tests.F90 (diff)
The file was modified src/Benchmark_cases/mpace_a.F90 (diff)
The file was modified input/case_setups/gabls3_model.in (diff)
The file was modified src/CLUBB_core/numerical_check.F90 (diff)
The file was modified src/CLUBB_core/pdf_closure_module.F90 (diff)
The file was modified input/case_setups/cgils_s6_model.in (diff)
The file was modified input/tunable_parameters_compatible_r8029/configurable_model_flags.in (diff)
The file was modified src/SILHS/output_2D_samples_module.F90 (diff)
The file was modified src/SILHS/silhs_importance_sample_module.F90 (diff)
The file was modified input/case_setups/cloud_feedback_s11_p2k_model.in (diff)
The file was modified src/silhs_category_variance_module.F90 (diff)
The file was modified src/G_unit_test_types/read_corr_mtx_test.F90 (diff)
The file was modified input/case_setups/arm_0003_model.in (diff)
The file was modified src/microphys_driver.F90 (diff)
The file was modified src/clubb_driver.F90 (diff)
The file was modified input/case_setups/neutral_model.in (diff)
The file was modified src/ice_dfsn_module.F90 (diff)
The file was modified input/case_setups/README (diff)
The file was modified input/case_setups/mpace_b_model.in (diff)
The file was modified src/time_dependent_input.F90 (diff)
The file was modified src/CLUBB_core/setup_clubb_pdf_params.F90 (diff)
The file was modified src/G_unit_test_types/spurious_source_test.F90 (diff)
The file was modified src/SILHS/silhs_api_module.F90 (diff)
The file was modified src/CLUBB_core/clip_explicit.F90 (diff)
The file was modified src/estimate_scm_microphys_module.F90 (diff)
The file was modified src/CLUBB_core/stats_zm_module.F90 (diff)
The file was modified input/case_setups/rico_model.in (diff)
The file was modified src/sounding.F90 (diff)
The file was modified src/microphys_interface.inc (diff)
The file was modified src/CLUBB_core/advance_xp3_module.F90 (diff)
The file was modified src/CLUBB_core/corr_varnce_module.F90 (diff)
The file was modified src/CLUBB_core/model_flags.F90 (diff)
The file was modified input/case_setups/nov11_altocu_model.in (diff)
The file was modified src/CLUBB_core/advance_windm_edsclrm_module.F90 (diff)
The file was modified input/case_setups/atex_model.in (diff)
The file was modified input/tunable_parameters_Lscale/configurable_model_flags.in (diff)
The file was modified src/input_fields.F90 (diff)
The file was modified input/case_setups/cgils_s6_p2k_model.in (diff)
The file was modified src/CLUBB_core/error_code.F90 (diff)
The file was modified src/microphys_init_cleanup.F90 (diff)
The file was modified input/case_setups/bomex_model.in (diff)
The file was modified src/CLUBB_core/advance_xm_wpxp_module.F90 (diff)
The file was modified src/SILHS/transform_to_pdf_module.F90 (diff)
The file was modified input/case_setups/rico_silhs_model.in (diff)
The file was modified input/case_setups/mc3e_model.in (diff)
The file was modified input/case_setups/wangara_model.in (diff)
The file was modified input/case_setups/cgils_s11_p2k_model.in (diff)
The file was modified src/CLUBB_core/clubb_api_module.F90 (diff)
The file was modified input/case_setups/cloud_feedback_s11_model.in (diff)
The file was modified src/CLUBB_core/precipitation_fraction.F90 (diff)
The file was modified src/CLUBB_core/fill_holes.F90 (diff)
The file was modified src/CLUBB_core/diagnose_correlations_module.F90 (diff)
The file was modified input/tunable_parameters/configurable_model_flags.in (diff)
The file was modified src/Benchmark_cases/sfc_flux.F90 (diff)
The file was modified src/CLUBB_core/adg1_adg2_3d_luhar_pdf.F90 (diff)
The file was modified input/case_setups/dycoms2_rf02_so_model.in (diff)
The file was modified input/case_setups/jun25_altocu_model.in (diff)
The file was modified src/KK_microphys/KK_utilities.F90 (diff)
The file was modified input/case_setups/cloud_feedback_s12_p2k_model.in (diff)
The file was modified src/Benchmark_cases/dycoms2_rf01.F90 (diff)
The file was modified src/Benchmark_cases/bomex.F90 (diff)
The file was modified src/extended_atmosphere_module.F90 (diff)
The file was modified input/case_setups/cgils_s12_model.in (diff)
The file was modified input/case_setups/twp_ice_model.in (diff)
The file was modified src/KK_microphys_module.F90 (diff)
The file was modified input/case_setups/cgils_s11_model.in (diff)
The file was modified input/case_setups/gabls3_night_model.in (diff)
The file was modified input/case_setups/dycoms2_rf01_fixed_sst_model.in (diff)
The file was modified input/case_setups/dycoms2_rf01_model.in (diff)
The file was modified input/tunable_parameters_tauMatchLscale/configurable_model_flags.in (diff)
The file was modified input/case_setups/dycoms2_rf02_ds_model.in (diff)
The file was modified src/G_unit_test_types/KK_integrals_tests.F90 (diff)
The file was modified input/case_setups/mpace_b_silhs_model.in (diff)
The file was modified src/CLUBB_core/advance_xp2_xpyp_module.F90 (diff)
The file was modified input/case_setups/clex9_nov02_model.in (diff)
The file was modified input/case_setups/clex9_oct14_model.in (diff)
The file was modified src/mixed_moment_PDF_integrals.F90 (diff)
The file was modified input/case_setups/dycoms2_rf02_morr_model.in (diff)
The file was modified src/lh_microphys_driver_module.F90 (diff)
The file was modified src/CLUBB_core/sponge_layer_damping.F90 (diff)
The file was modified src/Benchmark_cases/mpace_b.F90 (diff)
The file was modified src/CLUBB_core/parameters_model.F90 (diff)
The file was modified src/CLUBB_core/mixing_length.F90 (diff)
The file was modified input/case_setups/cloud_feedback_s12_model.in (diff)
The file was modified src/Benchmark_cases/lba.F90 (diff)
The file was modified src/CLUBB_core/stats_clubb_utilities.F90 (diff)
The file was modified src/CLUBB_core/array_index.F90 (diff)
The file was modified src/CLUBB_core/advance_helper_module.F90 (diff)
The file was modified src/G_unit_test_types/hole_filling_tests.F90 (diff)
The file was modified input/case_setups/gabls2_model.in (diff)
The file was modified src/coamps_microphys_driver_module.F90 (diff)
The file was modified src/input_interpret.F90 (diff)
The file was modified src/morrison_microphys_module.F90 (diff)
The file was modified src/Benchmark_cases/twp_ice.F90 (diff)
The file was modified input/case_setups/arm_3year_model.in (diff)
The file was modified input/case_setups/mpace_a_model.in (diff)
The file was modified src/Benchmark_cases/dycoms2_rf02.F90 (diff)
The file was modified src/Benchmark_cases/fire.F90 (diff)
The file was modified input/case_setups/lba_model.in (diff)
The file was modified src/Benchmark_cases/cobra.F90 (diff)
The file was modified src/CLUBB_core/stats_zt_module.F90 (diff)
The file was modified input/case_setups/dycoms2_rf02_do_model.in (diff)
The file was modified input/case_setups/arm_model.in (diff)
The file was modified src/advance_microphys_module.F90 (diff)
The file was modified src/CLUBB_core/saturation.F90 (diff)
The file was modified src/CLUBB_core/sfc_varnce_module.F90 (diff)
The file was modified src/SILHS/latin_hypercube_driver_module.F90 (diff)
The file was modified input/case_setups/cloud_feedback_s6_model.in (diff)
The file was modified input/case_setups/cloud_feedback_s6_p2k_model.in (diff)