Skip to content

Commit

Permalink
fix some funny scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
wortiz committed Dec 8, 2023
1 parent 5711e80 commit 5699b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/mm_ns_bc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2563,9 +2563,7 @@ void fvelo_tangential_solid_bc(double func[],
if (Current_EB_ptr->Elem_Blk_Id == eb_mat_fluid) {
if (type == VELO_TANGENT_SOLID_BC) {
for (kdir = 0; kdir < pd->Num_Dim; kdir++) {
{
*func += fv->v[kdir] * fv->stangent[0][kdir] * betainv;
}
*func += fv->v[kdir] * fv->stangent[0][kdir] * betainv;
}
} else {
for (kdir = 0; kdir < pd->Num_Dim; kdir++) {
Expand Down
4 changes: 1 addition & 3 deletions src/mm_post_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,7 @@ static int calc_standard_fields(double **post_proc_vect,
if (DIV_VELOCITY != -1 && pd->e[pg->imtrx][PRESSURE]) {
Dnn = 0.;
for (a = 0; a < dim; a++) {
{
Dnn += fv->grad_v[a][a];
}
Dnn += fv->grad_v[a][a];
}
/* If you want everything positive, uncomment this next line */
/* Dnn = fabs(Dnn); */
Expand Down

0 comments on commit 5699b7e

Please sign in to comment.