Minor changes in debug output, added information
to error messages
This commit is contained in:
@@ -54,6 +54,7 @@ PoissonSolver::PoissonSolver(GlobalBoundary bottom_boundary,
|
||||
potential_(i,j,k) = {BoundaryType::no_boundary, 0.};
|
||||
break;
|
||||
default:
|
||||
// include position in output
|
||||
ERROR("Something went terribly wrong. Position is nowhere.");
|
||||
break;
|
||||
}
|
||||
@@ -246,9 +247,11 @@ blitz::Array<double, 3> PoissonSolver::potential() {
|
||||
return potentialValues;
|
||||
}
|
||||
|
||||
blitz::Array<double, 3> PoissonSolver::interpolateDensityToPotentialGrid(const blitz::Array<double, 3> density) {
|
||||
if((potential_.extent(0) - 1 != density.extent(0)) || (potential_.extent(1) != density.extent(1))
|
||||
|| (potential_.extent(2) - 1 != density.extent(2))) {
|
||||
blitz::Array<double, 3> PoissonSolver::interpolateDensityToPotentialGrid(
|
||||
const blitz::Array<double, 3> density) {
|
||||
if((potential_.extent(0) - 1 != density.extent(0)) ||
|
||||
(potential_.extent(1) != density.extent(1)) ||
|
||||
(potential_.extent(2) - 1 != density.extent(2))) {
|
||||
ERROR("Extent of the cylinder binning and the provided chargedensity do not match.");
|
||||
}
|
||||
//probably include a check for the lowerbound of the provided chargedensity
|
||||
|
||||
Reference in New Issue
Block a user