add some comments [ci skip]

This commit is contained in:
danielque
2020-09-21 12:36:58 +02:00
parent 40e464ab5e
commit d605ea1701

View File

@ -190,11 +190,11 @@ protected:
const turbulenceModel& turbulence_; const turbulenceModel& turbulence_;
struct particleProperty { struct particleProperty {
void** property; void** property; // pointer to per-particle data; memory deallocation by cfdemCloud
const std::type_info* ti; const std::type_info* ti; // type of particle data (int**, double**)
int size; int size; // size of single particle data; memory allocation by cfdemCloud if size > 0
double initVal; double initVal; // initial property value
bool reset; bool reset; // if true, data is reset to initial value every coupling step
template<typename T> template<typename T>
T& ref() { T& ref() {
if (*ti == typeid(T)) return *reinterpret_cast<T*>(&property); if (*ti == typeid(T)) return *reinterpret_cast<T*>(&property);
@ -202,7 +202,7 @@ protected:
} }
}; };
HashTable<particleProperty> particlePropertyTable; HashTable<particleProperty> particlePropertyTable; // table of registered per-particle properties
autoPtr<dataExchangeModel> dataExchangeModel_; autoPtr<dataExchangeModel> dataExchangeModel_;