mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
move LocalCoord impl to right file
This commit is contained in:
parent
959bec57ae
commit
41ef034a0b
2 changed files with 18 additions and 27 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue