Skip to content

Commit

Permalink
Examples are following coding standards
Browse files Browse the repository at this point in the history
r2289
  • Loading branch information
andrsd authored and permcody committed Feb 14, 2014
1 parent 85d3aa1 commit b761494
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/ex02_kernel/include/kernels/Convection.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Convection : public Kernel
/**
* A velocity vector that supports a dot product.
*/
RealVectorValue velocity;
RealVectorValue _velocity;

/**
* Class variables to hold the components of velocity coming from the input parameters.
Expand Down
10 changes: 5 additions & 5 deletions examples/ex02_kernel/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ Convection::Convection(std::string name,
// We do this here so that it's only done once and then we just reuse it.
// Note that RealVectorValues ALWAYS have 3 components... even when running in
// 2D or 1D. This makes the code simpler...
velocity(0)=_x;
velocity(1)=_y;
velocity(2)=_z;
_velocity(0)=_x;
_velocity(1)=_y;
_velocity(2)=_z;
}

Real Convection::computeQpResidual()
{
// velocity * _grad_u[_qp] is actually doing a dot product
return _test[_i][_qp]*(velocity*_grad_u[_qp]);
return _test[_i][_qp]*(_velocity*_grad_u[_qp]);
}

Real Convection::computeQpJacobian()
{
// the partial derivative of _grad_u is just _grad_phi[_j]
return _test[_i][_qp]*(velocity*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex03_coupling/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex04_bcs/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex05_amr/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex06_transient/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex08_materials/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex09_stateful_materials/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex11_stabilizer/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex13_executioner/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}
2 changes: 1 addition & 1 deletion examples/ex14_parserblock/src/kernels/Convection.C
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Real Convection::computeQpResidual()

Real Convection::computeQpJacobian()
{
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_phi[_j][_qp]);
return _test[_i][_qp]*(_velocity_vector[_qp]*_grad_test[_j][_qp]);
}

0 comments on commit b761494

Please sign in to comment.