Skip to content
Snippets Groups Projects
Commit 805cdcec authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

make Kolmogorov force *actually* A*sin(y)

parent 502d2968
No related branches found
No related tags found
No related merge requests found
......@@ -218,12 +218,12 @@ void fluid_solver<R>::add_forcing(\
if (this->cd->myrank == this->cd->rank[this->fmode]) \
{ \
cindex = ((this->fmode - this->cd->starts[0]) * this->cd->sizes[1])*this->cd->sizes[2]; \
field[cindex*3+2][1] -= this->famplitude*factor/2; \
field[cindex*3+2][0] -= this->famplitude*factor/2; \
} \
if (this->cd->myrank == this->cd->rank[this->cd->sizes[0] - this->fmode]) \
{ \
cindex = ((this->cd->sizes[0] - this->fmode - this->cd->starts[0]) * this->cd->sizes[1])*this->cd->sizes[2]; \
field[cindex*3+2][1] += this->famplitude*factor/2; \
field[cindex*3+2][0] -= this->famplitude*factor/2; \
} \
} \
\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment