fix error in gpu poisson
This commit is contained in:
parent
4a016eee6c
commit
2b2bdee447
|
@ -559,6 +559,7 @@ __global__ void dvc_ScaLBL_D3Q19_AAeven_Poisson(int *Map, double *dist,
|
|||
|
||||
idx = Map[n];
|
||||
Psi[idx] = psi;
|
||||
Error[n] = error;
|
||||
|
||||
// q = 0
|
||||
dist[n] = W0*psi;//
|
||||
|
|
|
@ -519,6 +519,8 @@ __global__ void dvc_ScaLBL_D3Q19_AAeven_Poisson(int *Map, double *dist,
|
|||
|
||||
idx = Map[n];
|
||||
Psi[idx] = psi;
|
||||
Error[n] = error;
|
||||
|
||||
|
||||
// q = 0
|
||||
dist[n] = W0*psi;//
|
||||
|
|
|
@ -808,7 +808,6 @@ void ScaLBL_Poisson::Run(double *ChargeDensity, bool UseSlippingVelBC, int times
|
|||
ScaLBL_Comm->Barrier(); comm.barrier();
|
||||
//************************************************************************/
|
||||
|
||||
|
||||
// Check convergence of steady-state solution
|
||||
if (timestep==2){
|
||||
//save electric potential for convergence check
|
||||
|
|
Loading…
Reference in New Issue
Block a user