diff --git a/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/Probe.cu b/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/Probe.cu index 1273d72ba82c1b757fa5576d0838706f4426efe3..5038e41ef802fe2e36fcd7a8f0e0c613beab0b74 100644 --- a/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/Probe.cu +++ b/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/Probe.cu @@ -569,15 +569,12 @@ void Probe::appendTimeseriesFile(Parameter* para, int level, int t) real coeff = postProcessingVariables[arr].conversionFactor(level); for(uint point=0; point<probeStruct->nPoints; point++) { - real v = probeStruct->quantitiesArrayH[calcArrayIndex(point, probeStruct->nPoints, timestep, probeStruct->nTimesteps, arrOff+arr)]*coeff; - if(val==1) printf("writing %f \n", v); - timestep_array[val] = v; + timestep_array[val] = probeStruct->quantitiesArrayH[calcArrayIndex(point, probeStruct->nPoints, timestep, probeStruct->nTimesteps, arrOff+arr)]*coeff; val++; } } } - printf("u: %f \n", timestep_array[1]); out.write((char*) timestep_array, sizeof(real)*vals_per_timestep); } out.close(); diff --git a/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/WallModelProbe.cu b/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/WallModelProbe.cu index 1f524b61aa916c92c601aed8344145d2155fef31..7ff2c4e3c6cab01d77c092414a3d0235fa1e6153 100644 --- a/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/WallModelProbe.cu +++ b/src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/WallModelProbe.cu @@ -17,7 +17,8 @@ #include "lbm/constants/NumericConstants.h" using namespace vf::lbm::constant; - +typedef thrust::device_vector<real>::iterator valIterator; +typedef thrust::device_vector<uint>::iterator indIterator; /////////////////////////////////////////////////////////////////////////////////// bool WallModelProbe::isAvailableStatistic(Statistic _variable) { @@ -135,8 +136,6 @@ T spatial_mean(T* device_pointer, uint numberOfPoints) return thrust::reduce(thrust_pointer, thrust_pointer+numberOfPoints)/real(numberOfPoints); } -typedef thrust::device_vector<real>::iterator valIterator; -typedef thrust::device_vector<uint>::iterator indIterator; template<typename T> T index_based_spatial_mean(T* device_pointer, thrust::device_ptr<uint> indeces_ptr, uint numberOfIndeces) {