Skip to content
Snippets Groups Projects
Commit e1433749 authored by Shuang Chen's avatar Shuang Chen Committed by Dmitri Naumov
Browse files

Implement review suggestions

- add /file  in the top decription
- iostream dropped for not needed
- modified the phrase in the cmake list
- delete the else branch for no need
parent 9884d62c
No related branches found
No related tags found
No related merge requests found
/** /**
* \file
* \copyright * \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org) * Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License. * Distributed under a Modified BSD License.
......
/** /**
* \file
* \copyright * \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org) * Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License. * Distributed under a Modified BSD License.
......
...@@ -72,11 +72,7 @@ struct PowerCurveConstantFlow ...@@ -72,11 +72,7 @@ struct PowerCurveConstantFlow
{ {
return {0.0, T_out}; return {0.0, T_out};
} }
else return {flow_rate, power / flow_rate / heat_capacity / density + T_out};
{
return {flow_rate,
power / flow_rate / heat_capacity / density + T_out};
}
} }
MathLib::PiecewiseLinearInterpolation const& power_curve; MathLib::PiecewiseLinearInterpolation const& power_curve;
......
...@@ -5,10 +5,9 @@ append_source_files(SOURCES LocalAssemblers) ...@@ -5,10 +5,9 @@ append_source_files(SOURCES LocalAssemblers)
add_library(HeatTransportBHE ${SOURCES}) add_library(HeatTransportBHE ${SOURCES})
if(OGS_USE_PYTHON) target_link_libraries(HeatTransportBHE PUBLIC ProcessLib)
target_link_libraries(HeatTransportBHE PUBLIC ProcessLib PRIVATE pybind11::pybind11) if (OGS_USE_PYTHON)
else() target_link_libraries(HeatTransportBHE PRIVATE pybind11::pybind11)
target_link_libraries(HeatTransportBHE PUBLIC ProcessLib)
endif() endif()
if(BUILD_SHARED_LIBS) if(BUILD_SHARED_LIBS)
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifdef OGS_USE_PYTHON #ifdef OGS_USE_PYTHON
#include <pybind11/pybind11.h> #include <pybind11/pybind11.h>
#endif // OGS_USE_PYTHON #endif // OGS_USE_PYTHON
#include <iostream>
namespace ProcessLib namespace ProcessLib
{ {
namespace HeatTransportBHE namespace HeatTransportBHE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment