30 numberOfCells(numberOfCells_),
31 memoryLocation(memoryLocation_),
32 targetDevice(targetDevice_) {
33 QIn = tarch::allocateMemory<inType*>(numberOfCells_, memoryLocation_, targetDevice_);
34 cellCentre = tarch::allocateMemory<tarch::la::Vector<Dimensions, double>>(numberOfCells_, memoryLocation_, targetDevice_);
35 cellSize = tarch::allocateMemory<tarch::la::Vector<Dimensions, double>>(numberOfCells_, memoryLocation_, targetDevice_);
36 t = tarch::allocateMemory<double>(numberOfCells_, memoryLocation_, targetDevice_);
37 dt = tarch::allocateMemory<double>(numberOfCells_, memoryLocation_, targetDevice_);
38 id = tarch::allocateMemory<int>(numberOfCells_, memoryLocation_, targetDevice_);
39 QOut = tarch::allocateMemory<outType*>(numberOfCells_, memoryLocation_, targetDevice_);
40 maxEigenvalue = tarch::allocateMemory<double>(numberOfCells_, memoryLocation_, targetDevice_);
CellData(inType *QIn_, const tarch::la::Vector< Dimensions, double > &cellCentre_, const tarch::la::Vector< Dimensions, double > &cellSize_, double t_, double dt_, outType *QOut_, tarch::MemoryLocation memoryLocation_=tarch::MemoryLocation::Heap, int targetDevice_=tarch::accelerator::Device::HostDevice)
Construct patch data object for one single cell.