Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange output #3

Closed
jorenham opened this issue Jul 22, 2018 · 2 comments
Closed

Strange output #3

jorenham opened this issue Jul 22, 2018 · 2 comments

Comments

@jorenham
Copy link

First of all, awesome project!
When I run the OpenCL code with

const float phi_from = 0.0, phi_to = 2 * M_PI;
const float theta_from = 0.5 * M_PI, theta_to = M_PI;
const int phi_steps = 400, theta_steps = 400;
unsigned char colors[3 * 3] = {255, 0, 0,
                               0, 255, 0,
                               0, 0, 255 };
const float friction = 0.1;
const int exponent = 2;
const unsigned int n_magnets = 3;
float alphas[n_magnets] = { 1.0, 1.0, 1.0 };
float rns[3 * n_magnets] = { -0.8660254, -0.5, -1.3,
                              0.8660254, -0.5, -1.3,
                              0.0, 1.0, -1.3 };
const float time_step = 5.0f;
const float min_kin = 0.5f;
const int max_iterations = 30;

I get the following output image (in <1s 🎉 )

output

and I expected to get

screenshot from 2018-07-22 22-16-08

which is from your slides.

Is there something wrong going on here or am I missing something?

@jorenham
Copy link
Author

Woops wrong project

@addisonElliott
Copy link
Owner

Glad this repository is helping you out. If you don't mind, starring the repository helps a bunch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants