Skip to content

Commit

Permalink
bugfix typo in AMReX_SundialsIntegrator.H Nvar vs NVar, the declared/…
Browse files Browse the repository at this point in the history
…used variable is NVar (AMReX-Codes#3573)
  • Loading branch information
moprak-nrel authored Sep 29, 2023
1 parent 6c8122d commit 71e9f93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/Extern/SUNDIALS/AMReX_SundialsIntegrator.H
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public:
}

// Clean up allocated memory
for (int i = 0; i < Nvar; ++i) {
for (int i = 0; i < NVar; ++i) {
N_VDestroy(nv_many_arr[i]);
}
delete[] nv_many_arr;
Expand Down Expand Up @@ -638,7 +638,7 @@ public:
}

// Clean up allocated memory
for (int i = 0; i < Nvar; ++i) {
for (int i = 0; i < NVar; ++i) {
N_VDestroy(nv_many_arr[i]);
}
delete[] nv_many_arr;
Expand Down Expand Up @@ -758,7 +758,7 @@ public:
}

// Clean up allocated memory
for (int i = 0; i < Nvar; ++i) {
for (int i = 0; i < NVar; ++i) {
N_VDestroy(nv_many_arr[i]);
}
delete[] nv_many_arr;
Expand Down

0 comments on commit 71e9f93

Please sign in to comment.