PoissonSolver: remove extra setSlice for halo layer in Initialize()
This commit is contained in:
parent
21d9e6c900
commit
b5f9ad5a6c
@ -390,14 +390,15 @@ void ScaLBL_Poisson::Initialize(){
|
|||||||
delete [] psi_host;
|
delete [] psi_host;
|
||||||
|
|
||||||
//extra treatment for halo layer
|
//extra treatment for halo layer
|
||||||
if (BoundaryCondition==1){
|
//maybe not useful
|
||||||
if (Dm->kproc()==0){
|
//if (BoundaryCondition==1){
|
||||||
ScaLBL_SetSlice_z(Psi,Vin,Nx,Ny,Nz,0);
|
// if (Dm->kproc()==0){
|
||||||
}
|
// ScaLBL_SetSlice_z(Psi,Vin,Nx,Ny,Nz,0);
|
||||||
if (Dm->kproc() == nprocz-1){
|
// }
|
||||||
ScaLBL_SetSlice_z(Psi,Vout,Nx,Ny,Nz,Nz-1);
|
// if (Dm->kproc() == nprocz-1){
|
||||||
}
|
// ScaLBL_SetSlice_z(Psi,Vout,Nx,Ny,Nz,Nz-1);
|
||||||
}
|
// }
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScaLBL_Poisson::Run(double *ChargeDensity){
|
void ScaLBL_Poisson::Run(double *ChargeDensity){
|
||||||
|
Loading…
Reference in New Issue
Block a user