diff --git a/Sediment_kernel.cu b/Sediment_kernel.cu index e86ef68..93ecafc 100644 --- a/Sediment_kernel.cu +++ b/Sediment_kernel.cu @@ -1168,6 +1168,7 @@ __global__ void updatezom(int nx, int ny, DECNUM cf, DECNUM cf2, DECNUM fw, DECN int tx = threadIdx.x; int ty = threadIdx.y; + //printf("%d\n", i); if (ix < nx && iy < ny) { diff --git a/Wave_gpu.cu b/Wave_gpu.cu index 2cd624d..0e1636e 100644 --- a/Wave_gpu.cu +++ b/Wave_gpu.cu @@ -2467,7 +2467,7 @@ int main(int argc, char **argv) // Calculate initial maximum timestep - FLOWDT << > >(nx, ny, dx, 0.5*XParam.CFL, dtflow_g, hh_g); + FLOWDT << > >(nx, ny, dx, 0.5f*XParam.CFL, dtflow_g, hh_g); CUDA_CHECK(cudaDeviceSynchronize()); diff --git a/Wavestep.cu b/Wavestep.cu index de95ef3..da1c3f2 100644 --- a/Wavestep.cu +++ b/Wavestep.cu @@ -11,7 +11,7 @@ void CUDA_CHECK(cudaError CUDerr) __FILE__, __LINE__, cudaGetErrorString(CUDerr)); - write_text_to_log_file("Cuda error in file " + std::string(__FILE__) + " in line " + std::to_string(__LINE__) + std::string(cudaGetErrorString(CUDerr))); + write_text_to_log_file("Cuda error in file " + std::string(__FILE__) + " in line " + std::to_string(__LINE__) + " " + std::string(cudaGetErrorString(CUDerr))); exit(EXIT_FAILURE); }