Skip to content
Snippets Groups Projects
Commit 6b9a6d25 authored by HBShaoUFZ's avatar HBShaoUFZ
Browse files

change the weighting factor to use abs val

change the weighting factor to use abs val

weighting factor consider both M and K matrix

fix clang-format error
parent ffa47773
No related branches found
No related tags found
No related merge requests found
......@@ -446,10 +446,7 @@ void HeatTransportBHEProcess::algebraicBcConcreteProcess(
// apply weighting factor based on the max value from column wise inner
// product and scale it with user defined value
const double w_val =
_process_data._algebraic_BC_Setting._weighting_factor *
(Eigen::RowVectorXd::Ones(K_normal.rows()) * K_normal.cwiseAbs())
.maxCoeff();
const double w_val = _process_data._algebraic_BC_Setting._weighting_factor;
M_normal.conservativeResize(
M_normal.rows() + n_BHE_bottom_pairs + n_BHE_top_pairs,
......
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