Skip to content

Commit

Permalink
setting counter inside for-loop for reduced clutter
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvansebille committed Jul 31, 2024
1 parent 46b9675 commit abbf683
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parcels/application_kernels/advectionanalytical.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ static inline StatusCode calcAdvectionAnalytical_JIT(CField *fu, CField *fv, CFi
double dphideta[4] = {xsi-1, -xsi, xsi, 1-xsi};
double dxdxsi = 0; double dxdeta = 0;
double dydxsi = 0; double dydeta = 0;
int i;
for(i=0; i<4; ++i){
for(int i=0; i<4; ++i){
dxdxsi += px[i] *dphidxsi[i];
dxdeta += px[i] *dphideta[i];
dydxsi += py[i] *dphidxsi[i];
Expand Down

0 comments on commit abbf683

Please sign in to comment.