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

#include <field_type.hpp>

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

Public Member Functions

 field_cluster_h ()
 
 field_cluster_h (std::string filename)
 
 field_cluster_h (field_type &other)
 
 field_cluster_h (const field_cluster_h &other)
 
 ~field_cluster_h ()
 
void h_access (std::vector< int > &position, std::vector< double > &out)
 
void h_next (bool &finish, std::vector< int > &pos, std::vector< double > &out)
 
field_cluster_hoperator= (const field_cluster_h &other)
 
int findnum ()
 
void get_1dfield_h (double *&x, double *&y, double *&z) const
 
void fill_rand (std::vector< int > &position)
 
bool check_zero (std::vector< int > &position)
 
void change_to_test (std::vector< int > &position, ham_type *hamil)
 
- 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_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)
 
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_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 new_mem ()
 
virtual void get_2dfield_i (int **&x) const
 
virtual void get_3dfield_i (int ***&x) 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

double * spinx
 
double * spiny
 
double * spinz
 
- Protected Attributes inherited from field_type
int ft
 
int dim
 
int insize
 
int totsize
 
bool periodic
 

Constructor & Destructor Documentation

field_cluster_h::field_cluster_h ( )
field_cluster_h::field_cluster_h ( std::string  filename)
field_cluster_h::field_cluster_h ( field_type other)
field_cluster_h::field_cluster_h ( const field_cluster_h other)
field_cluster_h::~field_cluster_h ( )

Member Function Documentation

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

Reimplemented from field_type.

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

Reimplemented from field_type.

void field_cluster_h::fill_rand ( std::vector< int > &  position)
inlinevirtual

Reimplemented from field_type.

int field_cluster_h::findnum ( )
inlinevirtual

Reimplemented from field_type.

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

Reimplemented from field_type.

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

Reimplemented from field_type.

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

Reimplemented from field_type.

field_cluster_h& field_cluster_h::operator= ( const field_cluster_h other)

Member Data Documentation

double* field_cluster_h::spinx
protected
double* field_cluster_h::spiny
protected
double* field_cluster_h::spinz
protected

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