MC_HAMR  v0.01
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials for Heat Assisted Magnetic Recording
Public Member Functions | Protected Attributes | List of all members
field_type Class Reference

#include <field_type.hpp>

Inheritance diagram for field_type:
Inheritance graph
[legend]

Public Member Functions

 field_type ()
 
 ~field_type ()
 
virtual void i_access (std::vector< int > &postion, int &out)
 
virtual void i_adjacent (std::vector< int > &position, int *out)
 
virtual void h_access (std::vector< int > &position, std::vector< double > &out)
 
virtual void h_adjacent (std::vector< int > &position, double **out)
 
virtual void h_2adjacent (std::vector< int > &position, double **out)
 
virtual void h_arb_adj (std::vector< int > &position, std::vector< int > &dxs, std::vector< int > &dys, std::vector< int > &dzs, double **out, int num)
 
virtual void next (bool &finish, std::vector< int > &pos)
 
virtual void i_next (bool &finish, std::vector< int > &pos, int &out)
 
virtual void h_next (bool &finish, std::vector< int > &pos, std::vector< double > &out)
 
int get_insize () const
 
int get_totsize () const
 
bool get_perio () const
 
int get_dim () const
 
virtual void fill_ghost (int num_rows)
 
virtual void fill_rand (std::vector< int > &position)
 
virtual void fill_zero (std::vector< int > &position)
 
virtual void fill_one (std::vector< int > &position)
 
virtual void fill_val_i (std::vector< int > &position, int val)
 
virtual void fill_val_h (std::vector< int > &position, double x, double y, double z)
 
virtual void add_val_h (std::vector< int > &position, std::vector< double > &in)
 
void allzero ()
 
virtual bool check_zero (std::vector< int > &position)
 
virtual void change_to_test (std::vector< int > &position, ham_type *hamil)
 
virtual void new_mem ()
 
virtual int findnum ()
 
virtual void get_2dfield_i (int **&x) const
 
virtual void get_3dfield_i (int ***&x) const
 
virtual void get_1dfield_h (double *&x, double *&y, double *&z) const
 
virtual void get_2dfield_h (double **&x, double **&y, double **&z) const
 
virtual void get_3dfield_h (double ***&x, double ***&y, double ***&z) const
 
virtual void get_2dzero (bool **&x) const
 
virtual void get_3dzero (bool ***&x) const
 
virtual void print (std::string filename, std::string arrname)
 
virtual void print_setup (const std::string filename, const std::string groupname, const int Tmax, const int Hmax)
 
int get_ft () const
 
virtual void send_data (int dest_rank)
 
virtual void recv_data (int src_rank)
 

Protected Attributes

int ft
 
int dim
 
int insize
 
int totsize
 
bool periodic
 

Constructor & Destructor Documentation

field_type::field_type ( )
inline
field_type::~field_type ( )
inline

Member Function Documentation

virtual void field_type::add_val_h ( std::vector< int > &  position,
std::vector< double > &  in 
)
inlinevirtual

Reimplemented in field_3d_h, and field_2d_h.

void field_type::allzero ( )
virtual void field_type::change_to_test ( std::vector< int > &  position,
ham_type hamil 
)
inlinevirtual
virtual bool field_type::check_zero ( std::vector< int > &  position)
inlinevirtual

Reimplemented in field_3d, field_2d, and field_cluster_h.

virtual void field_type::fill_ghost ( int  num_rows)
inlinevirtual

Reimplemented in field_3d_i, field_3d_h, field_2d_i, and field_2d_h.

virtual void field_type::fill_one ( std::vector< int > &  position)
inlinevirtual

Reimplemented in field_3d_i, field_3d_h, field_2d_i, and field_2d_h.

virtual void field_type::fill_rand ( std::vector< int > &  position)
inlinevirtual
virtual void field_type::fill_val_h ( std::vector< int > &  position,
double  x,
double  y,
double  z 
)
inlinevirtual

Reimplemented in field_3d_h, and field_2d_h.

virtual void field_type::fill_val_i ( std::vector< int > &  position,
int  val 
)
inlinevirtual

Reimplemented in field_3d_i, and field_2d_i.

