method to do the periodic boundary conditions concode_field_sep double k concode_elem_sep double confs concode_elem_sep Spin[][] system concode_elem_sep double T concode_elem_sep double probability concode_elem_sep double num1 concode_elem_sep double E concode_elem_sep double num0 concode_elem_sep int N concode_elem_sep double J concode_elem_sep double num2 concode_field_sep void setSpinState concode_elem_sep void setNum1 concode_elem_sep void setNum0 concode_elem_sep double getNum2 concode_elem_sep double getNum1 concode_elem_sep int getSpinState concode_elem_sep double getNum0 concode_elem_sep void setNum2 concode_elem_sep double getJ concode_elem_sep double getKT concode_elem_sep void setT concode_elem_sep int getN concode_elem_sep void update concode_elem_sep void update concode_elem_sep double getT concode_elem_sep void calcTotalE concode_elem_sep Spin[][] getState concode_elem_sep double getProbability concode_elem_sep double calcLocalE concode_elem_sep void updateE concode_elem_sep void setProbability concode_elem_sep void changeSpin concode_elem_sep double getE
int function ( int arg0 ) { return ( ( arg0 + N ) % N ) ; }