WarpX
Functions
WarpXUtilLoadBalance Namespace Reference

Functions

bool doCosts (const amrex::LayoutData< amrex::Real > *cost, const amrex::BoxArray &ba, const amrex::DistributionMapping &dm)
 We only want to update the cost data if the grids we are working on are the main grids, i.e. not the PML grids. This function returns whether this is the case or not. More...
 

Function Documentation

◆ doCosts()

bool WarpXUtilLoadBalance::doCosts ( const amrex::LayoutData< amrex::Real > *  cost,
const amrex::BoxArray ba,
const amrex::DistributionMapping dm 
)

We only want to update the cost data if the grids we are working on are the main grids, i.e. not the PML grids. This function returns whether this is the case or not.

Parameters
[in]costpointer to the cost data
[in]bathe grids to check
[in]dmthe dmap to check
Returns
consistent whether the grids are consistent or not.