- 3.0.2 core module.
IntegrationTest.h File Reference
#include <gtest/gtest.h>
#include <cmath>
#include <memory>

Go to the source code of this file.

Functions

double uniformRandomNumber (double min, double max)
 
void plotResults (std::vector< StateVectorArray< stateSize >> &stateTrajectories, std::vector< TimeArray > &timeTrajectories)
 
 TEST (IntegrationTest, derivativeTest)
 

Variables

const size_t stateSize = 2
 
bool plotResult = false
 
std::vector< std::string > integratorNames = {"euler", "rk4", "rk78", "rk5 variable", "ode45", "modified midpoint"}
 
std::vector< std::string > integratorCalls = {"const", "nSteps", "adaptive", "times"}
 

Function Documentation

◆ uniformRandomNumber()

double uniformRandomNumber ( double  min,
double  max 
)

Referenced by TEST().

◆ plotResults()

void plotResults ( std::vector< StateVectorArray< stateSize >> &  stateTrajectories,
std::vector< TimeArray > &  timeTrajectories 
)

◆ TEST()

Variable Documentation

◆ stateSize

const size_t stateSize = 2
Examples:
SecondOrderSystemTest.cpp.

Referenced by TEST().

◆ plotResult

bool plotResult = false
Examples:
IntegrationTest.cpp.

Referenced by main(), and TEST().

◆ integratorNames

std::vector<std::string> integratorNames = {"euler", "rk4", "rk78", "rk5 variable", "ode45", "modified midpoint"}

Referenced by plotResults().

◆ integratorCalls

std::vector<std::string> integratorCalls = {"const", "nSteps", "adaptive", "times"}

Referenced by plotResults().