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_3d_i Class Reference

#include <field_type.hpp>

Inheritance diagram for field_3d_i:
Inheritance graph
[legend]
Collaboration diagram for field_3d_i:
Collaboration graph
[legend]

Public Member Functions

 field_3d_i ()
 
 field_3d_i (int size, bool isperio)
 
 field_3d_i (field_type &other)
 
 field_3d_i (const field_3d_i &other)
 
 ~field_3d_i ()
 
void i_access (std::vector< int > &position, int &out)
 
void i_next (bool &finish, std::vector< int > &pos, int &out)
 
void fill_ghost (int num_rows)
 
field_3d_ioperator= (const field_3d_i &other)
 
void get_3dfield_i (int ***&x) const
 
void i_adjacent (std::vector< int > &position, int *out)
 
void fill_rand (std::vector< int > &position)
 
void fill_one (std::vector< int > &position)
 
void fill_zero (std::vector< int > &position)
 
void change_to_test (std::vector< int > &position, ham_type *hamil)
 
void fill_val_i (std::vector< int > &position, int val)
 
void send_data (int dest_rank)
 
void recv_data (int src_rank)
 
- Public Member Functions inherited from field_3d
 field_3d ()
 
 ~field_3d ()
 
void next (bool &finish, std::vector< int > &pos)
 
bool check_zero (std::vector< int > &position)
 
void get_3dzero (bool ***&x) const
 
int findnum ()
 
- Public Member Functions inherited from field_type
 field_type ()
 
 ~field_type ()
 
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 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_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 void new_mem ()
 
virtual void get_2dfield_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 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
 

Protected Attributes

int *** spin
 
- Protected Attributes inherited from field_3d
bool *** iszero
 
- Protected Attributes inherited from field_type
int ft
 
int dim
 
int insize
 
int totsize
 
bool periodic
 

Constructor & Destructor Documentation

field_3d_i::field_3d_i ( )
field_3d_i::field_3d_i ( int  size,
bool  isperio 
)
field_3d_i::field_3d_i ( field_type other)
field_3d_i::field_3d_i ( const field_3d_i other)
field_3d_i::~field_3d_i ( )

Member Function Documentation

void field_3d_i::change_to_test ( std::vector< int > &  position,
ham_type hamil 
)
virtual

Reimplemented from field_type.

void field_3d_i::fill_ghost ( int  num_rows)
virtual

Reimplemented from field_type.

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

Reimplemented from field_type.

void field_3d_i::fill_rand ( std::vector< int > &  position)
virtual

Reimplemented from field_type.

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

Reimplemented from field_type.

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

Reimplemented from field_type.

void field_3d_i::get_3dfield_i ( int ***&  x) const
virtual

Reimplemented from field_type.

void field_3d_i::i_access ( std::vector< int > &  position,
int &  out 
)
virtual

Reimplemented from field_type.

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

Reimplemented from field_type.

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

Reimplemented from field_type.

field_3d_i& field_3d_i::operator= ( const field_3d_i other)
void field_3d_i::recv_data ( int  src_rank)
virtual

Reimplemented from field_type.

void field_3d_i::send_data ( int  dest_rank)
virtual

Reimplemented from field_type.

Member Data Documentation

int*** field_3d_i::spin
protected

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