QuaCaTeam / quaca

QuaCa is an open-source library which provides fast calculations of nonequilibrium atom-surface interactions.
https://quacateam.github.io/quaca/
MIT License
3 stars 2 forks source link

Update Friction class constructor #54

Closed SiMaHer closed 4 years ago

SiMaHer commented 4 years ago

Updated the Friction Class constructor with input file, such that only one instance of polarizability and GreensTensor is created.

SiMaHer commented 4 years ago

The other constructor also needs to be changed

I would argue, that in the case of the second constructor (construction by initialisation list) the users have to take care themselves to not create several instances of the classes. Else, we should provide another constructor, which just takes a shared_ptr to a PowerSpectrum as an argument.

chegerland commented 4 years ago

Very well