IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1e9832ed authored by ralfulrich's avatar ralfulrich
Browse files

added Swap, fixed Copy

parent d3c55725
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,15 @@ namespace corsika::process::sibyll {
}
void Copy(const int i1, const int i2) {
s_plist_.llist[i1] = s_plist_.llist[i2];
s_plist_.p[3][i1] = s_plist_.p[3][i2];
s_plist_.llist[i2] = s_plist_.llist[i1];
for (int i=0; i<5; ++i)
s_plist_.p[i][i2] = s_plist_.p[i][i1];
}
void Swap(const int i1, const int i2) {
std::swap(s_plist_.llist[i1], s_plist_.llist[i2]);
for (int i=0; i<5; ++i)
std::swap(s_plist_.p[i][i1], s_plist_.p[i][i2]);
}
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment