fix bugs in initializing electric potential; the Psi on solid was accidentally overwritten before.
This commit is contained in:
1 parent
c281c0cfda
commit
e7c227bd9f
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user