WarpX
Loading...
Searching...
No Matches
warpx::initialization Namespace Reference

Classes

class  ProjectionDivCleaner
 

Functions

template<typename T>
AMREX_FORCE_INLINE void correctFieldCartesian_kernel (const Box &tbx, const Box &tby, const Box &tbz, Real const *const AMREX_RESTRICT coefs_x, Real const *const AMREX_RESTRICT coefs_y, Real const *const AMREX_RESTRICT coefs_z, const int n_coefs_x, const int n_coefs_y, const int n_coefs_z, amrex::Array4< Real > const &Bx_arr, amrex::Array4< Real > const &By_arr, amrex::Array4< Real > const &Bz_arr, amrex::Array4< Real > const &sol_arr)
 
amrex::AMReXamrex_init (int &argc, char **&argv, bool build_parm_parse)
 
void initialize_external_libraries (int argc, char *argv[])
 
void finalize_external_libraries ()
 
void initialize_warning_manager ()
 
void check_dims ()
 

Function Documentation

◆ amrex_init()

amrex::AMReX * warpx::initialization::amrex_init ( int & argc,
char **& argv,
bool build_parm_parse = true )

Call amrex::Initialize

This function calls amrex::Initialize and overwrites AMReX' defaults. Note: AMReX defines a placeholder/"mock-up" for MPI_Comm and MPI_COMM_WORLD in serial builds

Parameters
[in]argcnumber of arguments from main()
[in]argvargument strings from main()
[in]build_parm_parsebuild the input file parser (AMReX' default: true)
Returns
pointer to an AMReX* object, forwarded from amrex::Initialize

◆ check_dims()

void warpx::initialization::check_dims ( )

Check that warpx.dims matches the binary name

◆ correctFieldCartesian_kernel()

template<typename T>
AMREX_FORCE_INLINE void warpx::initialization::correctFieldCartesian_kernel ( const Box & tbx,
const Box & tby,
const Box & tbz,
Real const *const AMREX_RESTRICT coefs_x,
Real const *const AMREX_RESTRICT coefs_y,
Real const *const AMREX_RESTRICT coefs_z,
const int n_coefs_x,
const int n_coefs_y,
const int n_coefs_z,
amrex::Array4< Real > const & Bx_arr,
amrex::Array4< Real > const & By_arr,
amrex::Array4< Real > const & Bz_arr,
amrex::Array4< Real > const & sol_arr )

◆ finalize_external_libraries()

void warpx::initialization::finalize_external_libraries ( )

Initializes, in the following order:

  • the FFT library through the anyfft::cleanup() function in ablastr
  • the AMReX library
  • the MPI library through the mpi_finalize helper function in ablastr

◆ initialize_external_libraries()

void warpx::initialization::initialize_external_libraries ( int argc,
char * argv[] )

Initializes, in the following order:

  • the MPI library through the mpi_init helper function in ablastr
  • the AMReX library
  • the FFT library through the anyfft::setup() function in ablastr
Parameters
[in]argcnumber of arguments from main()
[in]argvargument strings from main()

◆ initialize_warning_manager()

void warpx::initialization::initialize_warning_manager ( )

Initializes the Warning manager in ablastr