mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
address feedback to two_phase_material test
This commit is contained in:
parent
88b05a4126
commit
f9b595e078
@ -87,7 +87,7 @@ BOOST_AUTO_TEST_CASE(TestSimpleInterpolation)
|
||||
|
||||
NorneEvaluation* gpuAdInput;
|
||||
NorneEvaluation* gpuAdResOnGPU;
|
||||
NorneEvaluation gpuAdResOnCPU[1];
|
||||
NorneEvaluation gpuAdResOnCPU;
|
||||
|
||||
OPM_GPU_SAFE_CALL(cudaMalloc(&gpuAdInput, sizeof(NorneEvaluation)));
|
||||
OPM_GPU_SAFE_CALL(cudaMalloc(&gpuAdResOnGPU, sizeof(NorneEvaluation)));
|
||||
@ -97,6 +97,6 @@ BOOST_AUTO_TEST_CASE(TestSimpleInterpolation)
|
||||
OPM_GPU_SAFE_CALL(cudaDeviceSynchronize());
|
||||
OPM_GPU_SAFE_CALL(cudaMemcpy(gpuAdResOnCPU, gpuAdResOnGPU, sizeof(NorneEvaluation), cudaMemcpyDeviceToHost));
|
||||
|
||||
BOOST_CHECK(gpuAdResOnCPU[0] == cpuInterpolatedEval);
|
||||
BOOST_CHECK(gpuAdResOnCPU == cpuInterpolatedEval);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user