We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20be994 commit 7d4e2ccCopy full SHA for 7d4e2cc
SU2_CFD/include/drivers/CDriverBase.hpp
@@ -116,7 +116,13 @@ class CDriverBase {
116
* \return Value of the output.
117
*/
118
inline passivedouble GetOutputValue(const std::string& output_name) const {
119
- return SU2_TYPE::GetValue(output_container[MESH_0]->GetHistoryFieldValue(output_name));
+ const auto& list = output_container[MESH_0]->GetHistoryOutputList();
120
+ for (const auto& val : list) {
121
+ if (val == output_name) {
122
+ return SU2_TYPE::GetValue(output_container[MESH_0]->GetHistoryFieldValue(output_name));
123
+ }
124
125
+ return 0.0;
126
}
127
128
/*!
0 commit comments