Skip to content

Commit

Permalink
Initialized pipe_map_created_ and sw_map_created_
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Capodaglio committed Mar 2, 2024
1 parent 7f4e507 commit 4ffb397
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Expand Up @@ -63,13 +63,6 @@ PipeDrainEvaluator::PipeDrainEvaluator(Teuchos::ParameterList& plist) :

sink_source_coeff_ = 1.0;
}
// flags to ensure we create the cell maps only once
if (pipe_map_created_ != true) {
pipe_map_created_ = false;
}
if (sw_map_created_ != true) {
sw_map_created_ = false;
}
}


Expand Down
Expand Up @@ -55,7 +55,7 @@ class PipeDrainEvaluator : public EvaluatorSecondaryMonotypeCV {
double energ_loss_coeff_subweir_; // submerged weir
double energ_loss_coeff_orifice_; // orifice
double sink_source_coeff_; // coefficient that determines sink or source (when using same evaluator file for pipe or surface flow)
bool pipe_flag_, sw_flag_, pipe_map_created_, sw_map_created_;
bool pipe_flag_, sw_flag_, pipe_map_created_ = false, sw_map_created_ = false;

std::vector<int> pipe_map_, sw_map_;

Expand Down

0 comments on commit 4ffb397

Please sign in to comment.