Skip to content

Commit abf3157

Browse files
committed
fix analytic solution in post-simulation comparison
1 parent 9fdc8cb commit abf3157

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Exec/unit_tests/diffusion_test/Prob.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ void Castro::problem_post_simulation(Vector<std::unique_ptr<AmrLevel> >& amr_lev
2222

2323
auto domain_lo = castro.geom.Domain().loVect3d();
2424
auto domain_hi = castro.geom.Domain().hiVect3d();
25+
const auto coord_type = castro.geom.Coord();
2526

2627
// the state data
2728
MultiFab& S = castro.get_new_data(State_Type);
2829

2930
// derive the analytic solution
30-
auto analytic = castro.derive("analytic", time, 1);
31+
auto analytic = castro.derive("analytic", time, coord_type);
3132

3233
#ifdef TRUE_SDC
3334
// if we are fourth-order, we need to convert to averages

0 commit comments

Comments
 (0)