avoid redundant use of boolean literals
This commit is contained in:
@ -69,7 +69,7 @@ int YukawaColloidT::init(const int ntypes,
|
||||
|
||||
_max_rad_size=static_cast<int>(static_cast<double>(ef_nall)*1.10);
|
||||
|
||||
if (_shared_view==false)
|
||||
if (!_shared_view)
|
||||
c_rad.alloc(_max_rad_size,*(this->ucl_device),UCL_WRITE_ONLY,UCL_READ_ONLY);
|
||||
|
||||
rad_tex.get_texture(*(this->pair_program),"rad_tex");
|
||||
@ -157,7 +157,7 @@ void YukawaColloidT::compute(const int f_ago, const int inum_full,
|
||||
|
||||
if (nall>_max_rad_size) {
|
||||
_max_rad_size=static_cast<int>(static_cast<double>(nall)*1.10);
|
||||
if (_shared_view==false) {
|
||||
if (!_shared_view) {
|
||||
c_rad.resize(_max_rad_size);
|
||||
rad_tex.bind_float(c_rad,1);
|
||||
}
|
||||
@ -229,7 +229,7 @@ int** YukawaColloidT::compute(const int ago, const int inum_full,
|
||||
|
||||
if (nall>_max_rad_size) {
|
||||
_max_rad_size=static_cast<int>(static_cast<double>(nall)*1.10);
|
||||
if (_shared_view==false) {
|
||||
if (!_shared_view) {
|
||||
c_rad.resize(_max_rad_size);
|
||||
rad_tex.bind_float(c_rad,1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user