virtual void field_type::fill_zero ( std::vector< int > &  position)
inlinevirtual

Reimplemented in field_3d_i, field_3d_h, field_2d_i, and field_2d_h.

virtual int field_type::findnum ( )
inlinevirtual

Reimplemented in field_3d, field_2d, and field_cluster_h.

virtual void field_type::get_1dfield_h ( double *&  x,
double *&  y,
double *&  z 
) const
inlinevirtual

Reimplemented in field_cluster_h.

virtual void field_type::get_2dfield_h ( double **&  x,
double **&  y,
double **&  z 
) const
inlinevirtual

Reimplemented in field_2d_h.

virtual void field_type::get_2dfield_i ( int **&  x) const
inlinevirtual

Reimplemented in field_2d_i.

virtual void field_type::get_2dzero ( bool **&  x) const
inlinevirtual

Reimplemented in field_2d.

virtual void field_type::get_3dfield_h ( double ***&  x,
double ***&  y,
double ***&  z 
) const
inlinevirtual

Reimplemented in field_3d_h.

virtual void field_type::get_3dfield_i ( int ***&  x) const
inlinevirtual

Reimplemented in field_3d_i.

virtual void field_type::get_3dzero ( bool ***&  x) const
inlinevirtual

Reimplemented in field_3d.

int field_type::get_dim ( ) const
inline
int field_type::get_ft ( ) const
inline
int field_type::get_insize ( ) const
inline
bool field_type::get_perio ( ) const
inline
int field_type::get_totsize ( ) const
inline
virtual void field_type::h_2adjacent ( std::vector< int > &  position,
double **  out 
)
inlinevirtual

Reimplemented in field_3d_h.

virtual void field_type::h_access ( std::vector< int > &  position,
std::vector< double > &  out 
)
inlinevirtual

Reimplemented in field_3d_h, field_2d_h, and field_cluster_h.

virtual void field_type::h_adjacent ( std::vector< int > &  position,
double **  out 
)
inlinevirtual

Reimplemented in field_3d_h, and field_2d_h.

virtual void field_type::h_arb_adj ( std::vector< int > &  position,
std::vector< int > &  dxs,
std::vector< int > &  dys,
std::vector< int > &  dzs,
double **  out,
int  num 
)
inlinevirtual

Reimplemented in field_3d_h.

virtual void field_type::h_next ( bool &  finish,
std::vector< int > &  pos,
std::vector< double > &  out 
)
inlinevirtual

Reimplemented in field_3d_h, field_2d_h, and field_cluster_h.

virtual void field_type::i_access ( std::vector< int > &  postion,
int &  out 
)
inlinevirtual

Reimplemented in field_3d_i, and field_2d_i.

virtual void field_type::i_adjacent ( std::vector< int > &  position,
int *  out 
)
inlinevirtual

Reimplemented in field_3d_i, and field_2d_i.

virtual void field_type::i_next ( bool &  finish,
std::vector< int > &  pos,
int &  out 
)
inlinevirtual

Reimplemented in field_3d_i, and field_2d_i.

virtual void field_type::new_mem ( )
inlinevirtual
virtual void field_type::next ( bool &  finish,
std::vector< int > &  pos 
)
inlinevirtual

Reimplemented in field_3d, and field_2d.

virtual void field_type::print ( std::string  filename,
std::string  arrname 
)
inlinevirtual

Reimplemented in field_3d_h.

virtual void field_type::print_setup ( const std::string  filename,
const std::string  groupname,
const int  Tmax,
const int  Hmax 
)
inlinevirtual

Reimplemented in field_3d_h.

virtual void field_type::recv_data ( int  src_rank)
inlinevirtual

Reimplemented in field_3d_i, field_3d_h, field_2d_i, and field_2d_h.

virtual void field_type::send_data ( int  dest_rank)
inlinevirtual

Reimplemented in field_3d_i, field_3d_h, field_2d_i, and field_2d_h.

Member Data Documentation

int field_type::dim
protected
int field_type::ft
protected
int field_type::insize
protected
bool field_type::periodic
protected
int field_type::totsize
protected

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