Skip to content

Commit

Permalink
Reverted default abs/rel tolerances, fixed vector destruction in cvod…
Browse files Browse the repository at this point in the history
…e section
  • Loading branch information
Nicholas Deak committed Aug 31, 2023
1 parent 2bb62e1 commit ddc9f6c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Src/Extern/SUNDIALS/AMReX_SundialsIntegrator.H
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ private:
mristep_mem = nullptr; /* empty ARKode memory structure */

// Arbitrary tolerances
reltol = 1e-6;
abstol = 1e-6;
reltol = 1e-4;
abstol = 1e-4;
}

public:
Expand Down Expand Up @@ -763,7 +763,10 @@ public:
}

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

Expand Down

0 comments on commit ddc9f6c

Please sign in to comment.