<commit_before>/*===- Runge_Kutta4.h - libSimulation -=========================================
*
*                                  DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT 
* for details.
*
*===-----------------------------------------------------------------------===*/

#ifndef RUNGA_KUTTA_H
#define RUNGA_KUTTA_H

#include "Integrator.h"
#include "Force.h"
#include "Operator.h"

class Runge_Kutta4 : public Integrator
{
public:
	Runge_Kutta4(Cloud * const myCloud, Force ** const forces, const force_index forcesSize, 
                 const double timeStep, const double startTime);
	~Runge_Kutta4() {}

// public functions:
	// Input: double endTime
	// Preconditions: endTime > 0
	// Postconditions: Runge-Kutta algorithm complete; position, velocity, time updated.
	void moveParticles(const double endTime);

private:
// private functions:
	void operate1(const double currentTime) const; // rk substep 1
	void operate2(const double currentTime) const; // rk substep 2
	void operate3(const double currentTime) const; // rk substep 3
	void operate4(const double currentTime) const; // rk substep 4
  
	void force1(const double currentTime) const; // rk substep 1
	void force2(const double currentTime) const; // rk substep 2
	void force3(const double currentTime) const; // rk substep 3
	void force4(const double currentTime) const; // rk substep 4
};

#endif // RUNGE_KUTTA_H<commit_msg>Fix Include Guard to reflect new file name.<commit_after>/*===- Runge_Kutta4.h - libSimulation -=========================================
*
*                                  DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT 
* for details.
*
*===-----------------------------------------------------------------------===*/

#ifndef RUNGA_KUTTA4_H
#define RUNGA_KUTTA4_H

#include "Integrator.h"
#include "Force.h"
#include "Operator.h"

class Runge_Kutta4 : public Integrator
{
public:
	Runge_Kutta4(Cloud * const myCloud, Force ** const forces, const force_index forcesSize, 
                 const double timeStep, const double startTime);
	~Runge_Kutta4() {}

// public functions:
	// Input: double endTime
	// Preconditions: endTime > 0
	// Postconditions: Runge-Kutta algorithm complete; position, velocity, time updated.
	void moveParticles(const double endTime);

private:
// private functions:
	void operate1(const double currentTime) const; // rk substep 1
	void operate2(const double currentTime) const; // rk substep 2
	void operate3(const double currentTime) const; // rk substep 3
	void operate4(const double currentTime) const; // rk substep 4
  
	void force1(const double currentTime) const; // rk substep 1
	void force2(const double currentTime) const; // rk substep 2
	void force3(const double currentTime) const; // rk substep 3
	void force4(const double currentTime) const; // rk substep 4
};

#endif // RUNGE_KUTTA4_H
{'fraction_non_alphanumeric': 0.16775300171526586, 'fraction_numerical': 0.015437392795883362, 'mean_word_length': 3.055632823365786, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4388974', 'n_tokens_mistral': 894, 'n_tokens_neox': 850, 'n_words': 282}