move LocalCoord impl to right file

This commit is contained in:
Gavin Ridley 2021-04-24 11:21:37 -04:00
parent 959bec57ae
commit 41ef034a0b
2 changed files with 18 additions and 27 deletions

View file

@ -35,33 +35,6 @@
namespace openmc {
//==============================================================================
// LocalCoord implementation
//==============================================================================
void LocalCoord::rotate(const vector<double>& rotation)
{
r = r.rotate(rotation);
u = u.rotate(rotation);
rotated = true;
}
void
LocalCoord::reset()
{
cell = C_NONE;
universe = C_NONE;
lattice = C_NONE;
lattice_x = 0;
lattice_y = 0;
lattice_z = 0;
rotated = false;
}
//==============================================================================
// Particle implementation
//==============================================================================
void Particle::create_secondary(
double wgt, Direction u, double E, ParticleType type)
{

View file

@ -10,6 +10,24 @@
namespace openmc {
void LocalCoord::rotate(const vector<double>& rotation)
{
r = r.rotate(rotation);
u = u.rotate(rotation);
rotated = true;
}
void LocalCoord::reset()
{
cell = C_NONE;
universe = C_NONE;
lattice = C_NONE;
lattice_i[0] = 0;
lattice_i[1] = 0;
lattice_i[2] = 0;
rotated = false;
}
ParticleData::ParticleData()
{
// Create and clear coordinate levels