@@ -230,12 +230,7 @@ class ConservativeEquilibriumConstraintModel
230230 const typename DenseMatrixPolicy::ViewType& forcing_view,
231231 const typename DenseMatrixPolicy::ConstViewType& state_view) {
232232 forcing_view.ForEachRow (
233- [K, total](
234- micm::Real& f_b,
235- micm::Real& f_c,
236- const micm::Real& a,
237- const micm::Real& b,
238- const micm::Real& c)
233+ [K, total](micm::Real& f_b, micm::Real& f_c, const micm::Real& a, const micm::Real& b, const micm::Real& c)
239234 {
240235 f_b = a + b + c - total;
241236 f_c = K * b - c;
@@ -265,12 +260,7 @@ class ConservativeEquilibriumConstraintModel
265260 SparseMatrixPolicy::Function (
266261 MICM_LAMBDA (const typename SparseMatrixPolicy::ViewType& jacobian_view) {
267262 jacobian_view.ForEachBlock (
268- [K](
269- micm::Real& j_ba,
270- micm::Real& j_bb,
271- micm::Real& j_bc,
272- micm::Real& j_cb,
273- micm::Real& j_cc)
263+ [K](micm::Real& j_ba, micm::Real& j_bb, micm::Real& j_bc, micm::Real& j_cb, micm::Real& j_cc)
274264 {
275265 j_ba -= 1.0 ;
276266 j_bb -= 1.0 ;
@@ -394,9 +384,7 @@ class MassConservationModel
394384 for (auto idx : indices)
395385 {
396386 state_view.ForEachRow (
397- [](micm::Real& s, const micm::Real& v) { s += v; },
398- sum,
399- state_view.GetConstColumnView (idx));
387+ [](micm::Real& s, const micm::Real& v) { s += v; }, sum, state_view.GetConstColumnView (idx));
400388 }
401389 forcing_view.ForEachRow (
402390 [](micm::Real& f, const micm::Real& s) { f = s; }, forcing_view.GetColumnView (i_ctrl), sum);
@@ -419,8 +407,7 @@ class MassConservationModel
419407 MICM_LAMBDA (const typename SparseMatrixPolicy::ViewType& jacobian_view) {
420408 for (auto flat : flat_ids)
421409 {
422- jacobian_view.ForEachBlock (
423- [](micm::Real& j) { j -= 1.0 ; }, jacobian_view.GetBlockView (flat));
410+ jacobian_view.ForEachBlock ([](micm::Real& j) { j -= 1.0 ; }, jacobian_view.GetBlockView (flat));
424411 }
425412 },
426413 jacobian)(jacobian);
@@ -1317,7 +1304,8 @@ TEST(ExternalModelFiniteDifferenceJacobian, ProcessForcingJacobian)
13171304 << " row=" << comparison.worst_row_ << " col=" << comparison.worst_col_
13181305 << " analytical=" << comparison.worst_analytical_ << " fd=" << comparison.worst_fd_ ;
13191306
1320- auto sparsity = micm::CheckJacobianSparsityCompleteness<FdDenseMatrix, SparseMatrixFD>(analytical_jac, fd_jac, num_species);
1307+ auto sparsity =
1308+ micm::CheckJacobianSparsityCompleteness<FdDenseMatrix, SparseMatrixFD>(analytical_jac, fd_jac, num_species);
13211309
13221310 EXPECT_TRUE (sparsity.passed_ ) << " Missing sparsity at block=" << sparsity.worst_block_ << " row=" << sparsity.worst_row_
13231311 << " col=" << sparsity.worst_col_ << " fd_value=" << sparsity.worst_fd_ ;
@@ -1405,7 +1393,8 @@ TEST(ExternalModelFiniteDifferenceJacobian, EquilibriumConstraintModelJacobian)
14051393 << " row=" << comparison.worst_row_ << " col=" << comparison.worst_col_
14061394 << " analytical=" << comparison.worst_analytical_ << " fd=" << comparison.worst_fd_ ;
14071395
1408- auto sparsity = micm::CheckJacobianSparsityCompleteness<FdDenseMatrix, SparseMatrixFD>(analytical_jac, fd_jac, num_species);
1396+ auto sparsity =
1397+ micm::CheckJacobianSparsityCompleteness<FdDenseMatrix, SparseMatrixFD>(analytical_jac, fd_jac, num_species);
14091398
14101399 EXPECT_TRUE (sparsity.passed_ ) << " Missing sparsity at block=" << sparsity.worst_block_ << " row=" << sparsity.worst_row_
14111400 << " col=" << sparsity.worst_col_ << " fd_value=" << sparsity.worst_fd_ ;
@@ -1512,8 +1501,7 @@ class TemperatureDependentEquilibriumModel
15121501 const typename DenseMatrixPolicy::ConstViewType& params_view,
15131502 const typename DenseMatrixPolicy::ConstViewType& state_view) {
15141503 forcing_view.ForEachRow (
1515- [](micm::Real& f_p, const micm::Real& K, const micm::Real& r, const micm::Real& p)
1516- { f_p = K * r - p; },
1504+ [](micm::Real& f_p, const micm::Real& K, const micm::Real& r, const micm::Real& p) { f_p = K * r - p; },
15171505 forcing_view.GetColumnView (i_p),
15181506 params_view.GetConstColumnView (i_K),
15191507 state_view.GetConstColumnView (i_r),
0 commit comments