Skip to content

Commit

Permalink
Auto-format code changes (#248)
Browse files Browse the repository at this point in the history
Auto-format code using Clang-Format

Co-authored-by: GitHub Actions <actions@github.com>
  • Loading branch information
github-actions[bot] and actions-user committed Sep 19, 2023
1 parent be99332 commit 9de666a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 12 additions & 8 deletions include/micm/process/process.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ namespace micm
/// @param processes The set of processes being solved
/// @param state The solver state to update
template<template<class> class MatrixPolicy>
requires(!VectorizableDense<MatrixPolicy<double>>)
static void UpdateState(const std::vector<Process>& processes, State<MatrixPolicy>& state);
requires(!VectorizableDense<MatrixPolicy<double>>) static void UpdateState(
const std::vector<Process>& processes,
State<MatrixPolicy>& state);
template<template<class> class MatrixPolicy>
requires(VectorizableDense<MatrixPolicy<double>>)
static void UpdateState(const std::vector<Process>& processes, State<MatrixPolicy>& state);
requires(VectorizableDense<MatrixPolicy<double>>) static void UpdateState(
const std::vector<Process>& processes,
State<MatrixPolicy>& state);

friend class ProcessBuilder;
static ProcessBuilder create();
Expand Down Expand Up @@ -89,8 +91,9 @@ namespace micm
};

template<template<class> class MatrixPolicy>
requires(!VectorizableDense<MatrixPolicy<double>>)
void Process::UpdateState(const std::vector<Process>& processes, State<MatrixPolicy>& state)
requires(!VectorizableDense<MatrixPolicy<double>>) void Process::UpdateState(
const std::vector<Process>& processes,
State<MatrixPolicy>& state)
{
for (std::size_t i{}; i < state.custom_rate_parameters_.size(); ++i)
{
Expand All @@ -107,8 +110,9 @@ namespace micm
}

template<template<class> class MatrixPolicy>
requires(VectorizableDense<MatrixPolicy<double>>)
void Process::UpdateState(const std::vector<Process>& processes, State<MatrixPolicy>& state)
requires(VectorizableDense<MatrixPolicy<double>>) void Process::UpdateState(
const std::vector<Process>& processes,
State<MatrixPolicy>& state)
{
const auto& v_custom_parameters = state.custom_rate_parameters_.AsVector();
auto& v_rate_constants = state.rate_constants_.AsVector();
Expand Down
4 changes: 2 additions & 2 deletions include/micm/solver/rosenbrock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ namespace micm
/// @param jacobian Jacobian matrix (dforce_dy)
/// @param alpha
void AlphaMinusJacobian(SparseMatrixPolicy<double>& jacobian, const double& alpha) const
requires(!VectorizableSparse<SparseMatrixPolicy<double>>);
requires(!VectorizableSparse<SparseMatrixPolicy<double>>);
void AlphaMinusJacobian(SparseMatrixPolicy<double>& jacobian, const double& alpha) const
requires(VectorizableSparse<SparseMatrixPolicy<double>>);
requires(VectorizableSparse<SparseMatrixPolicy<double>>);

/// @brief Update the rate constants for the environment state
/// @param state The current state of the chemical system
Expand Down

0 comments on commit 9de666a

Please sign in to comment.