Closed ztdepztdep closed 2 months ago
There is a function called volumeWeightedSum
in AMReX_MultiFabUtil.H that probably does what you want. It returns a volume weighted sum of all "leaf" cells.
I got this error:"error: invalid initialization of reference of type ‘const amrex::Vector<const amrex::MultiFab*>&’ from expression of type ‘amrex::Vector<amrex::MultiFab, std::allocator
I want to get the total averaged value from the mutlilevel MultiFabs? Which function does this job?