Skip to content

Commit

Permalink
Fix typo (erf-model#1265)
Browse files Browse the repository at this point in the history
* update particle functionality

* fix typo
  • Loading branch information
asalmgren authored Oct 12, 2023
1 parent 522382e commit 0fd0e07
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Source/IO/NCColumnFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,16 @@ ERF::writeToNCColumnFile(const int lev,
const int idx_vec = k - kstart;
const int ialpha = i - iloc;
const int jalpha = j - jloc;
auto tmp = velx(i+iloc_shift,j,k) * alpha_u(ialpha, jalpha);
Gpu::Atomic::Add(&(ucol[idx_vec]), tmp);
tmp = vely(i,j+jloc_shift,k) * alpha_v(ialpha, jalpha);
Gpu::Atomic::Add(&(vcol[idx_vec]), tmp);
tmp = state(i,j,k,Temp_comp) / state(i,j,k,Rho_comp)
* alpha_theta(ialpha, jalpha);
Gpu::Atomic::Add(&(thetacol[idx_vec]), tmp);

auto tmpx = velx(i+iloc_shift,j,k) * alpha_u(ialpha, jalpha);
Gpu::Atomic::Add(&(ucol[idx_vec]), tmpx);

auto tmpy = vely(i,j+jloc_shift,k) * alpha_v(ialpha, jalpha);
Gpu::Atomic::Add(&(vcol[idx_vec]), tmpy);

auto tmpt = state(i,j,k,RhoTheta_comp) / state(i,j,k,Rho_comp)
* alpha_theta(ialpha, jalpha);
Gpu::Atomic::Add(&(thetacol[idx_vec]), tmpt);
});
}
}
Expand Down

0 comments on commit 0fd0e07

Please sign in to comment.