Skip to content

Commit

Permalink
Fix initialization of molecule orientation in internal generator code
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Niethammer <[email protected]>
  • Loading branch information
cniethammer committed Mar 20, 2024
1 parent 32d6e83 commit e11f7f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/molecules/AutoPasSimpleMolecule.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
class AutoPasSimpleMolecule final : public MoleculeInterface, public autopas::ParticleFP64 {
public:
explicit AutoPasSimpleMolecule(unsigned long id = 0, Component* component = nullptr, double rx = 0., double ry = 0.,
double rz = 0., double vx = 0., double vy = 0., double vz = 0., double qw = 1.,
double qx = 1., double qy = 0., double qz = 0., double Dx = 0., double Dy = 0.,
double rz = 0., double vx = 0., double vy = 0., double vz = 0., double qw = 0.,
double qx = 0., double qy = 0., double qz = 0., double Dx = 0., double Dy = 0.,
double Dz = 0.);

AutoPasSimpleMolecule(const AutoPasSimpleMolecule& m) = default;
Expand Down
2 changes: 1 addition & 1 deletion src/molecules/FullMolecule.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FullMolecule : public MoleculeInterface {
FullMolecule(unsigned long id = 0, Component *component = nullptr,
double rx = 0., double ry = 0., double rz = 0.,
double vx = 0., double vy = 0., double vz = 0.,
double qw = 1., double qx = 1., double qy = 0., double qz = 0.,
double qw = 0., double qx = 0., double qy = 0., double qz = 0.,
double Dx = 0., double Dy = 0., double Dz = 0.
);
FullMolecule(const FullMolecule& m);
Expand Down
2 changes: 1 addition & 1 deletion src/particleContainer/ParticleCellBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ unsigned long ParticleCellBase::initCubicGrid(const std::array<unsigned long, 3>
++numInserted;
std::array<vcp_real_calc,3> v = getRandomVelocity<vcp_real_calc>(T, RNG);
Molecule dummy(0, &(global_simulation->getEnsemble()->getComponents()->at(0)),
x2, y2, z2, v[0], -v[1], v[2]);
x2, y2, z2, v[0], -v[1], v[2], 1.0, 0.0, 0.0, 0.0);
buffer.push_back(dummy);
}
}
Expand Down

0 comments on commit e11f7f1

Please sign in to comment.