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

#include <field_type.hpp>

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

Public Member Functions

 field_2d ()
 
 ~field_2d ()
 
void next (bool &finish, std::vector< int > &pos)
 
bool check_zero (std::vector< int > &position)
 
void get_2dzero (bool **&x) const
 
int findnum ()
 
- Public Member Functions inherited from field_type
 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 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 void change_to_test (std::vector< int > &position, ham_type *hamil)
 
virtual void new_mem ()
 
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_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

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

Constructor & Destructor Documentation

field_2d::field_2d ( )
inline
field_2d::~field_2d ( )
inline

Member Function Documentation

bool field_2d::check_zero ( std::vector< int > &  position)
inlinevirtual

Reimplemented from field_type.

int field_2d::findnum ( )
virtual

Reimplemented from field_type.

void field_2d::get_2dzero ( bool **&  x) const
inlinevirtual

Reimplemented from field_type.

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

Reimplemented from field_type.

Member Data Documentation

bool** field_2d::iszero
protected

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