Default Source in Settings implement time

This commit is contained in:
Olaf Schumann 2021-12-29 13:17:08 +01:00
parent 23f8cfb4f0
commit 66ffe3a6b8

View file

@ -459,9 +459,12 @@ void read_settings_xml()
// If no source specified, default to isotropic point source at origin with
// Watt spectrum
if (model::external_sources.empty()) {
double T[] {0.0};
double p[] {1.0};
model::external_sources.push_back(make_unique<IndependentSource>(
UPtrSpace {new SpatialPoint({0.0, 0.0, 0.0})},
UPtrAngle {new Isotropic()}, UPtrDist {new Watt(0.988e6, 2.249e-6)}));
UPtrAngle {new Isotropic()}, UPtrDist {new Watt(0.988e6, 2.249e-6)},
UPtrDist {new Discrete(T, p, 1)}));
}
// Check if we want to write out source