Castro icon indicating copy to clipboard operation
Castro copied to clipboard

compute average RHS calls for reactions

Open zingale opened this issue 6 years ago • 3 comments

It would be a useful diagnostic to compute and store / report the average number of RHS steps taken by the reaction network integrator each step.

zingale avatar Mar 03 '19 18:03 zingale

Here is one way we could do it for Strang-split burning in react_state:

    if (verbose > 1) {

        Real avg_work_done = w.sum(0) / grids.numPts();
        amrex::Print() << "Average reaction work done per zone = " << avg_work_done << std::endl << std::endl;

    }

This takes advantage of the weights MultiFab we constructed for the reactions load balancing.

But for SDC this isn't quite as simple.

maximumcats avatar Mar 03 '19 18:03 maximumcats

to be clear... this would work with the simplified SDC, right?

zingale avatar Mar 23 '19 23:03 zingale

Yes, a similar thing should work for simplified SDC.

maximumcats avatar Mar 24 '19 00:03 maximumcats