From 3aa11e13fe5637216774c34ff87dbf5882dd082e Mon Sep 17 00:00:00 2001 From: MengnanLi91 <118846840+MengnanLi91@users.noreply.github.com> Date: Wed, 27 Sep 2023 16:51:41 -0600 Subject: [PATCH 1/2] Add default value for vector type input parameters --- src/actions/VariableNotAMooseObjectAction.C | 12 ++++++------ src/kernels/TransientFissionHeatSource.C | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/actions/VariableNotAMooseObjectAction.C b/src/actions/VariableNotAMooseObjectAction.C index 3b2f0dac94..ec9b0453ea 100644 --- a/src/actions/VariableNotAMooseObjectAction.C +++ b/src/actions/VariableNotAMooseObjectAction.C @@ -38,12 +38,12 @@ VariableNotAMooseObjectAction::getSubdomainIDs() { // Extract and return the block ids supplied in the input std::set blocks; - std::vector block_param = getParam>("block"); - for (const auto & subdomain_name : block_param) - { - SubdomainID blk_id = _problem->mesh().getSubdomainID(subdomain_name); - blocks.insert(blk_id); - } + if (isParamValid("block")) + for (const auto & subdomain_name : getParam>("block")) + { + SubdomainID blk_id = _problem->mesh().getSubdomainID(subdomain_name); + blocks.insert(blk_id); + } return blocks; } diff --git a/src/kernels/TransientFissionHeatSource.C b/src/kernels/TransientFissionHeatSource.C index 28df5c6d3b..1b1b8c6bb2 100644 --- a/src/kernels/TransientFissionHeatSource.C +++ b/src/kernels/TransientFissionHeatSource.C @@ -15,8 +15,8 @@ TransientFissionHeatSource::validParams() params.addParam("num_decay_heat_groups", 0, "The number of decay heat groups."); params.addCoupledVar("heat_concs", "All the variables that hold the decay heat " "precursor concentrations."); - params.addParam>("decay_heat_fractions", "Decay Heat Fractions"); - params.addParam>("decay_heat_constants", "Decay Heat Constants"); + params.addParam>("decay_heat_fractions", {}, "Decay Heat Fractions"); + params.addParam>("decay_heat_constants", {}, "Decay Heat Constants"); params.addParam("account_decay_heat", false, "Whether to account for decay heat."); return params; } From ce42472b58bf102e5f15c8651b6b23dad6389fef Mon Sep 17 00:00:00 2001 From: MengnanLi91 <118846840+MengnanLi91@users.noreply.github.com> Date: Thu, 28 Sep 2023 13:48:24 -0600 Subject: [PATCH 2/2] MOOSE submodule update --- moose | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moose b/moose index 59ec23e66a..e876aed746 160000 --- a/moose +++ b/moose @@ -1 +1 @@ -Subproject commit 59ec23e66aaa75dfaea59678e5da10c548e1f36c +Subproject commit e876aed746d1f399da8111abb29673de11df08d9