Skip to content

Commit

Permalink
bugfix typo Nvar vs NVar, the declared/used variable is NVar
Browse files Browse the repository at this point in the history
  • Loading branch information
moprak-nrel committed Sep 29, 2023
1 parent 6c8122d commit 1bdac3c
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 1bdac3c

Please sign in to comment.