Minor changes in debug output, added information

to error messages
This commit is contained in:
2024-03-15 15:49:40 +01:00
parent 55c51f8434
commit 2fccef7132
19 changed files with 41 additions and 32 deletions
+6 -3
View File
@@ -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