trearrange profiling call - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 7f45ab66ff84ca552892b16da784395b5b3e5082
 (DIR) parent 2be4b9adda7260b17b0f543c1d8eb2232aeb9f99
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Fri, 23 Jan 2015 09:31:58 +0100
       
       rearrange profiling call
       
       Diffstat:
         M src/device.cu                       |       9 +++++----
       
       1 file changed, 5 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/src/device.cu b/src/device.cu
       t@@ -1861,10 +1861,8 @@ __host__ void DEM::startTime()
                                        new_pressure,
                                        dev_darcy_p,
                                        wall0_iz);
       -                        if (PROFILING == 1)
       -                            stopTimer(&kernel_tic, &kernel_toc, &kernel_elapsed,
       -                                    &t_setDarcyTopPressure);
                                cudaThreadSynchronize();
       +                        checkForCudaErrorsIter("Post setUpperPressureNS", iter);
        
                                // Modulate the pressures at the top wall
                                setDarcyTopWallPressure
       t@@ -1875,7 +1873,10 @@ __host__ void DEM::startTime()
                                cudaThreadSynchronize();
                                checkForCudaErrorsIter("Post setDarcyTopWallPressure",
                                        iter);
       -                        checkForCudaErrorsIter("Post setUpperPressureNS", iter);
       +
       +                        if (PROFILING == 1)
       +                            stopTimer(&kernel_tic, &kernel_toc, &kernel_elapsed,
       +                                    &t_setDarcyTopPressure);
                            }
        
                            if (PROFILING == 1)