Minor changes in debug output, added information
to error messages
This commit is contained in:
@@ -55,7 +55,7 @@ void CpuSynchronizer::sumToAll(long int& value, long int& last_sync_value) {
|
||||
|
||||
void CpuSynchronizer::synchronize(Timer* timer, Timer* last_sync_timer) {
|
||||
if(timer == last_sync_timer) {
|
||||
ERROR("Synchronization of timers cannot work, point to same object");
|
||||
ERROR("Synchronization of timers cannot work, point to same object.");
|
||||
}
|
||||
double time_s = timer->time();
|
||||
double last_sync_time_s = last_sync_timer->time();
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <math.h>
|
||||
#include <algorithm>
|
||||
|
||||
// probably rename to indicate what type of borders are created
|
||||
std::vector<double> generateBinBorders(double bin_min,
|
||||
double bin_max,
|
||||
int num_bins) {
|
||||
|
||||
@@ -337,7 +337,7 @@ blitz::Array<double,3> Simulation::chargedensity() {
|
||||
std::shared_ptr<species::TrackedSpecie> firstTracked = tracked_species_.begin()->second;
|
||||
DEBUG_LEVEL_3("shared pointer extracted, key: " + tracked_species_.begin()->first);
|
||||
if(!firstTracked)
|
||||
ERROR("extracted pointer is null");
|
||||
ERROR("Extracted pointer is null.");
|
||||
blitz::Array<double,3> init = firstTracked->dynamicDensityField()->densityArray();
|
||||
blitz::Array<double, 3> chargeden(init.lbound(), init.extent());
|
||||
chargeden = 0.;
|
||||
|
||||
@@ -12,7 +12,7 @@ double lengthPrefactor(const std::string& unit) {
|
||||
} else if (unit == "mm") {
|
||||
return 1E-3;
|
||||
} else {
|
||||
ERROR("I dont know this length unit.");
|
||||
ERROR("I dont know this length unit: " + unit);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ double energyPrefactor(const std::string& unit) {
|
||||
} else if (unit == "J") {
|
||||
return 1 / SI::e;
|
||||
} else {
|
||||
ERROR("I dont know this energy unit.");
|
||||
ERROR("I dont know this energy unit: " + unit);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user