Moved definition location of AC_nx_min etc. Otherwide DSL does not compile the code correctly!!!

This commit is contained in:
Miikka Vaisala
2019-09-02 18:29:16 +08:00
parent b4cd92da0c
commit f3a36ec276
3 changed files with 9 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ gradients(in VectorField uu)
#if LSINK
Vector
sink_gravity(int3 globalVertexIdx){
int accretion_switch = AC_switch_accretion;
int accretion_switch = int(AC_switch_accretion);
if (accretion_switch == 1){
Vector force_gravity;
const Vector grid_pos = (Vector){(globalVertexIdx.x - AC_nx_min) * AC_dsx,