ORB5X 1.0.0
Performance-portable global electromagnetic gyrokinetic PIC code
 
Loading...
Searching...
No Matches
orb5x::Util Class Reference

#include "util.hpp"

Public Types

using HostVectorView = Kokkos::View< Real *, Kokkos::HostSpace >
 

Static Public Member Functions

static void A3deriv (const Kokkos::View< Real * > &y_in, const Kokkos::View< Real * > &x_in, Kokkos::View< Real * > &dydx_out, const Kokkos::View< Real * > &x_out)
 
static void A3interp (const Kokkos::View< Real * > &y_in, const Kokkos::View< Real * > &x_in, Kokkos::View< Real * > &y_out, const Kokkos::View< Real * > &x_out)
 
static void append_stat (const std::string &filename, const std::string &data)
 
static int choose_int (const Kokkos::View< int * > &arr, int val)
 
static int choose_int (const std::vector< int > &arr, int val)
 
static void creatd_stat (const std::string &filename)
 
static int execute_command_line_wrapper (const std::string &command)
 
static void gaussj (Kokkos::View< Real ** > &a, Kokkos::View< Real ** > &b, int n, int m)
 
static Real interp1 (Real x, const Kokkos::View< Real * > &xp, const Kokkos::View< Real * > &yp)
 
static Real log2real (bool lin)
 
static void mrqcof (const Kokkos::View< Real * > &x, const Kokkos::View< Real * > &y, const Kokkos::View< Real * > &sig, Kokkos::View< Real * > &a, const Kokkos::View< int * > &ia, Kokkos::View< Real ** > &alpha, Kokkos::View< Real * > &beta, Real &chisq, std::function< void(Real, const HostVectorView &, Real &, HostVectorView &)> funcs)
 
template<typename ViewType >
static void putarr_attime (const ViewType &arr, Real time, const std::string &name)
 
static Real zbrent (std::function< Real(Real)> func, Real x1, Real x2, Real tol)
 

Member Typedef Documentation

◆ HostVectorView

using orb5x::Util::HostVectorView = Kokkos::View<Real*, Kokkos::HostSpace>

Member Function Documentation

◆ A3deriv()

static void orb5x::Util::A3deriv ( const Kokkos::View< Real * > &  y_in,
const Kokkos::View< Real * > &  x_in,
Kokkos::View< Real * > &  dydx_out,
const Kokkos::View< Real * > &  x_out 
)
static

◆ A3interp()

static void orb5x::Util::A3interp ( const Kokkos::View< Real * > &  y_in,
const Kokkos::View< Real * > &  x_in,
Kokkos::View< Real * > &  y_out,
const Kokkos::View< Real * > &  x_out 
)
static

◆ append_stat()

static void orb5x::Util::append_stat ( const std::string &  filename,
const std::string &  data 
)
static

◆ choose_int() [1/2]

static int orb5x::Util::choose_int ( const Kokkos::View< int * > &  arr,
int  val 
)
static

◆ choose_int() [2/2]

static int orb5x::Util::choose_int ( const std::vector< int > &  arr,
int  val 
)
static

◆ creatd_stat()

static void orb5x::Util::creatd_stat ( const std::string &  filename)
static

◆ execute_command_line_wrapper()

static int orb5x::Util::execute_command_line_wrapper ( const std::string &  command)
static

◆ gaussj()

static void orb5x::Util::gaussj ( Kokkos::View< Real ** > &  a,
Kokkos::View< Real ** > &  b,
int  n,
int  m 
)
static

◆ interp1()

static Real orb5x::Util::interp1 ( Real  x,
const Kokkos::View< Real * > &  xp,
const Kokkos::View< Real * > &  yp 
)
static

◆ log2real()

static Real orb5x::Util::log2real ( bool  lin)
static

◆ mrqcof()

static void orb5x::Util::mrqcof ( const Kokkos::View< Real * > &  x,
const Kokkos::View< Real * > &  y,
const Kokkos::View< Real * > &  sig,
Kokkos::View< Real * > &  a,
const Kokkos::View< int * > &  ia,
Kokkos::View< Real ** > &  alpha,
Kokkos::View< Real * > &  beta,
Real chisq,
std::function< void(Real, const HostVectorView &, Real &, HostVectorView &)>  funcs 
)
static

◆ putarr_attime()

template<typename ViewType >
static void orb5x::Util::putarr_attime ( const ViewType &  arr,
Real  time,
const std::string &  name 
)
static

◆ zbrent()

static Real orb5x::Util::zbrent ( std::function< Real(Real)>  func,
Real  x1,
Real  x2,
Real  tol 
)
static

The documentation for this class was generated from the following file: