Adding sph/taitwater in lib/gpu

This commit is contained in:
Trung Nguyen
2023-12-07 17:22:45 -06:00
parent 6fe16c7606
commit cad4c25750
8 changed files with 835 additions and 7 deletions

View File

@ -104,7 +104,7 @@ int EDPDT::init(const int ntypes,
this->atom->type_pack4(ntypes,lj_types,coeff2,host_write,host_power,host_kappa,
host_powerT,host_cutT);
UCL_H_Vec<int> dview_mass(ntypes, *(this->ucl_device), UCL_WRITE_ONLY);
UCL_H_Vec<numtyp> dview_mass(ntypes, *(this->ucl_device), UCL_WRITE_ONLY);
for (int i = 0; i < ntypes; i++)
dview_mass[i] = host_mass[i];
mass.alloc(ntypes,*(this->ucl_device), UCL_READ_ONLY);