fix dumb bugs

This commit is contained in:
Zhe Li 2022-04-13 14:53:23 +10:00
parent 0f68c118de
commit c281c0cfda
2 changed files with 4 additions and 1 deletions

View File

@ -416,7 +416,7 @@ void ScaLBL_Poisson::Potential_Init(double *psi_init){
auto AffinityList = electric_db->getVector<double>( "InitialValues" );
size_t NLABELS = LabelList.size();
if (NLABELS != AffinityList.size() || NLABELS != BoundaryConditionSolidList.size()){
if (NLABELS != AffinityList.size()){
ERROR("Error: LB-Poisson Solver: InitialValueLabels and InitialValues must be of the same length! \n");
}

View File

@ -101,6 +101,9 @@ int main(int argc, char **argv)
timestep++;
PoissonSolver.Run(IonModel.ChargeDensity,false,timestep);//solve Poisson equtaion to get steady-state electrical potental
//StokesModel.Run_Lite(IonModel.ChargeDensity, PoissonSolver.ElectricField);// Solve the N-S equations to get velocity
//for debugging
IonModel.getIonConcentration_debug(0);
IonModel.Run(IonModel.FluidVelocityDummy,PoissonSolver.ElectricField); //solve for ion transport and electric potential