[deal.II] Re: Creating a SOA with nice OOP like interface

2020-11-21 Thread Zachary Streeter
Hi Peter, Thank you for your email. Here is what I have so far: ```c++ // This will be filled in by looping over number of orbitals, with each orbital containing an array of coefs. struct Orbital_Data{ \\TODO: need a constructor that allocates memory for all the orbital's info here? private:

[deal.II] Re: Creating a SOA with nice OOP like interface

2020-11-21 Thread 'peterrum' via deal.II User Group
Hi Zachary, I haven't watched the lecture, but I think I can, nevertheless, answer this question since I have been refactoring and generalizing the relevant data structures in the last months. The key aspect is that the data is separated from the class that gives coordinated access to the

[deal.II] Creating a SOA with nice OOP like interface

2020-11-21 Thread Zachary 42!
Hi everyone, I saw on lecture 22 “Some data structure design considerations” Prof. Wolfgang described a struct of arrays (SOA) with an accessor interface. This keeps nice encapsulation while also providing nice cache use. I would like to understand this design better for my personal