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

Use Web Workers for running LAMMPS #27

Open
andeplane opened this issue May 20, 2017 · 0 comments
Open

Use Web Workers for running LAMMPS #27

andeplane opened this issue May 20, 2017 · 0 comments
Assignees
Milestone

Comments

@andeplane
Copy link
Owner

We want to use fix atomify all atomify that will do a callback function to JS whenever a timestep/minimization step is finished so we can synchronize rendering.

But LAMMPS freezes the GUI (naturally), so we want to move the LAMMPS work to another thread. This has (at least) two benefits:

  • Faster code (since we actually use two threads)
  • naturally solves the GUI hanging problem

See example of web workers. Shouldn't be very hard. Synchronization is performed with post events where we can send a JSON object. This feels like MPI and will be rather easy to implement I think.

@andeplane andeplane added this to the 1.0 release milestone May 20, 2017
@andeplane andeplane self-assigned this May 20, 2017
@andeplane andeplane changed the title Use webworkers for running LAMMPS Use Web Workers for running LAMMPS May 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant