Skip to content

Commit

Permalink
Changes to fix process related to water temperature imposing
Browse files Browse the repository at this point in the history
Minor but relevant errors have been detected and need to be changed in order to apply these process properly.
  • Loading branch information
djvicente committed Mar 21, 2018
1 parent a46c886 commit d71a4a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class DamReservoirConstantTemperatureProcess : public Process
"Water_temp" : 0.0,
"Water_temp_Table" : 0,
"Water_level" : 0.0,
"Water_level_Table" : 0,
"Water_level_Table" : 0
} )");

// Some values need to be mandatorily prescribed since no meaningful default value exist. For this reason try accessing to them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def __init__(self, Model, settings ):

self.components_process_list = []

if "Bofang" in settings["model_part_name"].GetString():
if "BOFANG" in settings["model_part_name"].GetString():
self.components_process_list.append(DamBofangConditionTemperatureProcess(model_part, settings))

if "Reservoir" in settings["model_part_name"].GetString():
if "RESERVOIR" in settings["model_part_name"].GetString():
self.components_process_list.append(DamReservoirConstantTemperatureProcess(model_part, settings))


Expand Down

0 comments on commit d71a4a3

Please sign in to comment.