ComputationalScienceLaboratory / ODE-Test-Problems

A MATLAB suite of initial value problems
https://computationalsciencelaboratory.github.io/ODE-Test-Problems/
MIT License
9 stars 2 forks source link

Mismatch in NumVars for NBody #38

Closed AndreyAPopov closed 2 years ago

AndreyAPopov commented 2 years ago

When running otptests.validateallpresets, I get the following

The preset Canonical of the model nbody has been built successfully
The preset Canonical of the model nbody has been solved successfully
Warning: With 4 masses, NumVars should be 32 but is 24 
> In otp.nbody/NBodyProblem/validateNewState (line 18)
In otp/Problem/set.Settings (line 62)
In otp/Problem (line 34)
In otp.nbody/NBodyProblem (line 4)
In otp.nbody.presets.FourBody3D (line 20)
In otptests.validateallpresets (line 29) 
The preset FourBody3D of the model nbody has been built successfully
The preset FourBody3D of the model nbody has been solved successfully
The preset Orbit of the model nbody has been built successfully
The preset Orbit of the model nbody has been solved successfully
Warning: With 6 masses, NumVars should be 48 but is 36 
> In otp.nbody/NBodyProblem/validateNewState (line 18)
In otp/Problem/set.Settings (line 62)
In otp/Problem (line 34)
In otp.nbody/NBodyProblem (line 4)
In otp.nbody.presets.OuterSolarSystem (line 28)
In otptests.validateallpresets (line 29) 
The preset OuterSolarSystem of the model nbody has been built successfully
The preset OuterSolarSystem of the model nbody has been solved successfully
The preset Pleiades of the model nbody has been built successfully
The preset Pleiades of the model nbody has been solved successfully
The preset SunEarth of the model nbody has been built successfully
The preset SunEarth of the model nbody has been solved successfully
The preset SunEarthMoon of the model nbody has been built successfully
The preset SunEarthMoon of the model nbody has been solved successfully

Which seems to be a slight problem with NBody