Skip to content

Commit

Permalink
fixup @nilsdeppe
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsvu committed Oct 21, 2020
1 parent 8e6f8dc commit 4c46932
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Elliptic/FirstOrderOperator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ struct FirstOrderSourcesImpl<Dim, tmpl::list<PrimalFields...>,
get<auxiliary_field_tag>(vars);
});
// Call into the sources computer to set primal field sources and possibly
// adjust auxiliary field sources
// adjust auxiliary field sources. We pass the volume fluxes instead of the
// auxiliary variables to the source computer as an optimization so they
// don't have to be re-computed.
SourcesComputer::apply(
make_not_null(&get<::Tags::Source<PrimalFields>>(*sources))...,
make_not_null(&get<::Tags::Source<AuxiliaryFields>>(*sources))...,
Expand Down Expand Up @@ -125,6 +127,11 @@ auto first_order_fluxes(const Variables<VarsTags>& vars,
* \brief Compute the sources \f$S(u)\f$ for the first-order formulation of
* elliptic systems.
*
* This function takes the `fluxes` as an argument in addition to the variables
* as an optimization. The fluxes will generally be computed before the sources
* anyway, so we pass them to the source computers to avoid having to re-compute
* them for source-terms that have the same form as the fluxes.
*
* \see `elliptic::first_order_operator`
*/
template <size_t Dim, typename PrimalFields, typename AuxiliaryFields,
Expand Down

0 comments on commit 4c46932

Please sign in to comment.