Skip to content

Commit

Permalink
Fixed timers.
Browse files Browse the repository at this point in the history
  • Loading branch information
lars2015 committed Jan 11, 2025
1 parent 8ee6bc1 commit efe406e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/mptrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2685,12 +2685,12 @@ void module_convection(
cache_t *cache,
const double *dt) {

/* Create random numbers... */
module_rng(ctl, cache->rs, (size_t) atm->np, 0);

/* Set timer... */
SELECT_TIMER("MODULE_CONVECTION", "PHYSICS", NVTX_GPU);

/* Create random numbers... */
module_rng(ctl, cache->rs, (size_t) atm->np, 0);

/* Loop over particles... */
PARTICLE_LOOP(0, atm->np, 1, "acc data present(ctl,met0,met1,atm,cache,dt)") {

Expand Down Expand Up @@ -2798,12 +2798,12 @@ void module_diffusion_meso(
cache_t *cache,
const double *dt) {

/* Create random numbers... */
module_rng(ctl, cache->rs, 3 * (size_t) atm->np, 1);

/* Set timer... */
SELECT_TIMER("MODULE_DIFFMESO", "PHYSICS", NVTX_GPU);

/* Create random numbers... */
module_rng(ctl, cache->rs, 3 * (size_t) atm->np, 1);

/* Loop over particles... */
PARTICLE_LOOP(0, atm->np, 1, "acc data present(ctl,met0,met1,atm,cache,dt)") {

Expand Down Expand Up @@ -2876,12 +2876,12 @@ void module_diffusion_pbl(
cache_t *cache,
const double *dt) {

/* Create random numbers... */
module_rng(ctl, cache->rs, 3 * (size_t) atm->np, 1);

/* Set timer... */
SELECT_TIMER("MODULE_DIFFPBL", "PHYSICS", NVTX_GPU);

/* Create random numbers... */
module_rng(ctl, cache->rs, 3 * (size_t) atm->np, 1);

/* Loop over particles... */
PARTICLE_LOOP(0, atm->np, 1, "acc data present(ctl,met0,met1,atm,cache,dt)") {

Expand Down Expand Up @@ -3001,12 +3001,12 @@ void module_diffusion_turb(
cache_t *cache,
const double *dt) {

/* Create random numbers... */
module_rng(ctl, cache->rs, 3 * (size_t) atm->np, 1);

/* Set timer... */
SELECT_TIMER("MODULE_DIFFTURB", "PHYSICS", NVTX_GPU);

/* Create random numbers... */
module_rng(ctl, cache->rs, 3 * (size_t) atm->np, 1);

/* Loop over particles... */
PARTICLE_LOOP(0, atm->np, 1,
"acc data present(ctl,clim,met0,met1,atm,cache,dt)") {
Expand Down

0 comments on commit efe406e

Please sign in to comment.