Skip to content
Snippets Groups Projects
Commit 0ca0bcd0 authored by Christian Godenschwager's avatar Christian Godenschwager
Browse files

Fixed some copy&paste bugs

parent 7d78da92
No related merge requests found
......@@ -44,7 +44,7 @@ void fullFieldTransfer()
Field<double,4> h_f1 ( 3, 4, 2, 42.0, field::fzyx );
Field<double,4> h_f2 ( 3, 4, 2, 27.0, field::fzyx );
cuda::GPUField<double> d_f ( 3, 4, 2, 4, 8.0, field::fzyx );
cuda::GPUField<double> d_f ( 3, 4, 2, 4, 0, field::fzyx );
// Transfer h_f1 from CPU to GPU d_f
......@@ -100,7 +100,7 @@ void blockStorageAndGui( int argc, char ** argv )
return new GPUField( s->getNumberOfXCells(*block),
s->getNumberOfYCells(*block),
s->getNumberOfZCells(*block),
1 , 1.0);
1 , 1);
},
"GPU Field" );
......
......@@ -54,7 +54,7 @@ void hostToHost()
void hostToDevice()
{
Field<double, 1> hostField(SIZE_X, SIZE_Y, SIZE_Z, 4321.0, LAYOUT);
cuda::GPUField<double> deviceField(SIZE_X, SIZE_Y, SIZE_Z, 1, 0.0, LAYOUT);
cuda::GPUField<double> deviceField(SIZE_X, SIZE_Y, SIZE_Z, 1, 0, LAYOUT);
double startTime = MPI_Wtime();
for (int i = 0; i < NUM_ITER; ++i) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment