Develop #14
@ -53,8 +53,8 @@ vec_3d PenningTrap::v_func(unsigned int i, unsigned int j, double dt)
|
||||
case 2:
|
||||
return dt * this->k_v[2][j];
|
||||
case 3:
|
||||
return (dt / 6.) * (this->k_v[0][j] + this->k_v[1][j] +
|
||||
this->k_v[2][j] + this->k_v[3][j]);
|
||||
return (dt / 6.) * (this->k_v[0][j] + 2.*this->k_v[1][j] +
|
||||
2.*this->k_v[2][j] + this->k_v[3][j]);
|
||||
default:
|
||||
std::cout << "Not valid!" << std::endl;
|
||||
abort();
|
||||
@ -71,8 +71,8 @@ vec_3d PenningTrap::r_func(unsigned int i, unsigned int j, double dt)
|
||||
case 2:
|
||||
return dt * this->k_r[2][j];
|
||||
case 3:
|
||||
return (dt / 6.) * (this->k_r[0][j] + this->k_r[1][j] +
|
||||
this->k_r[2][j] + this->k_r[3][j]);
|
||||
return (dt / 6.) * (this->k_r[0][j] + 2.*this->k_r[1][j] +
|
||||
2.*this->k_r[2][j] + this->k_r[3][j]);
|
||||
default:
|
||||
std::cout << "Not valid!" << std::endl;
|
||||
abort();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user