fix bugs in initializing electric potential; the Psi on solid was accidentally overwritten before.

This commit is contained in:
Zhe Li committed 2022-04-13 16:56:26 +10:00
1 parent c281c0cfda
commit e7c227bd9f
1 file changed
+2 -1
+2 -1
View File
@@ -437,7 +437,8 @@ void ScaLBL_Poisson::Potential_Init(double *psi_init){
idx = NLABELS;
}
}
psi_init[n] = AFFINITY;
int idx=Map(i,j,k);
if (!(idx<0)) psi_init[n] = AFFINITY;
}
}
}