Skip to content

Commit

Permalink
clang format (idaholab#18178)
Browse files Browse the repository at this point in the history
  • Loading branch information
cticenhour committed Jul 14, 2021
1 parent 22ade83 commit 8b93c5f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion framework/src/timeintegrators/NewmarkBeta.C
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ NewmarkBeta::computeADTimeDerivatives(DualReal & ad_u_dot,
const auto & u_dot_old = (*_sys.solutionUDotOld())(dof);
const auto & u_dotdot_old = (*_sys.solutionUDotDotOld())(dof);

// Seeds ad_u_dotdot with _ad_dof_values and associated derivatives provided via ad_u_dot from MooseVariableData
// Seeds ad_u_dotdot with _ad_dof_values and associated derivatives provided via ad_u_dot from
// MooseVariableData
ad_u_dotdot = ad_u_dot;

computeTimeDerivativeHelper(ad_u_dot, u_old, u_dot_old, ad_u_dotdot, u_dotdot_old);
Expand Down
6 changes: 4 additions & 2 deletions framework/src/variables/MooseVariableData.C
Original file line number Diff line number Diff line change
Expand Up @@ -1470,8 +1470,10 @@ MooseVariableData<OutputType>::computeAD(const unsigned int num_dofs, const unsi
if (_need_ad_u_dot && _time_integrator && _time_integrator->dt())
{
_ad_dofs_dot[i] = _ad_dof_values[i];
_time_integrator->computeADTimeDerivatives(
_ad_dofs_dot[i], _dof_indices[i], _need_ad_u_dotdot ? _ad_dofs_dotdot[i] : _ad_real_dummy);
_time_integrator->computeADTimeDerivatives(_ad_dofs_dot[i],
_dof_indices[i],
_need_ad_u_dotdot ? _ad_dofs_dotdot[i]
: _ad_real_dummy);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#include "ElementAverageValue.h"

/**
* This postprocessor computes a volume integral of the second time derivative of a given AD variable.
* This postprocessor computes a volume integral of the second time derivative of a given AD
* variable.
*/
class ADElementAverageSecondTimeDerivative : public ElementAverageValue
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ ADElementAverageSecondTimeDerivative::validParams()

ADElementAverageSecondTimeDerivative::ADElementAverageSecondTimeDerivative(
const InputParameters & parameters)
: ElementAverageValue(parameters), _u_dotdot(_is_transient ? adCoupledDotDot("variable") : _ad_zero)
: ElementAverageValue(parameters),
_u_dotdot(_is_transient ? adCoupledDotDot("variable") : _ad_zero)
{
}

Expand Down

0 comments on commit 8b93c5f

Please sign in to comment.