Skip to content

Commit

Permalink
clang-formatize source.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Jan 12, 2022
1 parent 074c11a commit 2ab42e3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/source.cpp
Expand Up @@ -46,12 +46,11 @@ vector<unique_ptr<Source>> external_sources;
// IndependentSource implementation
//==============================================================================

IndependentSource::IndependentSource(UPtrSpace space, UPtrAngle angle, UPtrDist energy, UPtrDist time)
: space_{std::move(space)},
angle_{std::move(angle)},
energy_{std::move(energy)},
time_{std::move(time)}
{ }
IndependentSource::IndependentSource(
UPtrSpace space, UPtrAngle angle, UPtrDist energy, UPtrDist time)
: space_ {std::move(space)}, angle_ {std::move(angle)},
energy_ {std::move(energy)}, time_ {std::move(time)}
{}

IndependentSource::IndependentSource(pugi::xml_node node)
{
Expand Down Expand Up @@ -150,7 +149,7 @@ IndependentSource::IndependentSource(pugi::xml_node node)
// Default to a Constant time T=0
double T[] {0.0};
double p[] {1.0};
time_ = UPtrDist {new Discrete{T, p, 1}};
time_ = UPtrDist {new Discrete {T, p, 1}};
}
}
}
Expand Down Expand Up @@ -238,7 +237,7 @@ SourceSite IndependentSource::sample(uint64_t* seed) const

// Sample particle creation time
site.time = time_->sample(seed);

return site;
}

Expand Down

0 comments on commit 2ab42e3

Please sign in to comment.