dilevin / CSC417-a1-mass-spring-1d

Assignment 1 on one-dimensional mass spring systems for CSC2549, at the University of Toronto
14 stars 14 forks source link

Testing #12

Open sebhein opened 3 years ago

sebhein commented 3 years ago

Anyone have advice on testing our time integrations other than comparing the phase graphs?

honglin-c commented 3 years ago

Maybe you can also try using std::cout to output the value of each variable (probably just in the first few time steps), and check if they are the same as you expect.

itsvismay commented 3 years ago

Exactly what Honglin said ^^

Check that your initial conditions are what you expected them to be. Check that your gradients are pointed in the expected direction.