New API version
This commit is contained in:
1 parent
d7f57cae4d
commit
7a854184a3
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -30,7 +30,7 @@ struct OutputParameters{
|
||||
size_t point_count;
|
||||
};
|
||||
|
||||
inline constexpr std::uint32_t PLUGIN_API_VERSION = 2;
|
||||
inline constexpr std::uint32_t PLUGIN_API_VERSION = 3;
|
||||
|
||||
#if defined(_WIN32) && defined(PLUGIN_BUILD)
|
||||
#define PLUGIN_EXPORT extern "C" __declspec(dllexport)
|
||||
@@ -56,4 +56,3 @@ inline constexpr const char* SYMBOL_NAME = "plugin_name";
|
||||
inline constexpr const char* SYMBOL_DESCRIPTION = "plugin_description";
|
||||
inline constexpr const char* SYMBOL_SOLVER = "solver";
|
||||
inline constexpr const char* SYMBOL_WRITE_OUTPUT = "write_output";
|
||||
|
||||
+1
-2
@@ -28,8 +28,7 @@ inline State derivative(const State& state,
|
||||
};
|
||||
}
|
||||
|
||||
inline State runge_kutta_step(const State& state,
|
||||
const SolverParameters& parameters){
|
||||
inline State runge_kutta_step(const State& state, const SolverParameters& parameters){
|
||||
double h = parameters.step;
|
||||
|
||||
State k1 = derivative(state, parameters);
|
||||
|
||||
Reference in new issue
Block a user