src/system.cpp
/**
 * Initialize spins to the maximum magnetization and minimum energy configuration.
 */
Initialize spins to the maximum magnetization and minimum energy configuration.
Initialize spins to the maximum magnetization and minimum energy configuration .
void System::init_spins_max_M() {
    for (int i = 0; i < this->N_atm; ++i) {
        this->spins_vector[i] = this->spins_values[0];
    }
    this->E_config = this->energy();
    this->M_config = this->magnetization();
}
void System :: init_spins_max_M ( ) { for ( int i = 0 ; i < this -> N_atm ; ++ i ) { this -> spins_vector [ i ] = this -> spins_values [ 0 ] ; } this -> E_config = this -> energy ( ) ; this -> M_config = this -> magnetization ( ) ; }
Initialize spins to the maximum magnetization and minimum energy configuration.
Initialize spins to the maximum magnetization and minimum energy configuration .