Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
void
WriteZeroRawMF( const MultiFab& F, const DistributionMapping& dm,
                const std::string& filename,
                const std::string& level_prefix,
                const std::string& field_name,
                const int lev, const int ng )
{
    std::string prefix = amrex::MultiFabFileFullPrefix(lev,
                            filename, level_prefix, field_name);

    MultiFab tmpF(F.boxArray(), dm, F.nComp(), ng);
    tmpF.setVal(0.);
    VisMF::Write(tmpF, prefix);
}
/** \brief Write a multifab of the same shape as `F` but filled with 0.
 *  (The shape includes guard cells if `plot_guards` is True.)
 *  This is mainly needed because the yt reader requires all levels of the
 *  coarse/fine patch to be written, but WarpX does not have data for
 *  the coarse patch of level 0 (meaningless).
 */
\brief Write a multifab of the same shape as `F` but filled with 0.
(The shape includes guard cells if `plot_guards` is True.)
This is mainly needed because the yt reader requires all levels of the
coarse/fine patch to be written, but WarpX does not have data for
the coarse patch of level 0 (meaningless).
\ brief Write a multifab of the same shape as ` F ` but filled with 0 . ( The shape includes guard cells if ` plot_guards ` is True . ) This is mainly needed because the yt reader requires all levels of the coarse / fine patch to be written but WarpX does not have data for the coarse patch of level 0 ( meaningless ) .
void
WriteZeroRawMF( const MultiFab& F, const DistributionMapping& dm,
                const std::string& filename,
                const std::string& level_prefix,
                const std::string& field_name,
                const int lev, const int ng )
{
    std::string prefix = amrex::MultiFabFileFullPrefix(lev,
                            filename, level_prefix, field_name);
    MultiFab tmpF(F.boxArray(), dm, F.nComp(), ng);
    tmpF.setVal(0.);
    VisMF::Write(tmpF, prefix);
}
void WriteZeroRawMF ( const MultiFab & F , const DistributionMapping & dm , const std :: string & filename , const std :: string & level_prefix , const std :: string & field_name , const int lev , const int ng ) { std :: string prefix = amrex :: MultiFabFileFullPrefix ( lev , filename , level_prefix , field_name ) ; MultiFab tmpF ( F . boxArray ( ) , dm , F . nComp ( ) , ng ) ; tmpF . setVal ( 0. ) ; VisMF :: Write ( tmpF , prefix ) ; }
\brief Write a multifab of the same shape as `F` but filled with 0.
\ brief Write a multifab of the same shape as ` F ` but filled with 0 .