Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » alternative to array of linked list
Re: alternative to array of linked list [message #46382 is a reply to message #46380] Tue, 03 May 2016 20:30 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
koldo wrote on Tue, 03 May 2016 15:36
It sounds very similar to SPH ( https://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamic s), but I do not understand the role of the cells. Questions:
- Is the number of particles "almost" the same in all simulation?
- How is every solving step/iteration?. In the "explicit" case:
--- First, are computed the forces that act over every particle?
--- Second, is the movement of every particle computed depending on the forces?

If the problem is similar to this, you can:
- use a fixed list of particles.
- do a terrific parallelization Smile


The answer is YES.
The problem is that I have only one CPU.
Anyway I have implemented a
std::vector< std::unordered_set<int> >
and I am very happy. The code is very clean and easy to read.

Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MT opens up whole new can of worms :)
Next Topic: Outage...
Goto Forum:
  


Current Time: Fri Apr 26 13:21:22 CEST 2024

Total time taken to generate the page: 0.03021 seconds