Skip to content

Commit

Permalink
style fixes (whitespace after for/switch/while/if) (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Jul 2, 2015
1 parent 9c9532a commit 111b170
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/phase_field/src/auxkernels/PFCRFFEnergyDensity.C
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Real
PFCRFFEnergyDensity::computeValue()
{
Real val = 0;
switch(_log_approach)
switch (_log_approach)
{
case 0: //approach using tolerence
if (1.0 + (*_vals[0])[_qp] < _tol)
Expand All @@ -54,7 +54,7 @@ PFCRFFEnergyDensity::computeValue()
case 2: //approach using Taylor Series Expansion
Real coef = 1.0;

for(unsigned int i = 2; i < (2+_num_exp_terms); i++)
for (unsigned int i = 2; i < (2+_num_exp_terms); i++)
{
if (i==2)
coef = _c;
Expand Down
10 changes: 5 additions & 5 deletions modules/phase_field/src/kernels/CHPFCRFF.C
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ CHPFCRFF::computeQpResidual()
Real frac;
Real ln_expansion = 0.0;

switch(_log_approach)
switch (_log_approach)
{
case 0: //approach using tolerance
if (1.0 + c < _tol)
Expand Down Expand Up @@ -91,7 +91,7 @@ CHPFCRFF::computeQpResidual()

RealGradient GradDFDCons;

switch(_log_approach)
switch (_log_approach)
{
case 0: //approach using tolerance
GradDFDCons = grad_c*frac - sum_grad_L;
Expand Down Expand Up @@ -128,7 +128,7 @@ CHPFCRFF::computeQpJacobian()
Real frac, dfrac;
Real ln_expansion = 0.0;

switch(_log_approach)
switch (_log_approach)
{
case 0: //approach using tolerance
if (1.0 + c < _tol)
Expand Down Expand Up @@ -166,7 +166,7 @@ CHPFCRFF::computeQpJacobian()
RealGradient dGradDFDConsdC;
Real Dln_expansion = 0.0;

switch(_log_approach)
switch (_log_approach)
{
case 0: //approach using tolerance
dGradDFDConsdC = _grad_phi[_j][_qp]*frac + _phi[_j][_qp]*grad_c*dfrac;
Expand Down Expand Up @@ -214,7 +214,7 @@ CHPFCRFF::computeQpOffDiagJacobian(unsigned int jvar)

RealGradient dsum_grad_L = _grad_phi[_j][_qp]*0.5;
RealGradient dGradDFDConsdL;
switch(_log_approach)
switch (_log_approach)
{
case 0: //approach using tolerance
dGradDFDConsdL = -dsum_grad_L;
Expand Down

0 comments on commit 111b170

Please sign in to comment.