Skip to content

Commit

Permalink
Remove unused mvv2e factor (#37)
Browse files Browse the repository at this point in the history
Originally used in the MD codes
  • Loading branch information
pabloseleson authored Aug 24, 2023
1 parent aecd13d commit 1c68d78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/CabanaPD_Integrate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ class Integrator
double _dt, _half_dt;

public:
Integrator( double dt, double mvv2e )
Integrator( double dt )
: _dt( dt )
{
_half_dt = 0.5 * dt / mvv2e;
_half_dt = 0.5 * dt;
}

~Integrator() {}
Expand Down
3 changes: 1 addition & 2 deletions src/CabanaPD_Solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ class SolverElastic
output_frequency = inputs->output_frequency;

// Create integrator.
// FIXME: hardcoded.
integrator = std::make_shared<integrator_type>( inputs->timestep, 1.0 );
integrator = std::make_shared<integrator_type>( inputs->timestep );

// Add ghosts from other MPI ranks.
comm = std::make_shared<comm_type>( *particles );
Expand Down
2 changes: 1 addition & 1 deletion unit_test/tstIntegrator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void testIntegratorReversibility( int steps )
auto x = particles.slice_x();
std::size_t num_particle = x.size();

CabanaPD::Integrator<exec_space> integrator( 0.001, 1.0 );
CabanaPD::Integrator<exec_space> integrator( 0.001 );

// Keep a copy of initial positions on the host
using DataTypes = Cabana::MemberTypes<double[3]>;
Expand Down

0 comments on commit 1c68d78

Please sign in to comment.